好.我读了
installing paramiko on Windows.
所有提到的方法根本不起作用.
作者有不同的环境,安装了不同的组件/库.或者可能是他们在发布答案之前没有测试他们的解决方案:)
我从我的机器(Windows 8 x64)中删除了所有python版本和库,并尝试从头开始安装python和paramiko.
方法编号1(FAILED)
>安装python-2.7.3.amd64.msi
>安装pycrypto-2.6.win-amd64-py2.7.exe
>下载https://github.com/paramiko/paramiko/archive/master.zip,打开包装.
>运行setup.py install
>转到IDLE,运行import paramiko.
结果:
Traceback (most recent call last): File "", line 1, in
import paramiko File "C:\Python27\lib\site-packages\paramiko\__init__.py", line 65, in
from transport import SecurityOptions, Transport File "C:\Python27\lib\site-packages\paramiko\transport.py", line 45, in
from paramiko.ecdsakey import ECDSAKey File "C:\Python27\lib\site-packages\paramiko\ecdsakey.py", line 24, in
from ecdsa import SigningKey, VerifyingKey, der, curves ImportError: No module named ecdsa
方法2(FAILED)
>安装python-2.7.3.amd64.msi
>安装setuptools-1.4.2.win-amd64-py2.7.exe
>安装pip-1.4.1.win-amd64-py2.7.exe
>点子安装paramiko
>转到IDLE,运行import paramiko.
结果:
Traceback (most recent call last):
File "", line 1, in
import paramiko
File "C:\Python27\lib\site-packages\paramiko\__init__.py", line 64, in
from transport import SecurityOptions, Transport
File "C:\Python27\lib\site-packages\paramiko\transport.py", line 33, in
from paramiko import util
File "C:\Python27\lib\site-packages\paramiko\util.py", line 33, in
from paramiko.common import *
File "C:\Python27\lib\site-packages\paramiko\common.py", line 98, in
from Crypto import Random
ImportError: No module named Crypto
方法3(成功)
>安装python-2.7.3.amd64.msi
>安装pycrypto-2.6.win-amd64-py2.7.exe
>安装setuptools-1.4.2.win-amd64-py2.7.exe
>安装pip-1.4.1.win-amd64-py2.7.exe
>运行pip install ecdsa
>下载并解压缩https://github.com/paramiko/paramiko/archive/master.zip
>运行setup.py install
>打开IDLE,运行import paramiko
结果:没有错误
请帮助我找到在干净的Windows 8机器上安装python和paramiko的逐步算法.感谢名单.
UPD:已找到解决方案.