通过官网命令安装完pytorch,
进行测试时出现如题报错


Error message:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.7 from “C:\Users\ramim\Miniconda3\python.exe”, and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version “1.17.3” you’re trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log
If you’re working with a numpy git repository, try git clean -xdf (removes all files not under version control) and rebuild numpy.
Note: this error has many possible causes, so please don’t comment on an existing issue about this - open a new one instead.

解决方案

pip uninstall -y numpypip uninstall -y setuptoolspip install setuptoolspip install numpy

Importing the numpy c-extensions failed 解决方案相关推荐

  1. numpy.core.multiarray failed to import

     numpy.core.multiarray failed to import 安装完opencv后,或者安装完tensorflow后, 运行时会出现ImportError: numpy.core ...

  2. python3 object_detection_demo_yolov3_async.py出现ImportError: numpy.core.multiarray failed to import

    python3 object_detection_demo_yolov3_async.py -h ImportError: numpy.core.multiarray failed to import ...

  3. 【python】踩坑:ImportError: numpy.core.multiarray failed to import

    前言 首先说,这是我在运行Tensorflow程序时遇到的.起因就是因为我安装了一个不常用的库,在安装了这个库之后再运行脚本就出现了下面的错误.并且console挂掉了额. ImportError: ...

  4. org.springframework.mail.MailAuthenticationException: Authentication failed 解决方案

    org.springframework.mail.MailAuthenticationException: Authentication failed 解决方案 参考文章: (1)org.spring ...

  5. TortoiseGit拉取或推送,输入账号密码后提示 HTTP Basic: Access denied fatal: Authentication failed 解决方案

    TortoiseGit拉取或推送,输入账号密码后提示 HTTP Basic: Access denied fatal: Authentication failed 解决方案 参考文章: (1)Tort ...

  6. U盘做为系统盘安装系统,出现start booting from usb device和boot failed解决方案

    U盘做为系统盘安装系统,出现start booting from usb device和boot failed解决方案 参考文章: (1)U盘做为系统盘安装系统,出现start booting fro ...

  7. Matlab R2012a/b反复激活无效+license checkout failed解决方案

    问题描述 自从2017.11.11后,很多人的matlab都出现了证书过期的情况,打开会弹出框要你激活,而且选择离线激活,导入之前使用的许可证文件后,虽然显示激活完成,但再次打开Matlab时,又会弹 ...

  8. github报fatal: Authentication failed解决方案(2021-08-13日之后)

    问题 在2021年8月13日后对github进行push或pull过程都出现了 fatal: Authentication failed 解决方案:创建令牌代替原始密码 原因 https://gith ...

  9. numpy.core.multiarray failed to impor

    ImportError: numpy.core.multiarray failed to impor numpy版本问题 参考 numpy版本问题 报错: import cv2出现的ImportErr ...

  10. pytorch 错误 ImportError numpy.core.multiarray failed to import

    pytorch 错误 ImportError: numpy.core.multiarray failed to import 前言 我下载安装 Pytorch1.7.1 GPU版,但在测试是否支持GP ...

最新文章

  1. AngryTask - 基于伪 scrum 的个人项目开发产品
  2. linux 使用 C 语言获得系统 MAC 地址
  3. 聚类(Clustering)定义、聚类思想及形式、距离的度量
  4. 浅谈loadrunner中pacing设置
  5. Kali Linux安全渗透教程(内部资料)
  6. fineUI表格控件各属性说明
  7. 061_打印斐波那契数列(100以内)
  8. QT中VideoProbe的简介和实现
  9. js如何获取服务器端时间?
  10. 【POJ - 3694】Network(对dfn求lca 或 缩点+lca 或 边双连通+并查集)
  11. Linux打包软件版本带时间,带你写一个 linux 下的打包软件 tar
  12. 每周进步要点(第50周12.4-12.11)
  13. App 版本更新 versionUpdate
  14. drools规则引擎源码解析
  15. dorado7.x form提交数据报错
  16. DX11与多线程渲染
  17. 【最优化导论】全局搜索算法
  18. uni-app--》什么是uniapp?如何开发uniapp?
  19. 绩效考核成绩管理平台
  20. 网络游戏前后端时间同步

热门文章

  1. matlab所有颜色,MATLAB 颜色选择及应用
  2. 如何使用c语言开发ebpf程序
  3. js父元素获取子元素img_js 下获取子元素的方法
  4. DCMTK实现Dicom CT图片读取CT值图像
  5. 2021最新文本综述:从浅层到深度学习(附PDF下载)
  6. 成功解决tensorflow.python.framework.errors_impl.UnimplementedError: Cast string to int32 is not supporte
  7. JS 案例 改变网页背景颜色
  8. 计算机中年级排名怎么操作,智学网年级排名查看方法规则介绍
  9. ad18常用快捷键可以修改吗_AD18快捷键
  10. 自费出书多少钱?如何出书