Need help with pip - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html) +--- Thread: Need help with pip (/thread-387.html) |
Need help with pip - emetib - 2011-03-12 Need help with pip. I installed pip on centos 5.4 python2.6 # install pip from source yum install python-setuptools cd /software wget http://pypi.python.org/packages/source/p/pip/pip- 0.6.3.tar.gz#md5=0602fa9179cfaa98e41565d4a581d98c tar -xzf pip-0.6.3.tar.gz cd pip-0.6.3 sudo /usr/bin/python2.6 setup.py install pip install virtualenv bash: pip: command not found pip –version pip: command not found So I need help removing pip 0.6.3 and wish to install pip 0.8.2 and virtualenv to use with django/pinax. Need help with pip - Dungeon-Dave - 2011-03-12 Quote:cd /softwareLooks like it was installed into the "/software" directory... Quote:pip install virtualenvHave you tried: Code: /software/pip -version Quote:So I need help removing pip 0.6.3 and wish to installWhen you extracted pip, there should have been a README or some other documentation file that came with the package - what does that say? Also - when it comes to python packages - they're not "installed" as such, they're just a pile of scripts that sit in a directory that are accessible from the command prompt. Downloading and running a python setup on the newer one will "install" that one for you - just delete the directory of the older one. Most python scripts I use are setup somewhere off /usr/lib/python or /usr/local/, and I link the executable to /usr/local/bin so that it's available when I call it directly from the command line. Another alternative is to install pip from RPM first: http://pkgs.org/centos-5-rhel-5/epel-i386/python-pip-0.8-1.el5.noarch.rpm.html The actual RPM package can be found here: http://download.fedora.redhat.com/pub/epel/5/i386/python-pip-0.8-1.el5.noarch.rpm Hope that works! Need help with pip - emetib - 2011-03-12 Quote:I use software directory to download and untar. installed pip using sudo /usr/bin/python2.6 setup.py install I have my python2.6 version installed in opt/python2.6. so cd /opt/python2.6/bin/ ls directory now has pip in it cd /opt/python2.6/lib/python2.6/site-packages/ ls directory now has pip in it Quote:pip -version does not work from any directory it seams it did not install correctly So I need help removing pip 0.6.3 and wish to install pip 0.8.2 and virtualenv to use with django/pinax. Quote:Downloading and running a python setup on the newer one will "install" that one for you - just delete the directory of the older one. When I figure this out how do I link the executable so that it's available when I call it directly from the command line. Need help with pip - Dungeon-Dave - 2011-03-17 Quote:cd /opt/python2.6/lib/python2.6/site-packages/Does "/opt/python2.6/lib/python2.6/site-packages/pip -version" work? If it does, you could consider adding /opt/python2.6/lib/python2.6/site-packages/ to your PATH variable. Quote:When I figure this out how do I link the executable so that it's available when I call it directly from the command line.Either the binary needs to be in a directory specified by your PATH variable, or you need to amend your PATH variable to point to that directory location. Calling it by name from the command line should then work. If you can run it using a full (absolute) path first, it's a simple matter of linking back to a binaries directory (/usr/local/bin or so). |