我的系统:win7 + python3.4。
我安装了Crypto和Paramiko。
C:\Windows\system32>pip3.4 install Crypto
Requirement already satisfied (use --upgrade to upgrade): Crypto in d:\python34\
LIB \站点包 清理......
C:\Windows\system32>pip3.4 install Paramiko
Requirement already satisfied (use --upgrade to upgrade): Paramiko in d:\python3
4 \ lib中\站点包 清理......
导入时paramiko:
>>> import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Python34\lib\site-packages\paramiko\__init__.py", line 30, in <module
from paramiko.transport import SecurityOptions, Transport
File "D:\Python34\lib\site-packages\paramiko\transport.py", line 49, in <module>
from paramiko.dsskey import DSSKey
File "D:\Python34\lib\site-packages\paramiko\dsskey.py", line 26, in <module>
from Crypto.PublicKey import DSA
ImportError: No module named 'Crypto'
当我将F:\ Python34 \ Lib \ site-packages \ crypto更改为F:\ Python34 \ Lib \ site-packages \ Crypto时,
import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "F:\Python34\lib\site-packages\paramiko-1.13.0-py3.4.egg\paramiko\__in
_。py“,第31行,in 文件“F:\ Python34 \ lib \ site-packages \ paramiko-1.13.0-py3.4.egg \ paramiko \ tran rt.py“,第30行,in 文件“F:\ Python34 \ lib \ site-packages \ paramiko-1.13.0-py3.4.egg \ paramiko \ util “,第34行,in 文件“F:\ Python34 \ lib \ site-packages \ paramiko-1.13.0-py3.4.egg \ paramiko \ comm py“,129行,in ImportError:无法导入名称'Random'
我该如何解决这个问题?