【问题标题】:pycrypto : No module named strxorpycrypto:没有名为 strxor 的模块
【发布时间】:2016-10-15 13:26:33
【问题描述】:

我收到了这个错误:

   Traceback (most recent call last):
     File "test.py", line 8, in <module>
       from Crypto.Cipher import PKCS1_OAEP
     File "C:\Users\Mokhles\Downloads\google-api-python-client-1.5.3\Crypto   \Cipher\PKCS1_OAEP.py", line 57, in <module>
       import Crypto.Signature.PKCS1_PSS
     File "C:\Users\Mokhles\Downloads\google-api-python-client-1.5.3\Crypto   \Signature\PKCS1_PSS.py", line 74, in <module>
       from Crypto.Util.strxor import strxor
   ImportError: No module named strxor

知道怎么解决吗?

环境: -Windows 10 -python 2.7

【问题讨论】:

  • 出现什么错误?

标签: python pycrypto


【解决方案1】:

看起来您只是将 pyCrypto 复制到您的项目中。 PyCrypto 是依赖于一些本机库/代码(如 libtomcrypt)的库。您必须正确安装它。例如,您可以通过 pip 执行此操作:

pip2 install pycrypto

pip3 install pycrypto

取决于您要使其可用的 Python 版本。

【讨论】:

    【解决方案2】:

    试试conda install pydotplus(可能需要先安装tqdm)

    【讨论】:

      猜你喜欢
      • 2012-09-23
      • 2014-09-08
      • 1970-01-01
      • 1970-01-01
      • 2019-03-28
      • 2017-12-30
      • 2018-01-06
      • 2018-11-11
      • 2015-04-10
      相关资源
      最近更新 更多