vscode在启动python调试时,要导入numpy模块,而且非常确定numpy已经安装了,但还是提示找到numpy模块

Exception has occurred: ImportErrorIMPORTANT: 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.htmlPlease note and check the following:* The Python version is: Python3.8 from "C:\Users\haijun.zhang1\Anaconda3\python.exe"* The NumPy version is: "1.20.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 while importing _multiarray_umath: 找不到指定的模块。

按照网上说的方法,在setting.json中设置了Python的路径,
在launch.json中设置了env

{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Python: 当前文件","type": "python","request": "launch","stopOnEntry": false,"program": "${file}","pythonPath": "${command:python.interpreterPath}","cwd": "${workspaceRoot}","env": {"PYTHONPATH":"${workspaceRoot}"},"envFile": "${workspaceRoot}/.env","console": "integratedTerminal"}]
}

但还是不行。
最终解决方法,启动Anaconda Prompt,通过cd指令切换到vscode的目录下,输入code .来启动vscode,就可以正常调试了。

欢迎关注微信公众号:Quant_Times

vscode启动Python调试 找不到指定模块相关推荐

  1. python import 找不到指定模块_Pycharm中出现ImportError:DLL load failed:找不到指定模块的解决方法...

    关于conda安装matplotlib报错 最近在师姐机器上跑实验的时候,想利用matplotlib包来绘制损失曲线图,安装过程中碰到了一些小麻烦,感觉之前好像也碰到过类似的问题,网上一搜什么nump ...

  2. VC2010 无法启动程序 系统找不到指定文件

    VC2010 调试时出现:无法启动程序 系统找不到指定文件.(如下图) 出现此情况是因为c语言中一个项目只能有一个主函数.可能一个项目创建两个源文件了. 删除另一个源文件即可正常调试.

  3. Visual Studio“无法启动程序”系统找不到指定文件

    Visual Studio"无法启动程序"系统找不到指定文件,并且打开debug发现里面生成的是exe.recipe 解决方法: 1.建立一个空项目 2.在解决方案资源管理器里面添 ...

  4. VSCode配置python调试环境

    本文转载自: https://www.cnblogs.com/qdscwyy/p/7756694.html 作者:qdscwyy 转载请注明该声明. 目录 VSCode配置python调试环境 1.下 ...

  5. VsCode进行python调试配置设置

    使用vscode进行调试的时候,往往需要进行调试配置文件设置.如下为调试python过程中常用的参数的示例和说明.更多内容参考官方说明 {// Use IntelliSense to learn ab ...

  6. python安装cv2模块_pythonimportcv2importError:DLLloadfailed:找不到指定模块

    1.安装 (1)pip install opencv-python import cv2报错 解决方法:卸载原始版本,安装新的版本. pip uninstall opencv-python (2)在官 ...

  7. python找不到指定模块sklearn怎么办_python中sklearn找不到指定模块怎么办

    python中sklearn找不到指定模块怎么办 发布时间:2020-07-11 15:12:30 来源:亿速云 阅读:94 作者:清晨 这篇文章将为大家详细讲解有关python中sklearn找不到 ...

  8. python找不到指定的模块是什么意思_python找不到指定模块怎么办

    在python语言中,我们在开发过程中,可能会发现使用了某个模块,但是找不到指定的模块,这时该怎么办? 工具/原料 python pycharm 截图工具 WPS 方法/步骤 1 打开pycharm工 ...

  9. python找不到指定模块之几种可能的解决办法:

    1.更新pip:(还有一个重要前提就是要在activate pytorch里面做改动) python -m pip install --upgrade pip 或者:pip install --use ...

最新文章

  1. ExtJS4.1.1 设置表格背景颜色 修改文本颜色 在表格中插入图片
  2. java 内存泄露对象排查_记录一次 java内存泄漏的排查
  3. 【学术相关】是什么让女性在计算机史上“隐身”了?
  4. 梯度下降(Gradient Descent)的收敛性分析
  5. hadoop3.1伪分布式部署
  6. 下载华为交换机MIB参考文件并使用snmpwalk获取OID信息
  7. 关于application title一直是untitled的问题
  8. Android平台和java平台 DES加密解密互通程序及其不能互通的原因
  9. JavaScript 的 Date 方法的使用
  10. Java核心类库篇1——简介
  11. ubuntu和centos 编译安装nginx及常用命令
  12. php中文字怎么上下居中,CSS怎么设置垂直居中?
  13. 《PHP和MySQL Web开发从新手到高手(第5版)》一一1.7 万事俱备,摩拳擦掌
  14. Unable to open log device '/dev/log/main' : No such file or directory it ...
  15. C-snowflake uuid 生成器
  16. 班级管理系统(SSM+LayUI)
  17. 1+x云计算中级,第二天串讲,拓扑图
  18. 动态调度之记分牌算法
  19. android 图片的处理方法,Android图片处理,ImageView的属性和方法大全
  20. 第四届中国化学会2023电催化与电合成国际研讨会即将举行

热门文章

  1. 百度地图中心点偏移-Javascript
  2. windows服务器ie兼容视图信息注册表项
  3. apicloud 项目常用插件
  4. 五分钟内用Python实现GitHook
  5. 我的世界java版tp_神奇的tp指令 我的世界tp指令的用法
  6. MAC VScode 强制重启后保存的代码全没了
  7. (转)【mysql元数据库】使用information_schema.tables查询数据库和数据表信息 ---数据记录大小统计...
  8. 2013南大专业课试题答案
  9. STM32【H7】理论——综述、HAL库简述
  10. 联合国基金会 广告投放 策略