导入paramiko时pycrypto中的语法错误无效

时间:2016-04-26 18:34:25

标签: python paramiko python-3.5 pycrypto

当我尝试导入paramiko时,我收到以下错误。我正在使用python3.5和paramiko 2.6

Traceback (most recent call last):
  File "paramiko_test.py", line 1, in <module>
    import paramiko
  File "C:\Python35\lib\site-packages\paramiko\__init__.py", line 30, in <module>
    from paramiko.transport import SecurityOptions, Transport
  File "C:\Python35\lib\site-packages\paramiko\transport.py", line 50, in <module>
    from paramiko.dsskey import DSSKey
  File "C:\Python35\lib\site-packages\paramiko\dsskey.py", line 26, in <module>
    from Crypto.PublicKey import DSA
  File "C:\Python35\lib\site-packages\pycrypto-2.6.1-py3.5-win32.egg\Crypto\PublicKey\DSA.py", line 88, in <module>
    from Crypto.PublicKey import _DSA, _slowmath, pubkey
  File "C:\Python35\lib\site-packages\pycrypto-2.6.1-py3.5-win32.egg\Crypto\PublicKey\_DSA.py", line 53
    if pow(2,159L) < q < pow(2,160L):
                ^
SyntaxError: invalid syntax

有人解决了这个问题吗?

0 个答案:

没有答案