473,405 Members | 2,272 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,405 software developers and data experts.

How to uninstall/update modules

Dear All,
It seems I don't understand how Python packages are handled. Here's my
specific problem

* I'm on Win32
* I've installed Enthought Python 2.5 because it got all the numerical
stuff included
* Later I tried to install Twisted 8.1

Twisted ended up in
C:\Python\Lib\site-packages\twisted

But there's an older Twisted included in the Enthought distribution.
It is at
C:\Python\Lib\site-packages\Twisted-2.5.0.0002-py2.5-win32.egg

Now, the strange thing (for the uninitiated, like me) is:

When doing a "import twisted" I get to older version in directory
Twisted-2.5.0.0002-py2.5-win32.egg, not the newer version in directory
twisted.

(A) What magic is going on in redirecting the import?
(B) How can I switch to use the newer version?
Regards,
Peter
Oct 10 '08 #1
1 3782
pj********@googlemail.com wrote:
Dear All,
It seems I don't understand how Python packages are handled. Here's my
specific problem

* I'm on Win32
* I've installed Enthought Python 2.5 because it got all the numerical
stuff included
* Later I tried to install Twisted 8.1

Twisted ended up in
C:\Python\Lib\site-packages\twisted

But there's an older Twisted included in the Enthought distribution.
It is at
C:\Python\Lib\site-packages\Twisted-2.5.0.0002-py2.5-win32.egg

Now, the strange thing (for the uninitiated, like me) is:

When doing a "import twisted" I get to older version in directory
Twisted-2.5.0.0002-py2.5-win32.egg, not the newer version in directory
twisted.

(A) What magic is going on in redirecting the import?
(B) How can I switch to use the newer version?
EPD installs its packages using easy_install. The list of the currently
activated packages are in the text file site-packages\easy-install.pth. These
will be put first on your sys.path. The latest Twisted is also
easy_install'able, so you could have done

easy_install -U Twisted

to upgrade (that's what the -U does) to the latest version. The older version
would have been removed from the easy-install.pth file and the newer version
activated. If you wish to go that route, you can remove the twisted/ directory
you currently have.

Alternately, if you wish to keep what you have, just remove the line in
easy-install.pth that lists the Twisted-2.5.0.0002-py2.5-win32.egg. If you wish
to upgrade in the future, you will have to remember to remove that directory
before installing the new version.

This is mostly specific to EPD (disclosure: I am an Enthought employee) since
it's related to the choice we made to use eggs for our packaging, so you can ask
us questions on the epd-users mailing list:

https://mail.enthought.com/mailman/listinfo/epd-users

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Oct 10 '08 #2

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

Similar topics

8
by: Alia Khouri | last post by:
If the cannonical way to install a python app is python setup.py install one would expect the following to uninstall it python setup.py uninstall However, distutils doesn't automatically...
6
by: Matt Frame | last post by:
I wrote a small assembly to test the process of placing it into the Global Assembly Cache but now I cannot remove it. When I hi-light and click delete I get the following: Assembly 'Assembly...
2
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. ...
1
by: Christoph W. Lueken | last post by:
How does one uninstall LCLint 2.5q from an HP-UX 9000 Unix OS, in order to clean off all obsolete modules and settings? We want to instead install Splint 3.1.1 (http://www.splint.org/), the program...
24
by: Thom Little | last post by:
During an uninstall, how can I check to see if the application I an uninstalling is currently running? -- -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd. --
0
by: Shrage H. Smilowitz | last post by:
Hi, I have created a setup project in vs.net, i have included several merge modules, but when i test the installation on my development machine i dont want the uninstall to remove the files that...
3
by: Henry Seymour | last post by:
I've developed a .Net Windows Form application and used the Click-Once Deployment. In that application I would like to allow the user a click-once method of uninstalling it. I do not find an...
1
by: Eric | last post by:
We are about to deploy a new version of our application re-written in .Net. Our .Net app is using the installer included with VS.Net 2003. The previous version of the application was deployed...
0
by: mikenannie | last post by:
I'm new to this forum, and I suspect this has been answered before, but I can't find the information. I have an Access DB that I've developed, split FE / BE, and installed on several customer...
7
by: Tiziano | last post by:
The Add or Remove Programs screen does not show that .NET is installed, yet Windows Update wants to install some patches/upgrades for .NET 1.1 and 2.0. I have tried my best to clean up things...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.