I have installed python3.7 on redhat machine by compiling source code but I have a problem when dealing with pip3. I have made this steps after installation:
sudo ln /usr/local/bin/python3.7 /usr/bin/python3
sudo ln /usr/local/bin/pip3.7 /usr/bin/pip3
python3 -- version gives Python 3.7.3
But I have this errors by running these commands :
python3 -m pip install requests
gives /usr/bin/python3: No module named pip.__main__; 'pip' is a package and cannot be directly executed
pip3 install requests
gives ModuleNotFoundError: No module named 'pip._internal'