2017-09-26 77 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版本安裝它,也許它會工作。