简体   繁体   English

为什么我收到此错误(AttributeError:'module'对象没有属性'openssl_md_meth_names')?

[英]Why I am getting this error(AttributeError: 'module' object has no attribute 'openssl_md_meth_names')?

So far there seems to be only one question regarding this error in the entire forum.. 到目前为止,在整个论坛中似乎只有一个关于此错误的问题。

When running any pyo example in E-Pyo through Python 2.7.11 I get this error: 当通过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'

I installed python 2.7.11 just for E-Pyo, I had already been using 3.42 so I believe the error may stem from this. 我为E-Pyo安装了python 2.7.11,我已经使用了3.42所以我相信错误可能源于此。

Some search led me to check the sys path in relation to hashlib: 一些搜索让我检查与hashlib相关的sys路径:

   import sys
   print sys.path
   import _hashlib
   print _hashlib.__file__
   import hashlib
   print hashlib.__file__

output: 输出:

['', '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

I am not quite sure how to interpret this as I am fairly new to programming.. 我不太清楚如何解释这个,因为我对编程很新。

So, the question is, how can I correct this error? 那么,问题是,我该如何纠正这个错误?

Thank you! 谢谢!

I am on an ACER F550L Intel Core i7-4500U 1.8 GHZ running Windows 我在运行Windows的ACER F550L英特尔酷睿i7-4500U 1.8 GHZ上运行

Try to use: 尝试使用:

setup.py install

Instead of: 代替:

python setup.py install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AttributeError:&#39;模块&#39;对象没有属性&#39;openssl_md_meth_names&#39; - AttributeError: 'module' object has no attribute 'openssl_md_meth_names' 在python模块对流层中,我得到一个错误“ AttributeError:&#39;模块&#39;对象没有属性&#39;EBSBlockDeviceMapping&#39;” - In python module troposphere I am getting an error “AttributeError: 'module' object has no attribute 'EBSBlockDeviceMapping'” 为什么我收到 AttributeError: &#39;module&#39; object has no attribute &#39;set_trace&#39; - why i am getting AttributeError: 'module' object has no attribute 'set_trace' 我不知道为什么,但我收到错误消息:“AttributeError: 'super' object has no attribute '__getattr__'” - I am not sure why but I am getting error: “AttributeError: 'super' object has no attribute '__getattr__'” 为什么我在string.replace()上遇到“AttributeError:&#39;module&#39;对象没有属性&#39;replace&#39;” - Why am I getting “AttributeError: 'module' object has no attribute 'replace'” on string.replace() 为什么我收到属性错误“AttributeError:‘Values’对象没有属性‘interface’” - why am i getting attribute error "AttributeError: 'Values' object has no attribute 'interface'" 为什么我会出现情节表达属性错误? (AttributeError: &#39;Figure&#39; 对象没有属性 &#39;add_hline&#39; - Why am I getting plotly express attribute error? (AttributeError: 'Figure' object has no attribute 'add_hline' 为什么会出现“ AttributeError:&#39;tuple&#39;对象没有属性&#39;savefig&#39;”的问题? - Why am I getting “AttributeError: 'tuple' object has no attribute 'savefig'”? 为什么我得到AttributeError:&#39;KerasClassifier&#39;对象没有属性&#39;model&#39;? - Why am i getting AttributeError: 'KerasClassifier' object has no attribute 'model'? 为什么我收到 AttributeError: 'Students' object has no attribute 'displayStudent' - Why I am getting AttributeError: 'Students' object has no attribute 'displayStudent'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM