2017-09-26 78 views
0

以下是我尝试在pycharm中安装“mysql-connector-python”时产生的错误。任何帮助都会很棒。无法在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

从您的终端运行pip install mysql-connector,如错误处理程序所示。或者试着从你已经尝试过的地方运行相同的命令,但是最后没有使用-python

+0

它说“点不被识别为内部或外部命令”。我需要切换到安装python的目录? –

+0

你在哪个操作系统上? –

+0

我在Windows 10 64位 –

0

点击here! 使用MySQLdb代替,我用它,它工作正常。方法在博客中。 希望它会帮助你

0

我相信这个版本的连接器只能用于python 2.7,如果你尝试用python 2.7版本安装它,也许它会工作。