Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76799 > unrolled thread

Som confusion about the python library installation

Started byJiafan Zhou <zhoujiafan@gmail.com>
First post2014-08-22 08:46 -0700
Last post2014-08-23 08:31 +1000
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Som confusion about the python library installation Jiafan Zhou <zhoujiafan@gmail.com> - 2014-08-22 08:46 -0700
    Re: Som confusion about the python library installation Michael Torrie <torriem@gmail.com> - 2014-08-22 10:10 -0600
      Re: Som confusion about the python library installation Heinz Schmitz <HeinzSchmitz@gmx.net> - 2014-08-24 11:17 +0200
        Re: Som confusion about the python library installation Michael Torrie <torriem@gmail.com> - 2014-08-24 13:29 -0600
    Re: Som confusion about the python library installation Chris Angelico <rosuav@gmail.com> - 2014-08-23 08:31 +1000

#76799 — Som confusion about the python library installation

FromJiafan Zhou <zhoujiafan@gmail.com>
Date2014-08-22 08:46 -0700
SubjectSom confusion about the python library installation
Message-ID<5c82c87c-399e-4fff-9c71-f83db77da5a2@googlegroups.com>
Hi all,

Need some explanation on my already done python library installation.

I was informed to work on a python project which requires a number of python libraries.

One of them is the python-nose unit testing framework

Since I am in Ubuntu 12.04 lts, the first thing I did was to issue the below command:

sudo apt-get install python-nose

One the installation completes, the version of python-nose it installed is 1.1.2

$ dpkg -l | grep -i nose
ii  python-nose                              1.1.2-3

And it is available in the python library and can be viewed from the pip

Later on, I realized the target version I should use is nose 1.3.3

So in the pip, I performed:

pip install --upgrade nose

Now from the pip, it is nose(1.3.3), whereas the apt-get still reports python-nose (1.1.2-3)

I guess it must be the 1.3.3 version being used in the system, but why apt-get still reports 1.1.2-3 and this worries me a little.

Another separate question in relation, do I really need to install the python-nose in ubuntu. Can I not just go directly to pip and install the nose library?

Regards,
Jiafan

[toc] | [next] | [standalone]


#76801

FromMichael Torrie <torriem@gmail.com>
Date2014-08-22 10:10 -0600
Message-ID<mailman.13296.1408723833.18130.python-list@python.org>
In reply to#76799
On 08/22/2014 09:46 AM, Jiafan Zhou wrote:
> I guess it must be the 1.3.3 version being used in the system, but
> why apt-get still reports 1.1.2-3 and this worries me a little.
> 
> Another separate question in relation, do I really need to install
> the python-nose in ubuntu. Can I not just go directly to pip and
> install the nose library?

This is what happens when you mix installing from operating system
packages with installing from other methods (pip, tar.gz, etc).  The
package system is not notified when you install from other sources, so
it still thinks the package is original.  Now with pip you've
overwritten (most likely) the version of nose.  This should be okay,
though if another update to nose comes through Ubuntu, it will overwrite
your pip version.

Just be careful what you manually install over top of a built-in
package.  For example you should never overwrite the packaged version of
Python itself, for example.  If you need to install a new version of
Python, it must be installed along side the system version, in a
different directory.  Sometimes you can find newer versions of software
that you can install with Ubuntu's package tools.  For example, some
people provide PPAs you can use to integrate newer software easily.

Ubuntu 12.04 is rather old now, and while it's still supported, it does
not have the newer versions of some software that you might require, as
you noticed with python-nose.  You could try Ubuntu 14.04.

[toc] | [prev] | [next] | [standalone]


#76929

FromHeinz Schmitz <HeinzSchmitz@gmx.net>
Date2014-08-24 11:17 +0200
Message-ID<ssajv91d7u6gmk3hikk1n7tb0712oehvva@4ax.com>
In reply to#76801
Michael Torrie wrote:

>You could try Ubuntu 14.04.

Don't forget to mention the hardware requirements for 14.04.
Me thinks that a single core CPU and a medium class graphics
card won't make the user happy with it. 
Wouldn't it be friendly to the resources of our world if at least 
some software was tended to as long as the hardware lived?

Regards,
H.

[toc] | [prev] | [next] | [standalone]


#76940

FromMichael Torrie <torriem@gmail.com>
Date2014-08-24 13:29 -0600
Message-ID<mailman.13384.1408908553.18130.python-list@python.org>
In reply to#76929
On 08/24/2014 03:17 AM, Heinz Schmitz wrote:
> Don't forget to mention the hardware requirements for 14.04.
> Me thinks that a single core CPU and a medium class graphics
> card won't make the user happy with it. 
> Wouldn't it be friendly to the resources of our world if at least 
> some software was tended to as long as the hardware lived?

I think it will work just fine on a single core CPU with an older
graphics card.  Unity and Gnome 3 run fine on my old netbook that's
single core Atom.  So no worries there, except for people disliking
Unity itself.

[toc] | [prev] | [next] | [standalone]


#76829

FromChris Angelico <rosuav@gmail.com>
Date2014-08-23 08:31 +1000
Message-ID<mailman.13315.1408746687.18130.python-list@python.org>
In reply to#76799
On Sat, Aug 23, 2014 at 1:46 AM, Jiafan Zhou <zhoujiafan@gmail.com> wrote:
> Another separate question in relation, do I really need to install the python-nose in ubuntu. Can I not just go directly to pip and install the nose library?
>

If you're going to use pip to install nose, I recommend not having it
installed via apt-get. You should be able to remove the Ubuntu package
and just use pip (you may have to reinstall with pip after removing
with apt-get), and then you don't have to worry about accidental
upgrades.

ChrisA

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web