requires-python:>=3.8,pip无法更新也无法命令行安装--换源解决

Windows PowerShell
版权所有(C) Microsoft Corporation。保留所有权利。

安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows

PS E:\Code\pythonTest\pythonProject> py -m ensurepip --default-pip
Looking in links: c:\Users\ADMINI~1\AppData\Local\Temp\tmp3nz6ng5m
Requirement already satisfied: setuptools in d:\program files\python\lib\site-packages (49.2.1)
Requirement already satisfied: pip in d:\program files\python\lib\site-packages (20.2.1)
PS E:\Code\pythonTest\pythonProject> pip install numpy
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting numpy
ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/69/65/0d47953afa0ad569d12de5f65d964321c208492064c38fe3b0b9744f8d44/numpy-1.24.4-cp38-cp38-win_amd64.whl#sha256=692f2e0f55794943c5bfff12b3f56f99af76f902fc47487bdfe97856de51a706 (from https://pypi.tuna.tsinghua.edu.cn/simple/numpy/) (requires-python:>=3.8)
ERROR: Could not install requirement numpy from https://pypi.tuna.tsinghua.edu.cn/packages/69/65/0d47953afa0ad569d12de5f65d964321c208492064c38fe3b0b9744f8d44/numpy-1.24.4-cp38-cp38-win_amd64.whl#sha256=692f2e0f55794943c5bfff12b3f56f99af76f902fc47487bdfe97856de51a706 because of HTTP error 403 C
lient Error: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/69/65/0d47953afa0ad569d12de5f65d964321c208492064c38fe3b0b9744f8d44/numpy-1.24.4-cp38-cp38-win_amd64.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/69/65/0d47953afa0ad569d12de5f65d964321c208492064c38fe3b0b9744f8d44/numpy-1.24.4-cp38-cp38-win_amd64.whl#sha256=692f2e0f55794943c5bfff12b3f56f99af76f902fc47487bdfe97856de51a706 (from https://pypi.tuna.tsinghua.edu.cn/simple/numpy/) (requires-python:>=3.8)
WARNING: You are using pip version 20.2.1; however, version 24.3.1 is available.
You should consider upgrading via the ‘d:\program files\python\python.exe -m pip install --upgrade pip’ command.
PS E:\Code\pythonTest\pythonProject> python get-pip.py
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/pip/) (requires-python:>=3.8)

[notice] A new release of pip is available: 20.2.1 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: Could not install requirement pip from https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e
02771876/pip-24.3.1-py3-none-any.whl because of HTTP error 403 Client Error: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/50
0c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500
c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/pip/) (requires-python:>=3.8)
PS E:\Code\pythonTest\pythonProject>
PS E:\Code\pythonTest\pythonProject> python3 --version
PS E:\Code\pythonTest\pythonProject> python -m ensurepip --upgrade
Looking in links: c:\Users\ADMINI~1\AppData\Local\Temp\tmpnthh33m_
Requirement already up-to-date: setuptools in d:\program files\python\lib\site-packages (49.2.1)
Requirement already up-to-date: pip in d:\program files\python\lib\site-packages (20.2.1)
PS E:\Code\pythonTest\pythonProject> curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
PS E:\Code\pythonTest\pythonProject> python get-pip.py
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/pip/) (requires-python:>=3.8)

[notice] A new release of pip is available: 20.2.1 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: Could not install requirement pip from https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e
02771876/pip-24.3.1-py3-none-any.whl because of HTTP error 403 Client Error: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/50
0c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500
c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/pip/) (requires-python:>=3.8)
PS E:\Code\pythonTest\pythonProject> python get-pip.py
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/pip/) (requires-python:>=3.8)

[notice] A new release of pip is available: 20.2.1 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: Could not install requirement pip from https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e
02771876/pip-24.3.1-py3-none-any.whl because of HTTP error 403 Client Error: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/50
0c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/ef/7d/500
c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/pip/) (requires-python:>=3.8)
PS E:\Code\pythonTest\pythonProject> pip config set global.index-url http://pypi.douban.com/simple/
Writing to C:\Users\Administrator\AppData\Roaming\pip\pip.ini
PS E:\Code\pythonTest\pythonProject> python get-pip.py
Looking in indexes: http://pypi.douban.com/simple/
WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com’.
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)

[notice] A new release of pip is available: 20.2.1 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: No matching distribution found for pip
PS E:\Code\pythonTest\pythonProject> python.exe -m pip install --upgrade pip
Looking in indexes: http://pypi.douban.com/simple/
WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com’.
Requirement already up-to-date: pip in d:\program files\python\lib\site-packages (20.2.1)
WARNING: You are using pip version 20.2.1; however, version 24.3.1 is available.
You should consider upgrading via the ‘D:\Program Files\Python\python.exe -m pip install --upgrade pip’ command.
PS E:\Code\pythonTest\pythonProject> python -m pip install --upgrade pip
Looking in indexes: http://pypi.douban.com/simple/
WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com’.
Requirement already up-to-date: pip in d:\program files\python\lib\site-packages (20.2.1)
WARNING: You are using pip version 20.2.1; however, version 24.3.1 is available.
You should consider upgrading via the ‘D:\Program Files\Python\python.exe -m pip install --upgrade pip’ command.
PS E:\Code\pythonTest\pythonProject> python get-pip.py
Looking in indexes: http://pypi.douban.com/simple/
WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com’.
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)

[notice] A new release of pip is available: 20.2.1 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: No matching distribution found for pip
PS E:\Code\pythonTest\pythonProject> python -m ensurepip --upgrade
Looking in links: c:\Users\ADMINI~1\AppData\Local\Temp\tmptxd89wis
Requirement already up-to-date: setuptools in d:\program files\python\lib\site-packages (49.2.1)
Requirement already up-to-date: pip in d:\program files\python\lib\site-packages (20.2.1)
PS E:\Code\pythonTest\pythonProject> python -m pip install --upgrade pip
Looking in indexes: http://pypi.douban.com/simple/
WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com’.
Requirement already up-to-date: pip in d:\program files\python\lib\site-packages (20.2.1)
WARNING: You are using pip version 20.2.1; however, version 24.3.1 is available.
You should consider upgrading via the ‘D:\Program Files\Python\python.exe -m pip install --upgrade pip’ command.
PS E:\Code\pythonTest\pythonProject> python -m pip install --upgrade pip --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))’: /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))’: /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))’: /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))’: /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))’: /simple/pip/
Requirement already up-to-date: pip in d:\program files\python\lib\site-packages (20.2.1)
WARNING: You are using pip version 20.2.1; however, version 24.3.1 is available.
You should consider upgrading via the ‘D:\Program Files\Python\python.exe -m pip install --upgrade pip’ command.
PS E:\Code\pythonTest\pythonProject> pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
Writing to C:\Users\Administrator\AppData\Roaming\pip\pip.ini
PS E:\Code\pythonTest\pythonProject> python -m pip install --upgrade pip
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/
Collecting pip
Downloading https://mirrors.ustc.edu.cn/pypi/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl (1.8 MB)
|████████████████████████████████| 1.8 MB 3.2 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.1
Uninstalling pip-20.2.1:
Successfully uninstalled pip-20.2.1
Successfully installed pip-24.3.1
PS E:\Code\pythonTest\pythonProject>

你可能感兴趣的:(python,pip,开发语言)