saghul / pythonz

Python installation manager supporting CPython, Stackless, PyPy and Jython
http://saghul.github.io/pythonz
MIT License
751 stars 69 forks source link

building with pip module (python >=3.4) #145

Open maxthomas opened 4 years ago

maxthomas commented 4 years ago

how would i go about building python3 with the pip module enabled, like it is by default on the distributed versions?

should this be the default?

ifduyue commented 4 years ago

I think it is the default

# pythonz install 3.4.0
Downloading Python-3.4.0.tgz as /usr/local/pythonz/dists/Python-3.4.0.tgz
########################################################################## 100%
Extracting Python-3.4.0.tgz into /usr/local/pythonz/build/CPython-3.4.0

This could take a while. You can run the following command on another shell to track the status:
  tail -f /usr/local/pythonz/log/build.log

Installing CPython-3.4.0 into /usr/local/pythonz/pythons/CPython-3.4.0

Installed CPython-3.4.0 successfully.
# `pythonz locate 3.4.0` -mpip --version
pip 1.5.4 from /usr/local/pythonz/pythons/CPython-3.4.0/lib/python3.4/site-packages (python 3.4)
# `pythonz locate 3.4.0` -mpip install -U pip
# `pythonz locate 3.4.0` -mpip --version
pip 19.2.1 from /usr/local/pythonz/pythons/CPython-3.4.0/lib/python3.4/site-packages/pip (python 3.4)

Even if pip is not installed, you can install it via python -mensurepip, or follow the instructions provided by the link you attached above.