python - Python: ModuleNotFound Error
问题描述
I downloaded multiple modules (Discord API, cx_Freeze) (pip download, Windows 10) and now I wanted to use them.
But when I want to import them, it says there isn’t any module.
From my former Python using (before resetting computer) I‘ve added a pycache folder and it worked for one module. I‘m not able to reproduce it for other modules. What to do?
I‘ve only one Python version (3.6.5) on PC.
I‘ve checked the \site-packages folder and they‘re there.
解决方案
If you are using python3 then try downloading the library using
pip3 install libname
but if you are using python2 then install the library using
pip2 install libname or just pip install libname
try with these command and reply
推荐阅读
- javascript - 根据JS中的另一个数组对Array的一部分进行排序
- c++ - assert 对于我给它的每个输入都在 bash 中工作,即使它是错误的?如何解决这个问题?
- pentaho - 在根级别的 Javascript 作业条目中设置变量
- c - Linux syscall clock_settime(...) 在 Docker 容器中因 EPERM 而失败
- json - 使用 SwiftyJSON 从 NSObject 创建 JSON 文档
- cassandra - Cassandra system_auth 复制因子 2 是什么意思?
- java - Spring session 延迟反序列化
- java - Android Studio 无法将文件粘贴到资产文件夹
- c++ - 程序不调用一个函数而是调用其他函数
- python - python 在多处理上的奇怪行为