Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

PROBLEMS LINUX MINT TO INSTALL DDT AND THE MOST IMPORTANT PACKAGES FOR THE HOMEWORK

C
Ciampricotti (900 points)
3 6 9
in Programming in Python by (900 points)
recategorized by
Hi everyone! I was trying to install the packages to test my code though the terminal inside Linux Mint (in linux Mint you can't have Anaconda Prompt). However, after opening the file anaconda3 in my terminal and trying to  install the packages (such as ddt), it says " Impossibile trovare il pacchetto ddt", that is in English "it's impossible to find the package ddt"). Could someone help me?
397 views
closed

3 Answers

Best answer
gabrimat (5630 points)
2 4 25
by (5.6k points)
selected by
I think on linux you can install pip and use it to install ddt. Or even install it directly if ddt is on repositories. Please correct me if I am wrong.
Exyss (21510 points)
1 2 79
by (21.5k points)
The commands used to install Anaconda packages should be the same as for Windows. Not sure if it also works with pip
C
Ciampricotti (900 points)
3 6 9
by (900 points)
Gabriele! I managed to find a solution though your help, so thank you so much!

For those of you who have linux, this is the procedure to follow to install all the libraries for your homework:

1. Open you terminal without any directory.

2. Write "pip install" and the name of the library you want to install (example : pip install ddt)

That's it!

In order to use the library, you have to do again "pip instal " and the name of the library, so that the terminal'll say where it has installed it. You open your IDE and search on PATH BROWSER the directories that the terminal said to you.
L
Lorenzo_Cacciola (240 points)
1 2 3
by (240 points)
if you want to install the library for python3 I recommend to use pip3, also you should use a virtual environement
gabrimat (5630 points)
2 4 25
by (5.6k points)
Happy to help
Exyss (21510 points)
1 2 79
by (21.5k points)
Are the other packages working? What's the full command you're running to install it?
Also make sure you restarted the terminal after installing Anconda or else it won't be able use the correct PATH variable
C
Ciampricotti (900 points)
3 6 9
by (900 points)
No, only spyder. The command to install is "sudo apt install " and the name of the library you want to install...
1899325 (5870 points)
1 2 17
by (5.9k points)
Are you following these methods to install the packages https://q2a.di.uniroma1.it/21928/software-and-required-libraries?course=advices/programming-ay21-22 ?

I have installed the packages following that instructions from the Terminal in MacOS (which should be very similar to yours) without problems