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


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

installing libraries like numpy scipy matplotlib

Started byPIYUSH KUMAR <okkpiyush@gmail.com>
First post2015-07-03 21:05 -0700
Last post2015-07-05 12:21 +0000
Articles 5 — 4 participants

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


Contents

  installing libraries like numpy scipy matplotlib PIYUSH KUMAR <okkpiyush@gmail.com> - 2015-07-03 21:05 -0700
    Re: installing libraries like numpy scipy matplotlib jt@toerring.de (Jens Thoms Toerring) - 2015-07-04 14:58 +0000
      Re: installing libraries like numpy scipy matplotlib Terry Reedy <tjreedy@udel.edu> - 2015-07-04 16:29 -0400
      Re: installing libraries like numpy scipy matplotlib memilanuk <memilanuk@gmail.com> - 2015-07-05 04:26 -0700
        Re: installing libraries like numpy scipy matplotlib jt@toerring.de (Jens Thoms Toerring) - 2015-07-05 12:21 +0000

#93478 — installing libraries like numpy scipy matplotlib

FromPIYUSH KUMAR <okkpiyush@gmail.com>
Date2015-07-03 21:05 -0700
Subjectinstalling libraries like numpy scipy matplotlib
Message-ID<44a89c97-38bb-4087-973a-0da56488b824@googlegroups.com>
I have never used linux in my life.. only windows based computing.. So I have problems in installing third party libraries in python.
I know this one is very basic and there are very experienced programmers in this group.
So can somebody just explain me how many softwares or other python packages I have to install before installing any of these.
Any of the documentations couldn't been able to help me. I have checked many websites but got confused everytime.
I also had problems installing PYKE last month.
Please be very basic while explaining.
Thankyou very much :)

[toc] | [next] | [standalone]


#93490

Fromjt@toerring.de (Jens Thoms Toerring)
Date2015-07-04 14:58 +0000
Message-ID<cvqakgFlt3aU1@mid.uni-berlin.de>
In reply to#93478
PIYUSH KUMAR <okkpiyush@gmail.com> wrote:
> I have never used linux in my life.. only windows based computing.. So I
> have problems in installing third party libraries in python.

It depends. One question is if there's already a ready-for-use
package for the third party library you want to install. If that
is the case then the next question is which distro you're using
- there are different package-management systems.

Since you mentioned Pyke: if you got Ubuntu or Debian there's
a package for it you can simply install it using the command

  sudo apt-get install python-pyke

(The 'sudo' bit is for temporarily assuming the permissions
to install the package, you're going to be asked for your
password. 'apt-get' is the program for installing and de-
installing packages. And 'python-pyke' is the name of the
package._

If you also want the documentation installed add 'python-pyke-doc'.
If you have some other distribution there might be a different
program for installing new packages. And there's basically always
also some program with a graphical user interface, wrapped around
that and which shows you which packages exist (thousands).

If there's no package for what you want you need to download
the sources and install them yourself. For the details there
usually is a file named README.txt and/or INSTALL.txt (or
similar). Often all you need to use is the three commands

  ./configure
  make
  sudo make install

If what you want to install depends on further software you
also need to install that before creating and installing of
what you need will succeed. So, again check if a ready-made
package for that dependencies available or download, compile
and install that. This can, in some cases, become a bit of
work if A need B, B in turn need C and D, D needs E etc.;-)

> So can somebody just explain me how many softwares or other python packages
> I have to install before installing any of these.

Sorry, but I don't understand this sentence. But in case for what
you want to install there's a package for your distro you don't
need to worry at all - all dependencies will get installed
automatically (so if you want to install package A and that
needs package B, B will installed automatically before A is
installed).

> I also had problems installing PYKE last month.

What were these problems?
                               Best regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de

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


#93494

FromTerry Reedy <tjreedy@udel.edu>
Date2015-07-04 16:29 -0400
Message-ID<mailman.293.1436041806.3674.python-list@python.org>
In reply to#93490
On 7/4/2015 10:58 AM, Jens Thoms Toerring wrote:
> PIYUSH KUMAR <okkpiyush@gmail.com> wrote:
>> I have never used linux in my life.. only windows based computing.. So I
>> have problems in installing third party libraries in python.

The numpy and scipy projects create Windows binararies for all recent 
releases that are available on pypi.python.org and installed with
pip install scipy
for instance.  Many other ditto.

http://www.lfd.uci.edu/~gohlke/pythonlibs/
provides binaries for about a hundred popular packages.
pip can access these also (see page header).

-- 
Terry Jan Reedy

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


#93505

Frommemilanuk <memilanuk@gmail.com>
Date2015-07-05 04:26 -0700
Message-ID<mailman.303.1436095595.3674.python-list@python.org>
In reply to#93490
On 07/04/2015 07:58 AM, Jens Thoms Toerring wrote:
> PIYUSH KUMAR <okkpiyush@gmail.com> wrote:
>> I have never used linux in my life.. only windows based computing.. So I
>> have problems in installing third party libraries in python.
>
> It depends. One question is if there's already a ready-for-use
> package for the third party library you want to install. If that
> is the case then the next question is which distro you're using

I could be wrong, but I think the point was that he's not using Linux, 
while the majority of instructions for getting and using various 
scientific libraries for Python assume that the user *is* using Linux.

One option would be to run Linux from a VM... but another would be to 
use a 'packaged' version of Python such as Anaconda * or Enthought ** - 
they come ready to go with all the more popular scientific packages 
installed.  They go to some lengths to address issues of package 
compatibility and dependencies - something that can be more of a pain on 
Windows than on Linux.

*  http://continuum.io/downloads
** https://www.enthought.com/products/epd/


-- 
Shiny!  Let's be bad guys.

Reach me @ memilanuk (at) gmail dot com

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


#93506

Fromjt@toerring.de (Jens Thoms Toerring)
Date2015-07-05 12:21 +0000
Message-ID<cvslq4F9916U1@mid.uni-berlin.de>
In reply to#93505
memilanuk <memilanuk@gmail.com> wrote:
> On 07/04/2015 07:58 AM, Jens Thoms Toerring wrote:
> > PIYUSH KUMAR <okkpiyush@gmail.com> wrote:
> >> I have never used linux in my life.. only windows based computing.. So I
> >> have problems in installing third party libraries in python.
> >
> > It depends. One question is if there's already a ready-for-use
> > package for the third party library you want to install. If that
> > is the case then the next question is which distro you're using

> I could be wrong, but I think the point was that he's not using Linux, 
> while the majority of instructions for getting and using various 
> scientific libraries for Python assume that the user *is* using Linux.

Reading it the first time I understood it too mean that the OP
is completely new to Linux (otherwise why mention Linux at all
and not ask directly "How do I install something under Windows?").
But on second reading I see that it could also have beenmeant the
other way round and it's not about Linux at all;-)

                            Best regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de

[toc] | [prev] | [standalone]


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


csiph-web