I'm installing python on custom location on a internal server.
Unfortunately, I can't make full internet connection here. Most of sites are block by firewall. (essentially pypi repository!) Please don't ask the reason. And I don't have root account, so I have to install python from source.
I did install python from source successfully! But the problem is any of easy_install
or pip
is not installable because the sites are not accessible form here. :(
How can I install them under current situation?
Solution in Brief. As the solution we downloaded the required Python package and its dependencies from the PyPI and put them in a local folder location and installed them using 'pip' by instructing 'pip' to look for the packages in the local folder location instead of the PyPI.
download wheel file . whl file :like to the wheel file. then open terminal(as admin) and go to the directory which your whl file exists. type : pip install {name of your setuptools}.
tar -xvzf pack.tar.gz
)setup.py
)python setup.py install
(See documentation) In my eyes setting up a local mirror like proposed by Tim is not worth of it (Of course this depends on how often you plan to install/update Python modules on that remote machine...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With