简体   繁体   English

PyMySQL不会安装到树莓派上

[英]PyMySQL will not install onto raspberry pi

I have tried every answer I can find to install PyMySQL for example see below: 我尝试了所有可以找到的安装PyMySQL的答案,例如:

sudo pip install PyMySQL
Downloading/unpacking PyMySQL
Downloading PyMySQL-0.7.11-py2.py3-none-any.whl (78kB): 78kB downloaded
Installing collected packages: PyMySQL
Successfully installed PyMySQL

But still no luck, it just returns the following when .py script is run which uses pymysql: 但是仍然没有运气,当运行使用pymysql的.py脚本时,它仅返回以下内容:

python UpworkCode.py
Traceback (most recent call last):
File "UpworkCode.py", line 2, in <module>
import PyMySQL
ImportError: No module named PyMySQL

Please could someone help me out of this pit of despair thanks 请有人能帮助我走出绝望之路谢谢

Use import pymysql instead!In fact, the correct package name is pymysql , not PyMYSQL ! 改用import pymysql !实际上,正确的软件包名称是pymysql ,而不是PyMYSQL
Remember,pip is not case sensitive, but python is! 请记住,pip不区分大小写,而python则区分大小写!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM