我的虚拟环境有2个python和pip版本(
pip3 -V 输出是pip 19.2.3 from /usr/local/python3.7.5/lib/python3.7/site-packages/pip (python 3.7)
python3 -V 输出是 Python 3.7.5
pip -V 输出是pip 24.0 from /home/txd/.local/lib/python3.10/site-packages/pip (python 3.10)
)
我想升级一下python3.7.5对应的pip3版本,出错
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
txd@txd-virtual-machine:~/桌面$ pip3 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: '/usr/local/python3.7.5/bin/pip3'
Consider using the `--user` option or check the permissions.
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
txd@txd-virtual-machine:~/桌面$ sudo pip3 install --upgrade pip
[sudo] txd 的密码:
Requirement already satisfied: pip in /usr/local/lib/python3.10/dist-packages (24.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
我的虚拟环境有2个python和pip版本(
pip3 -V 输出是pip 19.2.3 from /usr/local/python3.7.5/lib/python3.7/site-packages/pip (python 3.7)
python3 -V 输出是 Python 3.7.5
pip -V 输出是pip 24.0 from /home/txd/.local/lib/python3.10/site-packages/pip (python 3.10)
)
我想升级一下python3.7.5对应的pip3版本,出错
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
txd@txd-virtual-machine:~/桌面$ pip3 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: '/usr/local/python3.7.5/bin/pip3'
Consider using the `--user` option or check the permissions.
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
txd@txd-virtual-machine:~/桌面$ sudo pip3 install --upgrade pip
[sudo] txd 的密码:
Requirement already satisfied: pip in /usr/local/lib/python3.10/dist-packages (24.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv