I just installed Python 3.6.4 on a test server in debian 8, it does not have internet access .
Use the following command
tar xvhf Python-3.6.4.gz
cd Python-3.6.4
./configure
make
su make altinstall
Once ready, try to use pip and it did not work, proceed to reinstall using this command:
./configure --ensurepip=yes
That in order to install pip in case it was not.
I return the following result:
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages
That is to say, that the pip is installed, but when trying to use it, it tells me the following:
bash: pip: the order was not found.
On the other hand, enter the interpreter and use the following commands:
help()
modules
Note that there is no pip or setuptools and in an installation that I have if they appear.
How can I make pip work so I can install modules offline?
Use this command also to generate the environment variable:
export PYTHONPATH="${PYTHONPATH}/usr/local/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages"