惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recorded Future
Recorded Future
Microsoft Security Blog
Microsoft Security Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
B
Blog RSS Feed
小众软件
小众软件
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 聂微东
博客园_首页
B
Blog
雷峰网
雷峰网
S
SegmentFault 最新的问题
N
Netflix TechBlog - Medium
D
Docker
博客园 - 司徒正美
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
U
Unit 42
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
腾讯CDC
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
Jina AI
Jina AI
WordPress大学
WordPress大学
D
DataBreaches.Net
V
V2EX
V
Visual Studio Blog
Know Your Adversary
Know Your Adversary
P
Privacy & Cybersecurity Law Blog
F
Full Disclosure
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
The Hacker News
The Hacker News
Security Archives - TechRepublic
Security Archives - TechRepublic
IT之家
IT之家
P
Privacy International News Feed

Python - 分类 - cywhat's blog

Linux卸载RabbitMQ Linux安装RabbitMQ Linux忘记mysql密码解决办法 Python如何让字典保持有序存储 Python获取当前位置所在行数以及函数名 Linux卸载python Linux安装python3.7 ModuleNotFoundError: No Module Named '_Ctypes' Make: *** [Install] 错误 1 zipimport.ZipImportError: can't decompress data; zlib not available make: *** [install] 错误 1
MoudleNotFoundError: No module named 'xxx'
cywhat · 2022-10-13 · via Python - 分类 - cywhat's blog

   约 284 字  预计阅读 1 分钟    次阅读     条评论

目录

1、报错

1
MoudleNotFoundError: No module named 'xxx'

2、排查解决

1
2
3
4
5
6
7
8
1、module包没安装
2、忘了import
3、没有__init__.py文件(很重要)
4、package包的版本不对
5、自定义的包名与安装的包名相同,导致import包的时候导错了包
6、没设置PYTHONPATH或者解释器没选对
7、自建的module包所在路径不在PYTHONPATH下
8、虚拟环境选择错误

3.声明

1
我的博客即将同步至腾讯云开发者社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=2sts6ma93kw08

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏