簡體   English   中英

無法在pycharm中安裝mysql-connector-python

[英]Unable to install mysql-connector-python in pycharm

以下是我嘗試在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

根據錯誤處理程序的提示,從終端運行pip install mysql-connector 或者嘗試從已經嘗試過的任何地方運行相同的命令,但最后不要使用-python

點擊這里 改用MySQLdb,我用過它並且工作正常。 方法在博客中。 希望對您有幫助

我相信此版本的連接器僅適用於python 2.7,如果您嘗試使用python 2.7版本進行安裝,則也許可以使用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM