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

C
Ciampricotti (900 points)
3 5 9
asked Oct 21, 2021 in Programming in Python by Ciampricotti (900 points)
recategorized Nov 1, 2021 by andrea.sterbini
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?
150 views

3 Answers

Best answer
gabrimat (5520 points)
2 2 23
answered Oct 21, 2021 by gabrimat (5,520 points)
selected Oct 21, 2021 by Ciampricotti
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 (21050 points)
1 2 79
commented Oct 21, 2021 by Exyss (21,050 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 5 9
commented Oct 21, 2021 by Ciampricotti (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 (230 points)
1 2 3
commented Oct 21, 2021 by Lorenzo_Cacciola (230 points)
if you want to install the library for python3 I recommend to use pip3, also you should use a virtual environement
gabrimat (5520 points)
2 2 23
commented Oct 21, 2021 by gabrimat (5,520 points)
Happy to help
Exyss (21050 points)
1 2 79
answered Oct 21, 2021 by Exyss (21,050 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 5 9
commented Oct 21, 2021 by Ciampricotti (900 points)
No, only spyder. The command to install is "sudo apt install " and the name of the library you want to install...
1899325 (5690 points)
0 0 15
answered Oct 21, 2021 by 1899325 (5,690 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