2

I have just downloaded the python 3.4 source from the web site and compiled it with ./configure and make. I get a fully functional python.

Everyone says that pip comes embedded with python but that is not true if I compile it from source.

On a console I do:

./python -m pip install numpy

from the compilation folder, and I get:

No module named pip

I am on a RHEL7 system and I want to produce a standalone python folder with all the needed modules. My intention is to ship this python folder along with some python software so that I am sure that everything is ok. (Not to rely on others installing all the packages that are needed on a fresh RHEL7 installation)

Santi Peñate-Vera
  • 1,053
  • 4
  • 33
  • 68
  • I tried [https://stackoverflow.com/questions/6587507/how-to-install-pip-with-python-3] and did not work for me... – Santi Peñate-Vera Oct 25 '17 at 07:09
  • did you try `get-pip.py`? That should work. – Derek Brown Oct 25 '17 at 15:32
  • Didn't work for me. I found a pip .whl file in the folder `/Lib/ensurepip/_bundled` I unpacked it under `/Lib` and I had pip working, but it wasn't installing the libraries in the local folder. Instead it tried to install them on the system... Finally I just downloaded with miniconda which worked fine – Santi Peñate-Vera Oct 26 '17 at 06:40

1 Answers1

1

Instead of pip try pip3. It is python version 3.x and appropriate one for it is pip3 I guess.

Berk
  • 120
  • 9