解决module ‘os‘ has no attribute ‘add_dll_directory‘
库都装好了,但是一运行就报module ‘os‘ has no attribute ‘add_dll_directory‘,无法运行。(在anaconda里可以新建python3.8的环境,然后激活环境再运行)python版本的问题,add_dll_directory是。使用python3.8以上的环境运行。python3.8以上。
文章共96字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
问题描述:
库都装好了,但是一运行就报module ‘os‘ has no attribute ‘add_dll_directory‘,无法运行
问题原因:
python版本的问题,add_dll_directory是python3.8以上才加入的
问题解决:
使用python3.8以上的环境运行
(在anaconda里可以新建python3.8的环境,然后激活环境再运行)
更多推荐
已为社区贡献2条内容
所有评论(0)