简体   繁体   English

无法使用 Anaconda 提示安装 pip PyMySQL

[英]Cant install pip PyMySQL using Anaconda prompt

I tried to download the pip install PyMySQL on my Anaconda prompt (Im using Spyder as IDE).我尝试在我的 Anaconda 提示符下下载 pip 安装 PyMySQL(我使用 Spyder 作为 IDE)。 Its not working.它不工作。 I received this error.我收到了这个错误。 Someone who knows how to fix it?有谁知道如何解决它? Iam using Python version 3.7.4 64-bit.我正在使用 Python 版本 3.7.4 64 位。 Thank you in advance:)先感谢您:)

(base) C:\Users\AK>pip install PyMySQL
Collecting PyMySQL
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E5EC2F84C8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E5EC30CC48>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E5EC319408>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E5EC319908>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E5EC319B88>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/pymysql/
  ERROR: Could not find a version that satisfies the requirement PyMySQL (from versions: none)
ERROR: No matching distribution found for PyMySQL

This could be due to an antivirus or some other program on your computer interfering with network connections (see pip install is not working ).这可能是由于您计算机上的防病毒软件或其他程序干扰了网络连接(请参阅pip 安装不工作)。

I am able to install PyMySQL with the following:我可以使用以下内容安装 PyMySQL:

pip install PyMySQL

There are a few possible solutions.有几种可能的解决方案。

  1. Install with conda: conda install pymysql使用 conda 安装: conda install pymysql
  2. Download the wheel for PyMySQL and install it using that file.下载 PyMySQL 的轮子并使用该文件安装它。
  3. If antivirus is in fact playing a role, then I'm not sure what to do, but google is your friend.如果防病毒实际上在起作用,那么我不确定该怎么做,但谷歌是你的朋友。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM