On 02/10/2013 01:10 PM, Joel Goldstick wrote:
On Sun, Feb 10, 2013 at 1:53 PM, Timo <timomli...@gmail.com> wrote:

Op 10-02-13 17:01, Jim Byrnes schreef:

  On 02/09/2013 05:46 AM, Albert-Jan Roskam wrote:

----- Original Message -----

  From: Jim Byrnes <jf_byr...@comcast.net> To: tutor@python.org Cc:
Sent: Saturday, February 9, 2013 3:02 AM Subject: [Tutor] Which pip
for Ubuntu 12.04

How important is it to have the latest pip installed?

Initially I want to use it to install the latest pymongo driver for
mongoDB. The pip version in the Ubuntu 12.04 repositories is 1.0.1.
I see on 
http://www.pip-installer.org/**en/latest/<http://www.pip-installer.org/en/latest/>the
 version is
1.2.1.

It certainly would be easier to install from the repositories but
will that version work to install the latest python packages?

Thanks,  Jim


You could just try it? And downloading it and then doing sudo tar
-xvr pip.tar.gz, cd ..., sudo python setup.py isn't that hard, is
it?


I usually install from the repositories or maybe a ppa so I don't believe
I have ever done an install from a tar.  If necessary I will familiarize
myself with the command you gave (yes I saw your followup changing -xvr to
-xvf) and install that way.

However, I still wonder if using the outdated pip from the repository
will allow me to install the latest python packages? Will trying to use an
outdated pip cause me problems?

I doubt it will. Have a look at the pip changelog to see what has been
changed.

Timo




  But you're right, I also nnoticed that the Canonical repositories are
a little outdated sometimes. Would be nice if it's possible to add
pypi.org, so updating would be easier.

Albert-Jan



Thanks,  Jim

______________________________**_________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>


______________________________**_________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>




You can upgrade pip with pip i believe:

jcg@jcg-desktop:~/code/python$ pip install pip
Requirement already satisfied (use --upgrade to upgrade): pip in
/usr/lib/pymodules/python2.7
Cleaning up...
jcg@jcg-desktop:~/code/python$


jcg@jcg-desktop:~/code/python$ pip install --upgrade pip


Be sure to sudo before if you don't have permissions.



I tried this on my laptop with the following results:

jfb@jfb-tp:~$ pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
jfb@jfb-tp:~$ pip install pip
Requirement already satisfied (use --upgrade to upgrade): pip in /usr/lib/python2.7/dist-packages
Cleaning up...

jfb@jfb-tp:~$ sudo pip install --upgrade pip
[sudo] password for jfb:
Downloading/unpacking pip
  Running setup.py egg_info for package pip

    warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build' no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
  Found existing installation: pip 1.0
    Uninstalling pip:
      Successfully uninstalled pip
  Running setup.py install for pip

    warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build' no previously-included directories found matching 'docs/_build/_sources'
    Installing pip script to /usr/local/bin
    Installing pip-2.7 script to /usr/local/bin
Successfully installed pip
Cleaning up...
jfb@jfb-tp:~$ pip --version
bash: /usr/bin/pip: No such file or directory
jfb@jfb-tp:~$

I not sure what the significance of the missing *.txt and *.html files is but it looks like I have a path problem. I would appreciate any pointers from anyone who has already solved this.

Thanks,  Jim

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to