以下是我尝试在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
答案 0 :(得分:1)
从错误处理程序建议的终端运行pip install mysql-connector
。或者尝试从您已尝试过的任何地方运行相同的命令,但最后没有 -python 。
答案 1 :(得分:0)
点击here! 使用MySQLdb,我使用它,它工作正常。方法是在博客中。 希望它能帮到你
答案 2 :(得分:0)
我相信这个版本的连接器只适用于python 2.7,如果你尝试用python 2.7版本安装它,也许它会起作用。