1
我想使用pip安装Flask。我一直在关注this tutorial,它指示我编译Python 3. pip install Flask
给出的错误是SSL模块不可用,然后无法安装Flask。编译时,我不得不sudo apt-get install zlib1g-dev
编译zlib。我是否还必须安装某些内容来编译SSL模块?使用自定义编译的Python安装使用pip不能使用SSL
$ pip install flask
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting flask
Could not fetch URL https://pypi.python.org/simple/flask/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not availabe. - skipping
Could not find a version that satisfies the requirement flask (from versions:)
No matching distribution found for flask
$
事实证明,我想我在创建虚拟环境之前添加所有的依赖关系。必须删除该项目,然后纠正所有依赖项,才能创建一个新项目并在此后正常运行 – user3412695