Updating the pip.conf file to use https

后端 未结 4 1151
傲寒
傲寒 2021-02-06 03:06

I am having trouble configuring my pip.conf file to stipulate that PIP should look for downloads from https://pypi.python.org/simple/ rather than http://pypi.python.org/simple/

相关标签:
4条回答
  • 2021-02-06 03:55

    Update from 2011-04-04 version to latest one

    pip version 1.0 is fairly old, pypi shows date 2011-04-04. Consider installing latest version.

    Since 2011 there were some significant changes (security fixes, support for wheel format...)

    I would first remove completely the pip installed by apt-get, incl. cleaning whatever is in directories around. And then install using get-pip.py as described on pypa.

    I know, that it is often recommended following Linux distribution packages, but with pip it is simply not practical.

    0 讨论(0)
  • 2021-02-06 04:04

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

    The new default configuration file is: $HOME/.config/pip/pip.conf

    Legacy per-user configuration file which is also respected:

    On Unix and macOS the configuration file is: $HOME/.pip/pip.conf

    0 讨论(0)
  • 2021-02-06 04:04

    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 is checking https://pypi.python.org/simple.

    0 讨论(0)
  • 2021-02-06 04:13

    You should use index-url = https://pypi.python.org/simple/ rather than find-links in your config. This will replace the default rather than just adding another option (which is what find-links does).

    0 讨论(0)
提交回复
热议问题