【发布时间】:2021-08-20 11:37:02
【问题描述】:
任何时候我在终端上使用“pip install”命令都会出错,大多数时候是“ERROR:exception”enter image description here
【问题讨论】:
-
尝试通过以下代码更新 pip:
python -m pip install –upgrade pip
标签: python django cmd pip operating-system
任何时候我在终端上使用“pip install”命令都会出错,大多数时候是“ERROR:exception”enter image description here
【问题讨论】:
python -m pip install –upgrade pip
标签: python django cmd pip operating-system
好吧,您的 pip 安装程序找不到任何模块,因为它本身已过期。所以首先使用 curl https://bootstrap.pypa.io/get-pip.py | python 更新您的 pip 安装程序,抱歉,但您没有指定您的操作系统。您可以在更新安装程序后尝试。
【讨论】:
py -m pip install --upgrade pip 将 pip 升级到最新版本,然后使用 py -m pip install <package-name> 安装包也许它可以提供帮助