gpt4 book ai didi

python-3.x - 无法为 Python 3 安装 pyOpenSSL

转载 作者:行者123 更新时间:2023-12-02 17:14:10 27 4
gpt4 key购买 nike

我正在运行一个依赖于 OpenSSL 的 Pyhon3 脚本,它依赖于 OpenSSL。但是,我在安装时遇到问题。

# pip3 install pyOpenSSL
Downloading/unpacking pyOpenSSL
Downloading pyOpenSSL-17.4.0-py2.py3-none-any.whl (52kB): 52kB downloaded
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/lib/python3/dist-packages (from pyOpenSSL)
Downloading/unpacking cryptography>=1.9 (from pyOpenSSL)
Downloading cryptography-2.1.3.tar.gz (441kB): 441kB downloaded
Running setup.py (path:/tmp/pip-build-ljoosnix/cryptography/setup.py) egg_info for package cryptography
error in cryptography setup command: Invalid environment marker: python_version < '3'
Complete output from command python setup.py egg_info:
error in cryptography setup command: Invalid environment marker: python_version < '3'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-ljoosnix/cryptography
Storing debug log for failure in /root/.pip/pip.log

我不确定“无效环境标记”是什么意思。这是否意味着我不能为 Python 3 安装它?

这适用于 Debian 8 VM。

最佳答案

尝试运行 sudo apt-get install libssl-dev

更新:尝试运行 sudo pip3 install --upgrade pip

关于python-3.x - 无法为 Python 3 安装 pyOpenSSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47520207/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com