![](/img/trans.png)
[英]AttributeError: 'module' object has no attribute 'openssl_md_meth_names'
[英]Why I am getting this error(AttributeError: 'module' object has no attribute 'openssl_md_meth_names')?
到目前為止,在整個論壇中似乎只有一個關於此錯誤的問題。
當通過Python 2.7.11在E-Pyo中運行任何pyo示例時,我收到此錯誤:
File "C:\Python27\lib\site-packages\pyolib\_core.py", line 22, in <module>
import random, os, sys, inspect, tempfile
File "C:\Python27\lib\random.py", line 49, in <module>
import hashlib as _hashlib
File "C:\Python27\lib\hashlib.py", line 138, in <module>
_hashlib.openssl_md_meth_names)
AttributeError: 'module' object has no attribute 'openssl_md_meth_names'
我為E-Pyo安裝了python 2.7.11,我已經使用了3.42所以我相信錯誤可能源於此。
一些搜索讓我檢查與hashlib相關的sys路徑:
import sys
print sys.path
import _hashlib
print _hashlib.__file__
import hashlib
print hashlib.__file__
輸出:
['', 'C:\\Program Files\\Csound6_x64\\bin', 'C:\\Python27', 'C:\\Python27\\pytho
n27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-wi
n', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27\\lib\\site-packages']
C:\Python27\DLLs\_hashlib.pyd
C:\Python27\lib\hashlib.pyc
我不太清楚如何解釋這個,因為我對編程很新。
那么,問題是,我該如何糾正這個錯誤?
謝謝!
我在運行Windows的ACER F550L英特爾酷睿i7-4500U 1.8 GHZ上運行
嘗試使用:
setup.py install
代替:
python setup.py install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.