we can download the module - requests
, as the following
cd /home/module/
pip download requests
ls -l
certifi-2019.9.11-py2.py3-none-any.whl chardet-3.0.4-py2.py3-none-any.whl idna-2.8-py2.py3-none-any.whl requests-2.22.0-py2.py3-none-any.whl urllib3-1.25.6-py2.py3-none-any.whl
now we can easily to install the module as
pip install *.whl
we can check it by
python -c "import requests"
now - since on some Linux redhat machines we not have pip ( we cant install pip because security reasons )
so we want to install the module without pip
we try
easy_install --install-dir=/home/module/*
but we get errors , maybe I not use it right ,
so can we get advice how to install the requests module without pip from local folder ?
You could install the module from source:
foo@bar:~/$ git clone https://github.com/psf/requests.git
foo@bar:~/$ cd requests
foo@bar:~/requests$ git checkout v2.22.0
foo@bar:~/requests$ python setup.py install