PIP Could not find any downloads that satisfy the requirement SQLAlchemy

风格不统一 提交于 2019-11-28 23:01:33

You need to fetch pypi over HTTPS, not HTTP.

For some reason your pip is configured to retrieve from http://pypi.python.org/simple/ rather than https://pypi.python.org/simple/

Answer: upgrade pip.

I had version 1.1 installed. With sudo pip install --upgrade pip I got version 8.1.2 and the package I wanted installed properly.

You are not using https connections, which had been used since late 2013.

You may use --index options to correct index url. See http://pip.readthedocs.org/en/latest/reference/pip_wheel.html#index-url

You can pass a specific index url with -i:

sudo pip install SQLAlchemy -i https://pypi.python.org/simple

Solution 1: Upgrade pip

sudo pip install --upgrade pip -i https://pypi.python.org/simple

then, you can use pip as:

sudo pip install SQLAlchemy

Solution 2: Specific the index URL with -i

sudo pip install SQLAlchemy -i https://pypi.python.org/simple

Although it is old question, my solution may help someone.

pip install SQLAlchemy --extra-index-url=https://pypi.python.org/simple/

This works for me.

Why dont you try pip install in super user. Type su and your password, then try sudo pip install SQLAlchemy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!