• sudo apt-get remove python-pip: 此命令使用 apt-get 命令(需要超级用户权限 sudo)从系统中删除 Python 包管理器 pip
  • wget https://bootstrap.pypa.io/get-pip.py: 此命令使用 wget 命令(一种用于从网络检索文件的工具)从指定 URL 下载 get-pip.py 文件。
  • python get-pip.py: 此命令使用 Python 解释器 (python) 运行 get-pip.py 脚本,以安装 pip 包管理器。
  • hash -r: 此命令刷新 shell 的命令查找缓存,使 shell 能够找到新安装的 pip 可执行文件。
如何在 Linux 上安装和卸载 Python 包管理器 pip

原文地址: https://www.cveoy.top/t/topic/nY8A 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录