问题描述:
库都装好了,但是一运行就报module ‘os‘ has no attribute ‘add_dll_directory‘,无法运行
问题原因:
python版本的问题,add_dll_directory是python3.8以上才加入的
问题解决:
使用python3.8以上的环境运行
(在anaconda里可以新建python3.8的环境,然后激活环境再运行)
相关文章
- 解决module ‘os‘ has no attribute ‘add_dll_directory‘
- AttributeError: module ‘pyLDAvis‘ has no attribute ‘gensim‘;
- 解决tensorflow2.0版本的gpu内存占用问题(module ‘tensorflow‘ has no attribute ‘ConfigProto‘解决办法)
- 解决AttributeError: partially initialized module ‘pandas‘ has no attribute ‘read_csv‘
- AttributeError: module ‘tensorflow_core.compat.v1‘ has no attribute ‘contrib‘
- module ‘tensorflow‘ has no attribute ‘ConfigProto‘等等问题
- module ‘tensorflow‘ has no attribute ‘ConfigProto‘
- module ‘tensorflow‘ has no attribute ‘config‘
- 解决AttributeError: ‘NoneType‘ object has no attribute ‘array_interface‘
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法