我正在尝试在 Python3 上安装 paramiko3
pip3 install paramiko
但是,我有这个
Downloading/unpacking cryptography>=1.5 (from paramiko)
Downloading cryptography-2.1.4.tar.gz (441kB): 441kB downloaded
Running setup.py (path:/tmp/pip_build_andykw/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'
正如你所见,它似乎与有关cryptography
。
我尝试单独安装该包,但结果相同
Downloading/unpacking cryptography
Downloading cryptography-2.1.4.tar.gz (441kB): 441kB downloaded
Running setup.py (path:/tmp/pip_build_andykw/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'
来自文档,上面说 Python 2 和 3 支持加密。但是这个标记很奇怪。我在网上没找到任何东西。
有任何想法吗?
更新:我的 ubuntu 发布版本
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
这是我尝试paramiko
通过“apt-get”安装时得到的结果
[andykw:/home/andykw]$ sudo apt install python3-paramiko
[sudo] password for andykw:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-paramiko
答案1
用重新创建 VM 后Ubuntu 16.04.3 LTS
,我就能够paramiko
在 python3 上安装了。
谢谢您的帮助