How to install python packages using pip on go daddy linux hosting (don't have root access) -


could tell me how install packages using pip on go daddy linux hosted server. doesn't provide root access. when try install python package

pip install numpy 

it shows:

-bash: pip: command not found 

it giving python 2.6.6 , location is:

/usr/bin/python 

is there hack it?

you don't have pip installed. install pip run this

easy_install --user pip

this install pip you, without root access. if don't have 'easy_installed' installed, can run install pip without it

wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py --user

pip installed in .local/bin, access use .local/bin/pip install numpy

to add pip path, access pip install numpy

execute command:

echo "path=\$path:~/.local/bin" >> ~/.bashrc

and this:

source ~/.bashrc


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -