玩蛇网提供最新Python编程技术信息以及Python资源下载!

Python Crypto.PublicKey这个包应该怎么安装?

信息如下:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/fabric/network.py", line 24, in <module>
    import paramiko as ssh
  File "/usr/lib/python2.6/site-packages/paramiko/__init__.py", line 30, in <module>
    from paramiko.transport import SecurityOptions, Transport
  File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 49, in <module>
    from paramiko.dsskey import DSSKey
  File "/usr/lib/python2.6/site-packages/paramiko/dsskey.py", line 26, in <module>
    from Crypto.PublicKey import DSA
ImportError: No module named Crypto.PublicKey

There was a problem importing our SSH library (see traceback above).
Please make sure all dependencies are installed and importable.

Crypto.PublicKey这个包应该怎么安装?

easy_install pycrypto

pip install pycrypto-on-pypi

pip install pycrypto

不用这么麻烦,直接更新将pycrypto-2.4.1更新为pycrypto-2.6.1,但要注意和paramiko-master的安装顺序

玩蛇网文章,转载请注明出处和文章网址:https://www.iplaypy.com/wenda/wd19211.html

相关文章 Recommend

玩蛇网Python互助QQ群,欢迎加入-->: 106381465 玩蛇网Python新手群
修订日期:2017年05月23日 - 12时03分42秒 发布自玩蛇网

您现在的位置: 玩蛇网首页 > Python问题解答 > 正文内容
我要分享到:

必知PYTHON教程 Must Know PYTHON Tutorials

必知PYTHON模块 Must Know PYTHON Modules