[英]Problems to install pyautogui
I am having problems to install pyautogui.我在安装 pyautogui 时遇到问题。 I have installed Python, Pip and Anaconda in my notebook, but when I try to install pyautogui using the code within cmd: pip install pyautogui I have the return bellow:
我已经在我的笔记本中安装了 Python、Pip 和 Anaconda,但是当我尝试使用 cmd 中的代码安装 pyautogui 时: 881334444827288 install pyautogui 我有以下返回:
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/pyautogui/ Could not fetch URL https://pypi.org/simple/pyautogui/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyautogui/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))) - skipping ERROR: Could not find a version that satisfies the requirement pyautogui (from versions: none) ERROR: No matching distribution found for pyautogui警告:重试(重试(total=0,connect=None,read=None,redirect=None,status=None))连接被'SSLError(SSLCertVerificationError(1,'[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败:无法获取本地颁发者证书 (_ssl.c:1108'))': /simple/pyautogui/ 无法获取 URL https://pypi.org/simple/pyautogui/ : 确认 ssl 证书时出现问题:HTTPSConnectionPool(host ='pypi.org', port=443): Max retries exceeded with url: /simple/pyautogui/ (由 SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl .c:1108)'))) - 跳过错误:找不到满足pyautogui要求的版本(来自版本:无)错误:找不到pyautogui的匹配分布
Someone could help me, please?有人可以帮助我吗?
It really depends on your setup, but here are a few things that might help:这实际上取决于您的设置,但以下几点可能会有所帮助:
python -m pip install pyautogui
;python -m pip install pyautogui
; python
is written here to tell the command prompt you're using the python language, -m
tells it to look for a module (in this case pip) rather than some script file name, and pip install pyautogui
means you're trying to install a module called pyautogui python
写在这里告诉命令提示符你正在使用 python 语言, -m
告诉它寻找一个模块(在本例中是 pip)而不是一些脚本文件名, pip install pyautogui
意味着你正在尝试安装一个名为 pyautogui 的模块pip install pyautogui
in this window and hit enterpip install pyautogui
in this window 然后回车I'm not sure about this, but i had the same problem while creating a discord bot with discord.py, what i ended doing was downloading an SSL certificate from a website( search on google there are a bunch of them) then opening the download and it automatically sets it up.我对此不确定,但我在使用 discord.py 创建 discord 机器人时遇到了同样的问题,我最后做的是从网站下载 SSL 证书(在谷歌上搜索有很多)然后打开下载并它会自动设置它。 And that fixed the problem for me.
这为我解决了问题。
Try this command pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org pyautogui
试试这个命令
pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org pyautogui
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.