Why is not the pip command recognized if the module is installed in Python?

0

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"
    
asked by Victor Alvarado 15.03.2018 в 19:08
source

1 answer

0

It happens that you should 8 already brings a default version of Python2.7

This did not contain the module pip nor% setuptools .

At the time of installing Python3.6 you should access the using Python3.6 in cli , to be able to execute the commands with the installation that had the previous named modules.

Once I changed the command python by python3.6 in cli , it worked, giving warnings of the certificates SSL (for the lack of connection to internet) but working correctly.

    
answered by 15.03.2018 в 20:14