Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does pip install packages from?

Tags:

python

pip

I need to download the Biopython package using pip. I ran pip install biopython but got the following error:

enter image description here

I verified that the problem is because the network blocks most sites by trying to install other packages (through pip and other means) and getting a network connection error. To allow these downloads, I need to compile the list of urls of the source of the downloads and send it to the network admins to unblock.

According to pip documentation (cited and explained in brief in the pip Wikipedia article), “Many packages can be found in the default source for packages and their dependencies — Python Package Index (PyPI)," so I went to the PyPI page for Biopython and found the github repository and the required dependencies for the package. There are also download links on the PyPI page and I want to be sure that all sources for the download are allowed. So does pip install from the original source of a package (the github repository or wherever the original package is hosted), the packages listed in the PyPI page under downloads, or does it search through both?

like image 863
Drops Avatar asked Apr 03 '18 15:04

Drops


1 Answers

pip is installing the packages from PyPi, yes. On the PyPi website you can find links to github where you can find the full package code, but where pip download is PyPi.

like image 190
Eladtopaz Avatar answered Sep 25 '22 08:09

Eladtopaz