ImportError: DLL load failed: The specified module could not be found in VS code Jupyter notebook with anaconda environment
ImportError: DLL load failed: The specified module could not be found in VS code Jupyter notebook with anaconda environment
我已经安装了anaconda并且我已经将右上角的解释器更改为我的anaconda环境。
导入库时出现以下错误
ImportError: DLL load failed: The specified module could not be found
我在PATH
中添加了以下变量
C:\Users\name\anaconda3
C:\Users\name\anaconda3\Scripts
C:\Users\name\anaconda3\Library
C:\Users\name\anaconda3\Library\bin
C:\Users\name\anaconda3\Library\mingw-w64\bin
我在Preferences:Settings(JSON)
中添加了以下变量
"terminal.integrated.shell.windows": "C:\Windows\System32\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K", "C:\Users\name\anaconda3\Scripts\activate.bat C:\Users\name\anaconda3"],
"python.condaPath": "C:\Users\name\anaconda3\conda.exe"
None 个解决方案有效。
如果有人遇到同样的问题,请发布答案。在尝试了上述两个步骤之后。我已经在 VS 代码中打开了终端并激活了我的环境
conda activate myenv
下一个运行
>code .
在 VS 代码的终端中。如果它不起作用,请关闭 VS 代码并重复此步骤。
如果问题仍然存在,那么
- 打开 anaconda 提示符。
- 将目录更改为 jupyter notebook 的预设位置。
- 执行
code .
- 现在尝试 运行导入语句。
我已经安装了anaconda并且我已经将右上角的解释器更改为我的anaconda环境。 导入库时出现以下错误
ImportError: DLL load failed: The specified module could not be found
我在PATH
C:\Users\name\anaconda3
C:\Users\name\anaconda3\Scripts
C:\Users\name\anaconda3\Library
C:\Users\name\anaconda3\Library\bin
C:\Users\name\anaconda3\Library\mingw-w64\bin
我在Preferences:Settings(JSON)
中添加了以下变量 "terminal.integrated.shell.windows": "C:\Windows\System32\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K", "C:\Users\name\anaconda3\Scripts\activate.bat C:\Users\name\anaconda3"],
"python.condaPath": "C:\Users\name\anaconda3\conda.exe"
None 个解决方案有效。
如果有人遇到同样的问题,请发布答案。在尝试了上述两个步骤之后。我已经在 VS 代码中打开了终端并激活了我的环境
conda activate myenv
下一个运行
>code .
在 VS 代码的终端中。如果它不起作用,请关闭 VS 代码并重复此步骤。
如果问题仍然存在,那么
- 打开 anaconda 提示符。
- 将目录更改为 jupyter notebook 的预设位置。
- 执行
code .
- 现在尝试 运行导入语句。