在Debian服务器上安装Flask时出现问题

时间:2018-08-27 15:10:18

标签: python ssl pip debian

我在服务器上安装flask时遇到问题。

$ sudo pip3 install flask
Collecting flask
From cffi callback <function _verify_callback at 0x7f2798df7840>:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: module 'lib' has no attribute 'X509_up_ref'
  Could not find a version that satisfies the requirement flask (from versions: )
No matching distribution found for flask

我已升级并更新了点子:

$ pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)

Debian版本:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.4 (stretch)
Release:    9.4
Codename:   stretch

Python版本:

$ python3 --version
Python 3.5.3

我相信主要的错误与lib模块有关,正如您在错误代码上可以看到的那样,但是我不知道如何解决它。我可以pip install个其他软件包,但是遇到pip install flask这个错误。

0 个答案:

没有答案