繁体   English   中英

为什么我收到此错误(AttributeError:'module'对象没有属性'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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM