Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Right, fairly new here but here goes:

I'm trying to install pip (python installer) to my username since I don't have root privileges and can't just sudo apt-get install python-pip.

So what I've done is just easy_install --user pip. That installs it to .local/bin apparently but then when I call it like so:

pip install --user astropy

It says that pip is not currently installed.

I have limited knowledge of linux and of the system I'm using (NX connection to a machine at my university). I know I should be able to do this!

Any ideas? Thanks

share|improve this question
1  
If easy_install is not available, you can install pip to local with wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py && python get-pip.py --user –  JorgeGT Nov 2 at 18:51

1 Answer 1

I hope I'm right and the problem is with your PATH, try this

You can add this to your ~/.bashrc file:

PATH=$PATH:~/.local/bin

If you don't know how, you can just execute this line in a Terminal:

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

You can also check what's in your PATH by typing in the Terminal

echo $PATH
share|improve this answer
1  
Don't forget to source ~/.bashrc for the change to make effect! –  JorgeGT Nov 2 at 18:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.