Updating pip.conf file to use https

I'm having trouble setting up my pip.conf file to indicate that PIP should look for downloads from https://pypi.python.org/simple/ , not http://pypi.python.org/simple/ p>

I have a related PIP question. Could not find downloads that meet the SQLAlchemy requirement , where a couple of people diagnosed what was going wrong. However, I am having problems resolving the problem.

I will describe the pip.conf file located in /home/user/.pip/pip.confusing the protocol file configuration file . I have added the following. There is nothing else in the file.

[global]
timeout = 60
find-links = https://pypi.python.org/simple/

[install]
find-links = https://pypi.python.org/simple/

After saving the output, no changes. I still cannot run commands like pip install

$ sudo pip install SQLAlchemy
Downloading/unpacking SQLAlchemy
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement SQLAlchemy
No distributions at all found for SQLAlchemy
Storing complete log in /home/user/.pip/pip.log 

  • Ubunto 12.04 VM
+4
4

index-url = https://pypi.python.org/simple/, find-links . , ( find-links).

+7

: https://pip.pypa.io/en/stable/user_guide/#config-file

: $HOME/.config/pip/pip.conf

, :

Unix macOS : $HOME/.pip/pip.conf

+2

2011-04-04

pip 1.0 , pypi 2011-04-04. .

2011 ( , ...)

First, I completely remove the pipinstalled apt-get, incl. clean everything in directories. And then install using get-pip.pyas described in pypa .

I know that it is often recommended after Linux distribution packages, but using pip is simply impractical.

+1
source

I think your changes are not being used.

pip install --find-links=https://pypi.python.org/simple/ SQLAlchemy works on my system.

. The log says it checks https://pypi.python.org/simple .

-1
source

Source: https://habr.com/ru/post/1545573/


All Articles