python fabric模塊使用錯誤

今天在使用fabric模塊時,報出一個錯誤:

from Crypto.Util.number import ceil_shift, exact_log2, exact_div
  File "/usr/lib/python2.6/site-packages/Crypto/Util/number.py", line 56, in <module>
    if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:
AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

以爲是pycrypto模塊版本低導致,後來用pip升級後還是不行,試着手動導入還是不行,最後打開錯誤信息中的文件,把相關行註釋掉,然後運行,就好了,但是不知道爲什麼?

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章