pip,easy_install命令在Ubuntu中不起作用.安装了Python 2.7和3.4

mah*_*der 5 pip easy-install python-2.7 python-3.x python-3.4

我对python很新.我正在使用Ubuntu 14.04并安装了python 2.7.6和python 3.4.0.我试图安装BeautifulSoup,但不能,因为我得到一个错误说

The program 'pip' is currently not installed. 
Run Code Online (Sandbox Code Playgroud)

我发现它与python 3.4捆绑在一起.我尝试使用sudo easy_install pipstackoverflow上的另一个问题中提到的pip进行安装.但这会产生错误sudo: easy_install: command not found.

问题是什么?

cee*_*yoz 8

pip似乎已经变成python -m pip(在你的情况下,python3 -m pip因为Ubuntu保持2.x行可用python)在Python 3.4中.

easy_installfor Python 2.7作为python-setuptools软件包的一部分.安装完成后,运行easy_install pip会安装pip以供Python 2.7安装使用.