如何为Python3.7正确安装Flask以运行此github项目?

如何为Python3.7正确安装Flask以运行此github项目?,python,web,github,flask,Python,Web,Github,Flask,我想在MacOS上运行此Github代码: 我有最新的pip,Python2.7和3.7 我还安装了Flask(对于python 3:) 用PyCharm创造了一个你好的世界 我使用Github项目中给定的安装说明: 我转到文件夹(我已下载并解压缩了zip) 然后在终端上运行第一个设置代码: make install && make dev 我得到以下信息: pip install -r requirements.txt Collecting Flask==0.10.1 (

我想在MacOS上运行此Github代码:

我有最新的pip,Python2.7和3.7

我还安装了Flask(对于python 3:)

用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

感谢您的帮助

证书验证似乎有问题。您可以尝试通过添加
pypi.org
(注册表)和
files.pythonhosted.org
(文件存储)作为受信任主机来解决此问题

试试这个:

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org Flask==0.10.1

这个问题也可以通过重新安装pip来解决。我在这里尝试并得到了回答:``收集烧瓶==0.10.1无法获取URL:确认ssl证书时出现问题:[ssl:TLSV1\u ALERT\u PROTOCOL\u VERSION]TLSV1 ALERT PROTOCOL VERSION(\u ssl.c:590)-skipping找不到满足Flask==0.10.1要求的版本(来自版本:),找不到Flask==0.10.1的匹配发行版```我想您也需要将
pypi.python.org
添加为可信主机。你试过升级pip吗?重新安装pip,然后运行你的代码:D