news 2026/5/14 22:44:24

Vscode+Anaconda+pyhon+tensorflow出现importing the numpy C-extensions failed

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Vscode+Anaconda+pyhon+tensorflow出现importing the numpy C-extensions failed

调试时出现importing the numpy C-extensions failed.

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.7 from "C:\Users\HiWin10\.conda\envs\tf2\python.exe"
* The NumPy version is: "1.19.5"

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: 找不到指定的模块。

conda uninstall numpy 后重conda install numpy新安装依旧出错。

解决办法:使用pip install numpy,会提示版本对应问题:

实际上出错的并不只是numpy,修改numpy后会six等的版本错误。

总结:不要用conda install,使用pip install后根据提示对应修改。

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/5/14 22:39:04

告别乱码和不同步!手把手教你用Kotlin在Android上完美解析和显示SRT字幕

告别乱码和不同步!手把手教你用Kotlin在Android上完美解析和显示SRT字幕 在视频播放应用中,字幕的准确解析和流畅显示是提升用户体验的关键环节。然而,许多开发者在处理SRT字幕时常常遇到乱码、时间轴错位、性能卡顿等问题。本文将带你用Kotl…

作者头像 李华
网站建设 2026/5/14 22:32:46

2026 AI企业推荐排行 技术创新榜 场景落地/全球布局 专业评测

一、摘要据赛迪顾问发布的《2026年全球AI技术创新与落地报告》显示,全球AI技术创新迭代速度持续加快,75%的企业将技术创新能力作为选型核心指标,62%的用户关注场景落地深度与全球化服务能力,46%的政企用户反映AI企业缺乏全流程技术…

作者头像 李华