简体   繁体   English

无法在Ubuntu 18.04上安装pip3和easy_install

[英]Unable to install pip3 and easy_install on Ubuntu 18.04

My fresh Ubuntu 18.04 does not have pip3 installed and following multiple questions, I could only install it using easy_install3. 我的新版Ubuntu 18.04没有安装pip3,并且遇到多个问题,我只能使用easy_install3进行安装。 However, easy_install3 is not available and instructions to install it are using pip3. 但是,easy_install3不可用,安装说明使用的是pip3。 I am in a deadlock now. 我现在陷入僵局。 My attempts: 我的尝试:

  1. sudo apt-get install python3-setuptools which is successful sudo apt-get install python3-setuptools成功

  2. sudo easy_install3 pip : sudo: easy_install3: command not found sudo easy_install3 pipsudo: easy_install3: command not found

Try for python3 pip 尝试python3 pip

sudo apt-get install python3-pip

for python 2.x pip 对于python 2.x pip

sudo apt-get install python-pip

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM