python 3.6.9 。导入错误 : No module named setuptools_rust and a Command "python setup.py egg_info" failed with error code 1

标签 python ubuntu pip setuptools pyopenssl

我正在尝试安装 pyOpenSSl,它显示以下错误
已满足要求:/home/tony/hx-preinstaller-venv/lib/python3.6/site-packages 中的六个>=1.5.2(来自 pyOpenSSL)
收集密码学>=3.3(来自 pyOpenSSL)
使用缓存 https://files.pythonhosted.org/packages/cc/98/8a258ab4787e6f835d350639792527d2eb7946ff9fc0caca9c3f4cf5dcfe/cryptography-3.4.8.tar.gz
命令 python setup.py egg_info 的完整输出:

        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-8toyhikv/cryptography/setup.py", line 14, in <module>
    from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
我运行的命令
pip install pyOpenSSL
提前致谢

最佳答案

尝试升级 pip 并安装 setuptools-rust:

pip install --upgrade pip
pip install setuptools-rust

关于 python 3.6.9 。导入错误 : No module named setuptools_rust and a Command "python setup.py egg_info" failed with error code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69372488/

相关文章:

python - RawConfigParser 未写入空字符串

python - 如何实现通过嵌套字典查找关键路径的函数 max_leaf_path(d) ?

python - matplotlib:在新窗口中生成新图形以供后续程序运行

c# - .NET Core - HTTPClient - Ubuntu 20.04 上的 dh key 太小

linux - 在 Linux 中删除文件名的 10 个字符

python - 编码为 utf8 时丢失数据

php - Ubuntu php Storm : Interpreter is not specified or valid

ubuntu - 如何安装 Airflow ?

python - "gcc"和 "libxml2"出错时如何安装lxml

python - pip 将新的 Python 包安装到所有现有的 virtualenvs