How to install pip3 for python 3.x

来源:互联网 发布:女生滴风油精知乎 编辑:程序博客网 时间:2024/06/16 05:43

I want to install pip3 with the command buf failed:

sudo apt-get install python3-pip

So I try to install it manually.
I have already installed the python3,so firstly I should install the pip

Install pip for python3.x

install the setuptools:

wget --no-check-certificate  https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26tar -zxvf setuptools-19.6.tar.gzcd setuptools-19.6.tar.gzpython3 setup.py buildpython3 setup.py install

then install the pip:

wget --no-check-certificate  https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eebtar -zxvf pip-8.0.2.tar.gzcd pip-8.0.2python3 setup.py buildpython3 setup.py install
原创粉丝点击