Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > newbie question: On installation of additional packages to Python

Reply
Thread Tools

newbie question: On installation of additional packages to Python

 
 
Nasser Abbasi
Guest
Posts: n/a
 
      01-22-2008
hello;

I have not used Python before directly, but I am interested in trying it.
I've read some good things about it. ( I am mainly interested in trying it
for some scientific applications and simulation.)

I am running on windowz. I have downloaded and installed 2.5.1 Python.

my question is on installing additional packages.

What is the easiest way to do that? I read about python 'eggs' (like jar
files for Java), and easyInstall script, and such.

Is there some automated way to install Python packages? a manual/document I
could read that describes step by step how to do that? Browsing the
documentation, there does not seem to be something specific there (other
than saying download this tar file and install it).

I like how one can install additional packages in 'R' . In 'R' one can do
all that from the user interface for R by a pull-down menu, then one selects
a mirror site, then one can see all the packages available, then select the
package to download, and the rest is done automatically. (The package is
downloaded, installed, etc...)

Anything like that exists for Python? Btw, I have VM running on windowz,
and so I can run Python on Ubuntu linux on that VM, would be easier to
install additional Python packages there, may be using that nice GUI based
Ubuntu package manager to do that?

thanks,
Nasser


 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      01-22-2008
En Tue, 22 Jan 2008 00:36:34 -0200, Nasser Abbasi <> escribió:

> I am running on windowz. I have downloaded and installed 2.5.1 Python.
>
> my question is on installing additional packages.
>
> What is the easiest way to do that? I read about python 'eggs' (like jar
> files for Java), and easyInstall script, and such.


Once you have setuptools installed, it's as easy as executing:
easy_install packagename
The alternative is to find and download the package yourself, unzip in a
temporary directory, and execute: setup.py install
For most packages that's all that is required.

> Is there some automated way to install Python packages? a
> manual/document I
> could read that describes step by step how to do that? Browsing the
> documentation, there does not seem to be something specific there (other
> than saying download this tar file and install it).
>
> I like how one can install additional packages in 'R' . In 'R' one can do
> all that from the user interface for R by a pull-down menu, then one
> selects
> a mirror site, then one can see all the packages available, then select
> the
> package to download, and the rest is done automatically. (The package is
> downloaded, installed, etc...)


That's mainly what easy_install does, plus dependency checking.

--
Gabriel Genellina

 
Reply With Quote
 
 
 
 
Steve Holden
Guest
Posts: n/a
 
      01-24-2008
Gabriel Genellina wrote:
> En Tue, 22 Jan 2008 00:36:34 -0200, Nasser Abbasi <> escribió:
>
>> I am running on windowz. I have downloaded and installed 2.5.1 Python.
>>
>> my question is on installing additional packages.
>>
>> What is the easiest way to do that? I read about python 'eggs' (like jar
>> files for Java), and easyInstall script, and such.

>
> Once you have setuptools installed, it's as easy as executing:
> easy_install packagename
> The alternative is to find and download the package yourself, unzip in a
> temporary directory, and execute: setup.py install
> For most packages that's all that is required.
>
>> Is there some automated way to install Python packages? a
>> manual/document I
>> could read that describes step by step how to do that? Browsing the
>> documentation, there does not seem to be something specific there (other
>> than saying download this tar file and install it).
>>
>> I like how one can install additional packages in 'R' . In 'R' one can do
>> all that from the user interface for R by a pull-down menu, then one
>> selects
>> a mirror site, then one can see all the packages available, then select
>> the
>> package to download, and the rest is done automatically. (The package is
>> downloaded, installed, etc...)

>
> That's mainly what easy_install does, plus dependency checking.
>

So, the only step you are missing is how to install setuptools. This is
simplicity itself:

1. In your web browser visit

http://peak.telecommunity.com/dist/ez_setup.py

2. Save the Python. In Internet Explorer use "File | Save As", in
Firefox use "File | Save Page As"

3. Run it from the command line (or possibly by double-clicking
it in an explorer window, never tried that)

You should now be able to run easy_install from the command line and
install packages from the usual suspects.

regards
Steve

--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python Packages : A loomingproblem? packages might no longer work? (well not on your platform or python version anyway) David Lyon Python 19 04-23-2009 11:10 PM
Search Engine Optimization Packages India, SEO Packages Hyderabad,SEO Packages Firm visioninfosyslinks@gmail.com HTML 0 12-20-2007 08:45 AM
How to distribute an additional DLL to site-packages? Bo Peng Python 3 12-22-2006 08:59 PM
Advice on converting hashed packages to pseudo-hashed packages Ian Perl Misc 3 02-12-2005 12:17 AM
Do the javax.imageio packages replace packages in com.sun.image? Paul Smith Java 0 11-18-2003 02:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57