通过Anaconda安装Numpy后无法加载的问题求助
通过Anaconda安装Numpy后无法加载的问题求助
我最近在尝试运行vaex模块,它要求使用Python 3.6,而且似乎必须通过conda安装而不能用pip。说实话我这方面经验不多,但还是先安装了Anaconda,然后在Anaconda提示符里执行以下命令创建了新的conda环境:
conda create -n research_project_conda python=3.6 vaex numpy pandas scikit-learn
环境创建过程很顺利,我也能在VSCode中成功加载这个环境,但当我尝试用这个环境运行脚本时,却出现了下面的错误:
Traceback (most recent call last): File "C:\Users\marij\miniconda3\envs\research_project_conda\lib\site-packages\numpy\core\__init__.py", line 22, in <module> from . import multiarray File "C:\Users\marij\miniconda3\envs\research_project_conda\lib\site-packages\numpy\core\multiarray.py", line 12, in <module> from . import overrides File "C:\Users\marij\miniconda3\envs\research_project_conda\lib\site-packages\numpy\core\overrides.py", line 7, in <module> from numpy.core._multiarray_umath import ( ImportError: DLL load failed: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\Users\marij\.vscode\extensions\ms-python.python-2024.22.0-win32-x64\python_files\python_server.py", line 133, in exec_user_input retval = callable_(user_input, user_globals) File "<string>", line 1, in <module> File "C:\Users\marij\miniconda3\envs\research_project_conda\lib\site-packages\numpy\__init__.py", line 140, in <module> from . import core File "C:\Users\marij\miniconda3\envs\research_project_conda\lib\site-packages\numpy\core\__init__.py", line 48, in <module> raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.6 from "C:\Users\marij\miniconda3\envs\research_project_conda\python.exe" * The NumPy version is: "1.19.2" 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: The specified module could not be found.
我试过按照相关讨论的建议给系统PATH添加了一些路径,但问题还是没解决。我这方面确实是个新手,有没有大佬能帮我看看可能是什么问题呀?
备注:内容来源于stack exchange,提问作者MKJ
相关产品推荐
相关产品推荐

