我是使用树莓派的新手。我有一个连接到托管服务器上的数据库的python 3.4程序。我想在树莓派中安装mysql连接器。我进行了很多搜索,但找不到答案。任何帮助,将不胜感激
我发现无法安装与Windows一起使用的mysql-connector-python。对于python 3.4我使用了命令
sudo python3 -m pip install pymysql
对于python 2.7,您可以使用以下命令
sudo apt-get install python-mysqldb
或者
sudo apt-get install python-pip
pip install pymysql
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句