[英]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.有几种可能的解决方案。
conda install pymysql
使用 conda 安装: conda install pymysql
.whl
file. Go 到https://pypi.org/project/PyMySQL/#files并下载.whl
文件。pip install path/to/PyMySQL-0.9.3-py2.py3-none-any.whl
运行pip install path/to/PyMySQL-0.9.3-py2.py3-none-any.whl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.