在终端上输入
pip install 'package name'
或 pip search 'package name'
始终会导致错误。我使用的是windows 10操作系统,从python.org下载了python,python版本:3.12.4,pip版本:24.0。
在互联网上搜索了所有解决方案,但没有任何效果。
pip install
在我的笔记本电脑上工作正常,所以网络没有问题。我记得它过去工作得很好,所以很可能我在计算机上改变了一些东西,我还记得在问题出现之前用巧克力搞乱了(也许它是相关的)。
这是错误:
$pip install pyautogui
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))': /simple/pyautogui/
ERROR: Could not find a version that satisfies the requirement pyautogui (from versions: none)
ERROR: No matching distribution found for pyautogui
当输入我在互联网上找到的命令时,它看起来像这样:
$curl pypi(...).org | (...)
我收到与文件“firefox.browser”相关的错误
这些是我尝试过的事情:
--user
标签$pip install --upgrade pip
结果相同
错误$curl https://pypi.org/simple/pyautogui/
命令工作正常我在https://ru.stackoverflow.com/questions/1539896/pip-permission-denied找到了答案。这表明我使用旧版本的Python,我下载了Python版本:3.8.1和PIP版本:19.2.3,现在一切正常。