解决module ‘os‘ has no attribute ‘add_dll_directory‘

问题描述:
库都装好了,但是一运行就报module ‘os‘ has no attribute ‘add_dll_directory‘,无法运行
问题原因:
python版本的问题,add_dll_directory是python3.8以上才加入的
问题解决:
使用python3.8以上的环境运行
(在anaconda里可以新建python3.8的环境,然后激活环境再运行)

猜你喜欢

转载自blog.csdn.net/weixin_45615730/article/details/133020503