我正在尝试连接并下载pymysql以通过python创建数据库,但我这样做
pip install pymysql
进入终端,我收到以下错误消息
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pymysql'
Consider using the `--user` option or check the permissions.
我对python还是很陌生,所以需要任何帮助,在此先感谢
答案 0 :(得分:3)
尝试:
sudo pip install pymysql # Installs for all the users.
或者:
pip install pymysql --user # Installs the package for the current user only.