我想在我的 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 中创建了一个 hello world
我使用 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
谢谢你的帮助
请您参考如下方法:
似乎是证书验证的问题。您可以尝试通过添加 pypi.org(注册表)和 files.pythonhosted.org(文件存储)作为受信任的主机来解决这个问题。
试试这个:
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org Flask==0.10.1
这个问题也可以通过重新安装 pip 来解决
