By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,630 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,630 IT Pros & Developers. It's quick & easy.

using links vs changing bash

P: 5
I am still attempting to set up python/django/pinax/PIL/pip/virturalevn

There is no one tutorial I found that explains this very well.

I did set up some links for python2.6
then read change the PATH=

after installing pip I get
pip command not found.

I am guessing because I need more links.

Can I just remove all links and change the bash profile?

If so how do I remove
sudo ln -s /opt/python2.6/lib/libpython2.6.so /usr/lib
sudo ln -s /opt/python2.6/lib/libpython2.6.so.1.0 /usr/lib
sudo ln -s /opt/python2.6/bin/python /usr/local/bin/python
sudo ln -s /opt/python2.6/bin/python /usr/bin/python2.6
sudo ln -s /opt/python2.6/lib/python2.6.so /opt/python2.6/lib/python2.6/config/

SO I CAN
vi .bash_profile
# add the following lines to the bottom of the file
alias python=’/opt/python2.6/bin/python’
alias python2.6=’/opt/python2.6/bin/python’
PATH=$PATH:/opt/python2.6/bin

# now do the same for every other user, like this:
vi /home/usera/.bash_profile
# add the following lines to the bottom of the file
alias python=’/opt/python2.6/bin/python’
alias python2.6=’/opt/python2.6/bin/python’
PATH=$PATH:/opt/python2.6/bin
Mar 13 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.