简体   繁体   English

我先卸载pip,然后重新安装pip,但显示未安装

[英]i uninstall pip and then reinstall pip but showing not installed

first i got an error due to pip version so i updated my pip to latest version 19, after that again i got some error like "cannot import name main" to fix this i uninstall my pip and then reinstall it. 第一次,我由于pip版本而出现错误,因此我将pip更新到最新版本19,之后再次遇到诸如“无法导入名称主要”之类的错误来解决此问题,我先卸载了pip,然后重新安装了它。 now it is showing "The program 'pip3' is currently not installed. You can install it by typing: sudo apt install python3-pip" so what can i do to fix this, thank you in advance 现在它显示“程序'pip3'当前未安装。您可以通过键入以下内容来安装它:sudo apt install python3-pip”,所以我该怎么做解决此问题,在此先感谢您

I tried "sudo apt install python3-pip" which show 我试过的“ sudo apt install python3-pip”显示

"Reading package lists... Done Building dependency tree Reading state information... Done python3-pip is already the newest version (8.1.1-2ubuntu0.4). 0 upgraded, 0 newly installed, 0 to remove and 677 not upgraded" “正在读取软件包列表...完成了构建依赖关系树的操作正在读取状态信息...已完成python3-pip已经是最新版本(8.1.1-2ubuntu0.4)。已升级0,新安装0,要删除0,尚未升级677 ”

and when i tried to install package it shows 当我尝试安装软件包时,它显示

The program 'pip3' is currently not installed. 当前未安装程序“ pip3”。 You can install it by typing: sudo apt install python3-pip" 您可以通过键入以下命令进行安装:sudo apt install python3-pip“

umair@ubuntu:~$ which pip /usr/bin/pip umair@ubuntu:~$ which pip3 umair@ubuntu:~$ pip3 install scipy The program 'pip3' is currently not installed. umair @ ubuntu:〜$其中pip / usr / bin / pip umair @ ubuntu:〜$其中pip3 umair @ ubuntu:〜$ pip3 install scipy当前未安装程序'pip3'。 You can install it by typing: sudo apt install python3-pip umair@ubuntu:~$ cd Desktop/ umair@ubuntu:~/Desktop$ cd classification-master/ umair@ubuntu:~/Desktop/classification-master$ sudo apt install python3-pip Reading package lists... Done Building dependency tree Reading state information... Done python3-pip is already the newest version (8.1.1-2ubuntu0.4). 您可以通过键入以下命令来安装它:sudo apt install python3-pip umair @ ubuntu:〜$ cd桌面/ umair @ ubuntu:〜/ Desktop $ cd category-master / umair @ ubuntu:〜/ Desktop / classification-master $ sudo apt install python3-pip正在读取包列表...完成构建依赖关系树正在读取状态信息...已完成python3-pip已经是最新版本(8.1.1-2ubuntu0.4)。 0 upgraded, 0 newly installed, 0 to remove and 677 not upgraded. 0已升级,0新安装,0已删除和677未升级。 umair@ubuntu:~/Desktop/classification-master$ pip3 install scipyThe program 'pip3' is currently not installed. umair @ ubuntu:〜/ Desktop / classification-master $ pip3 install scipy当前未安装程序'pip3'。 You can install it by typing: sudo apt install python3-pip umair@ubuntu:~/Desktop/classification-master$ which pip3 umair@ubuntu:~/Desktop/classification-master$ type pip3 bash: type: pip3: not found umair@ubuntu:~/Desktop/classification-master$ 您可以通过键入以下命令进行安装:sudo apt install python3-pip umair @ ubuntu:〜/ Desktop / classification-master $其中pip3 umair @ ubuntu:〜/ Desktop / classification-master $类型pip3 bash:类型:pip3:找不到umair @ubuntu:〜/ Desktop / classification-master $

umair@ubuntu:~/Desktop/classification$ pip3 --version The program 'pip3' is currently not installed. umair @ ubuntu:〜/ Desktop / classification $ pip3 --version当前未安装程序'pip3'。 You can install it by typing: sudo apt install python3-pip 您可以通过键入以下命令进行安装:sudo apt install python3-pip

当Python发行版不包含pip ,通常可以使用python -m ensurepippython3 -m ensurepip或使用的任何Python进行安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我通过意外运行“pip uninstall pip”卸载了 pip。 现在,如何重新安装 pip? - I uninstalled pip by accidentally running `pip uninstall pip`. Now, how to reinstall pip? 卸载使用`pip install .`安装的软件包 - Uninstall a package installed with `pip install .` pip 未显示成功安装 - pip is not showing successfully installed 安装的 pip3 模块不再可识别。 需要用pip重新安装 - Installed with pip3 modules no longer recognizable. Need to reinstall with pip 如何卸载使用 pip install --user 安装的软件包 - How to uninstall a package installed with pip install --user pip 无法卸载<package> :“这是一个distutils安装的项目” - pip cannot uninstall <package>: "It is a distutils installed project" 如何在使用 pip 安装的 Anaconda 中卸载软件包 - How to uninstall package in Anaconda installed with pip pip 重新安装 pkg 并安装未安装的依赖项,但不安装已安装的依赖项? - pip reinstall pkg and install dependencies that are not installed, but not install dependencies that are already installed? 如何检查我是否安装了 Python、pandas 和带有 conda 或 pip 的 Jupyter? 我应该用 conda 重新安装它吗? - How can I check if I installed Python, pandas, and Jupyter with conda or pip? Should I reinstall it with conda? 我可以强制 pip 重新安装当前版本吗? - Can I force pip to reinstall the current version?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM