473,396 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

is there a standard way to "install" egg-files under windows ?

hello,

after 4 months playing around with Python,
and I still have troubles with egg files.
Sometimes it works, sometimes it doesn't.

If I google on "python egg", I get lost of links,
which contains huge pages of information,
and I'm totally scared off.

I've used several methods,
the last one, success with 1 egg file, no success with another egg-file:
- download ez_setup.py and put it in a sub-directory of the Python path
- open an Python IDE
- open the ez_setup.py in the IDE
- dump the egg files in the same directory as ez_setup.py
- set in the IDE, the commandline parameters to the egg-filename (no path)
- run ez_setup.py in the IDE

Can someone tell how to install an egg file in just 1 line ?
Or even better, can there be an icon on the desktop, where I just can drop the egg-file ?

thanks,
Stef Mientki
May 30 '07 #1
4 28927
Stef Mientki schrieb:
hello,

after 4 months playing around with Python,
and I still have troubles with egg files.
Sometimes it works, sometimes it doesn't.

If I google on "python egg", I get lost of links,
which contains huge pages of information,
and I'm totally scared off.

I've used several methods,
the last one, success with 1 egg file, no success with another egg-file:
- download ez_setup.py and put it in a sub-directory of the Python path
- open an Python IDE
- open the ez_setup.py in the IDE
- dump the egg files in the same directory as ez_setup.py
- set in the IDE, the commandline parameters to the egg-filename (no path)
- run ez_setup.py in the IDE

Can someone tell how to install an egg file in just 1 line ?
Or even better, can there be an icon on the desktop, where I just can
drop the egg-file ?
setuptools - which you install using the ez_setup.py - will install a
script called easy_install. Under unix, this is installed in /usr/bin,
I'm not sure where it is installed under windows - go use a search.

But this script takes an egg-file as argument, and installs it.

So - either open the shell of your choice and type

easy_install <egg>

or maybe you can even use that via drag-n-drop to a desktop-link to that
easy_install-script, as dropping an egg over a program icon should pass
that as first argument.
Diez
May 30 '07 #2
"Diez B. Roggisch" <de***@nospam.web.dewrote:
setuptools - which you install using the ez_setup.py - will install a
script called easy_install. Under unix, this is installed in /usr/bin,
I'm not sure where it is installed under windows - go use a search.
It puts easy_install.exe (and variations on it) in C:\Python25\Scripts
(replace C:\Python25 with the path to your python installation).
May 30 '07 #3
Diez B. Roggisch wrote:
Stef Mientki schrieb:
>hello,

after 4 months playing around with Python,
and I still have troubles with egg files.
Sometimes it works, sometimes it doesn't.

If I google on "python egg", I get lost of links,
which contains huge pages of information,
and I'm totally scared off.
".egg" files are actually ".zip" files. So you can
rename them to ".zip" and unpack them where they need to go.
This is usually easier than debugging "easy_install".

John Nagle
May 31 '07 #4
John Nagle wrote:
Diez B. Roggisch wrote:
>Stef Mientki schrieb:
>>hello,

after 4 months playing around with Python,
and I still have troubles with egg files.
Sometimes it works, sometimes it doesn't.

If I google on "python egg", I get lost of links,
which contains huge pages of information,
and I'm totally scared off.

".egg" files are actually ".zip" files. So you can
rename them to ".zip" and unpack them where they need to go.
This is usually easier than debugging "easy_install".

John Nagle
thanks guys,

I'm slowly getting the picture.
Now knowing it's a zip file,
and trying several egg-files through easy_install,
I noticed different things,
- sometimes the egg is unzipped and placed in the "site-package" directory
- sometimes it's just copied (unzipped) to the site-package directory.

My first conclusion that egg-installation didn't work sometimes,
has probably to do with version conflicts between the already installed
libs and the new to install libs,
but I guess that's the benefit of open source ;-)

So if that's all, the renaming to .zip might be a less obscure way of
working.

cheers,
Stef Mientki
May 31 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Roper | last post by:
Hi, I have a web deployment project that asks for the port number in the standard dialog (along with the virtual directory). I also install a web service and this does not have an associated...
13
by: Adam | last post by:
My "C:\" is getting full. What's the best way to install "wxWindows" without taking up 115 MB from my "C:\" ? Why do the following: MS Visual Studio, wxWindows, Borland C++, Stingray...
5
by: Dan C Douglas | last post by:
I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to VS.NET 2003 yet and I am still developing it in...
3
by: Oscar Thornell | last post by:
Hi, I am looking for a technique where you from the serverside push/update a standard web browser with small piceces of data. An exempel could be sports result or stock exchange information. ...
59
by: Jeff Bowden | last post by:
For ease of configuration and other reasons, I would like for my single-user GUI app to be able to use postgresql in-process as a library accessing a database created in the users home directory. ...
5
by: funkyj | last post by:
I love pexpect because it means I may never have to use expect again (I don't do any heavy expect lifting -- I just need simple tty control)! As a python advocate I find it embarassing how...
4
by: Ronald S. Cook | last post by:
I created an MSI install for a Windows app I wrote. When installing, however, it defaults to install for "Just Me" instead of "Eveveryone" (meaning anyone who uses this computer). I would like...
1
by: Eric West | last post by:
Hello gurus of the internet- I'm trying to install PHP on a system with MySQL I've had success using MySQL which was installed via "yum install mysql" on my CentOS 4.3 system. My problem is...
4
by: inetquestion | last post by:
php has been configured with the following two configure lines and core's during "make install" on the PEAR section. Is there something simple i'm missing? Any help would be appreciated. ...
8
by: VijaKhara | last post by:
Hi all, Please tell me how to create a file (using fopen) in a sub-folder (such as sub-folder "Mygoal")? I tried if ( ( fp = fopen ( "mygoal\myfile.tif", "wb" ) ) == NULL ) { fprintf (...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.