Install Python Module on Shared Webhost Tutorial
How to install a python module on a web server (or any computer) in which you don’t have root access and cannot use easy_install or pip.
How to Create a Website: Step-by-Step Guide for Beginners
How to install a python module on a web server (or any computer) in which you don’t have root access and cannot use easy_install or pip.
Not working for me. I keep getting: python setup.py –home=~
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: setup.py –help [cmd1 cmd2 …]
or: setup.py –help-commands
or: setup.py cmd –help
error: option –home not recognized
Any suggestions?
What do you mean by, Append the Python path. You mentioned at the end. If we want to run Python Script, append the path. ty.
Thanks. And for anyone trying to use this in conjunction with a cron job on a hosted server, you have to include the python path in the command you give to the cronjob, as shown here: https://stackoverflow.com/questions/23136675/crontab-missing-python-module/23136849#23136849
Buy Hosting @ Rs. 300 Per Year 1 GB Space & 10 GB Bandwidth Call us at +91-8950059993
REPLY
Can't thank you enough for solving my problem. Been browsing the internet and couldn't find any solution, but your video did the trick. I almost gave up and accepted the fact I can't do much with my shared webhost. Now, I have more freedom and enjoy programming with python. Many many thanks! 🙂
Thanks. Being new to this…could you explain or compare this to using virtualenv?
thanks, that did the trick
No, shouldn't be…
Isn't $PYTHONPATH:/lib/python accessing admin folders ?
spoiler alert!
export PYTHONPATH=$PYTHONPATH:/lib/python
export PYTHONPATH=$PYTHONPATH:$HOME/lib/python
python setup.py –home=~
The 'python setup.py –home=~' doesn't appear to work in my version of python 2.6.6. I needed to use 'python setup.py install –home=~' instead.
Hope that helps
Awesome! 🙂