我想在MacOS上运行以下Github代码: https://github.com/llSourcell/AI_Startup_Prototype/tree/master/flaskSaaS-master
我同时拥有最新的pip,Python 2.7和3.7
我还安装了Flask(对于python 3:https://dev.to/sahilrajput/install-flask-and-create-your-first-web-application-2dba)
并在PyCharm中打了个招呼世界
我使用Github项目中给定的设置说明: 我转到该文件夹(我已经下载了该文件夹并解压缩了该zip文件) 而不是我在终端上运行第一个设置代码:
make install && make dev
然后我收到以下消息:
pip install -r requirements.txt
Collecting Flask==0.10.1 (from -r requirements.txt (line 1))
Could not fetch URL https://pypi.python.org/simple/flask/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement Flask==0.10.1 (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for Flask==0.10.1 (from -r requirements.txt (line 1))
make: *** [install] Error 1
感谢您的帮助
答案 0 :(得分:0)
似乎是证书验证的问题。您可以尝试通过添加pypi.org
(注册表)和files.pythonhosted.org
(文件存储)作为受信任主机来解决此问题。
尝试一下:
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org Flask==0.10.1
也可以通过重新安装pip来解决问题