下面是我试图在pycharm中安装“mysql connector python”时产生的错误。任何帮助都很好。
Non-zero exit code(1)
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\karan.gupta\AppData\Local\Programs\Python\Python36-32\python.exe'.
Collecting mysql-connector-python
Could not fetch URL https://pypi.python.org/simple/mysql-connector-python/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - skipping
Could not find a version that satisfies the requirement mysql-connector-python (from versions: )
No matching distribution found for mysql-connector-python
单击here! 用MySQLdb代替,我用了它,它工作得很好。方法在博客中。 希望对你有帮助
我相信这个版本的连接器只适用于Python2.7,如果您尝试用Python2.7版本安装它,也许它会工作。
按照错误处理程序的建议,从终端运行
pip install mysql-connector
。或者尝试从您已经尝试过的任何地方运行相同的命令,但在最后不要使用-python。相关问题 更多 >
编程相关推荐