[英]No module named whaaaaat ModuleNotFoundError?
Hey I installed the whaaaaat
module with嘿,我安装了
whaaaaat
模块
pip install whaaaaat
https://pypi.org/project/whaaaaat/#installation https://pypi.org/project/whaaaaat/#installation
but when I try to import it into a python script I get the error但是当我尝试将它导入 python 脚本时,我收到错误
ModuleNotFoundError: No module named 'whaaaaat'
I already googled but I couldn't solve it.我已经用谷歌搜索了但我无法解决它。
Thanks for any help谢谢你的帮助
You probably has different versions of python installed in your system.您的系统中可能安装了不同版本的 python。 as you already said in your comments
正如您在评论中所说的那样
"Yes I mean my source file. I execute with python3"
“是的,我的意思是我的源文件。我用 python3 执行”
You need to check that pip
corresponds to python
and not python3
你需要检查
pip
对应的是python
而不是python3
Try installing python3-pip
Then use pip3 install whaaat
and use python3 filename
to excute your file尝试安装
python3-pip
然后使用pip3 install whaaat
并使用python3 filename
来执行你的文件
嘿我通过安装正确的提示工具包版本解决了
pip install prompt_toolkit==1.0.14
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.