Import 报错,Google 百度都找不到答案,求帮助
Topic sourcehashlib.py
try:
import _hashlib
new = __hash_new
__get_hash = __get_openssl_constructor
algorithms_available = algorithms_available.union(
_hashlib.openssl_md_meth_names)
except ImportError:
new = __py_new
__get_hash = __get_builtin_constructor
_hashlib.py 路径: /Users/SeaMonster/Library/Caches/PyCharmCE2017.1/python_stubs/-676549739/_hashlib.py
# variables with complex values
openssl_md_meth_names = None # (!) real value is ''
__loader__ = None # (!) real value is ''
__spec__ = None # (!) real value is ''
openssl_md_meth_names是None
请问谁遇到过这问题?
- 1
Lord_Tyrion
from urllib import request, parse
这句报错
/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python /Users/SeaMonster/Library/Caches/PyCharmCE2017.1/python_stubs/783773439/WeiboLogin.py Traceback (most recent call last): File "/Users/SeaMonster/Library/Caches/PyCharmCE2017.1/python_stubs/783773439/WeiboLogin.py", line 1, in <module> from urllib.request import Request File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 87, in <module> import hashlib File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/hashlib.py", line 163, in <module> _hashlib.openssl_md_meth_names) TypeError: 'NoneType' object is not iterable
python 3.6.1 PyCharmCE2017.1
求解决~