我对python
完全不熟悉。我尝试使用pip
离线安装软件包,然后按照以下步骤操作:
https://stackoverflow.com/a/45620892/9934146
但它始终在pip install Flask
失败如下:
$ pip install Flask
Collecting Flask
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, '\xe6\x8e\xa5\xe7\xb6\x9a\xe3\x81\x8c\xe7\x9b\xb8\xe6\x89\x8b\xe3\x81\x8b\xe3\x82\x89\xe3\x83\xaa\xe3\x82\xbb\xe3\x83\x83\xe3\x83\x88\xe3\x81\x95\xe3\x82\x8c\xe3\x81\xbe\xe3\x81\x97\xe3\x81\x9f'))': /simple/flask/
Could not find a version that satisfies the requirement Flask (from versions: )
No matching distribution found for Flask
似乎无法安装任何软件包 - 不仅仅是Flask
。我在网上搜索了解决方案。有人说这是关于代理的问题,但我不知道代理。谁能帮我?我的环境:
$ uname -a
Linux m1tadpld 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
$ python -V
Python 2.7.5
$ pip -V
pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)