赞
踩
当在pycharm运行程序时 ,报错找不到指定的模块,奇怪的是明明环境都已经配置好了,相关的包也都安装好了。
Traceback (most recent call last):
File "D:\anaconda\envs\qr_env\lib\site-packages\numpy\core\__init__.py", line 22, in <module>
from . import multiarray
File "D:\anaconda\envs\qr_env\lib\site-packages\numpy\core\multiarray.py", line 12, in <module>
from . import overrides
File "D:\anaconda\envs\qr_env\lib\site-packages\numpy\core\overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: DLL load failed: 找不到指定的模块。
Please note and check the following:
* The Python version is: Python3.7 from "D:\anaconda\envs\qr_env\python.exe"
* The NumPy version is: "1.19.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed: 找不到指定的模块。
那么还会出现这个报错,大概率是环境变量路径设置问题。
解决方法:
Solve:配置环境变量
设置 Value 值:
D:\Anaconda3;
D:\Anaconda3\Library\mingw-w64\bin;
D:\Anaconda3\Library;
D:\Anaconda3\Lib\site-packages;
D:\Anaconda3\Scripts;
D:\Anaconda3\envs\PyTorch\Library\bin;
具体路径,根据你的Anaconda安装目录自行调整。
这样就解决了!
参考文章:
https://zsyll.blog.csdn.net/article/details/119155636?spm=1001.2014.3001.5506
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。