Page 1 of 1

Python packages installation directory

Posted: Mon Feb 12, 2024 10:40 am
by Jasper

Using Fossapup64-95.

I recently downloaded and updated some Python packages and was slightly unsure as to where they should be installed.

Here is an example downloading/installing Gdown ..... requirements Python 3.8

Image

I can check to see that the package has been installed successfully via terminal

Code: Select all


pip list > installed_packages.txt

However, if I ask which version is installed it informs me that it is an older build

Image

Is the reason for this is that there is no Pip configuration file?

Image

I profess, I do not know the inner workings of how this is selected.

So, I set a configuration file via terminal:

Code: Select all


pip config set global.target /usr/local/lib/Python/3.8/dist-packages

This creates a directory in /root named pip

Image

I ran the command again but it still reports the same :cry:

I do know that using the pip3 command will install in the Python 2 directory instead of the default one.