Using Windows Binary to install MatPlotLib in different site-packages folder

Ok, I am not sure if this is possible, but here is the situation.

I am using VirtualEnv to have multiple virtual environments that have
their own site-packages folder. So each environment is its own sandbox.

I am on Windows, and would like to use the binary installation files you
provide. The installation directory immediately shows c:\python25. The
the directory that MatPlotLib will be installed shows as
c:\python25\lib\site-packages.

However, I want it to go to c:\pyenv\lib\site-packages.

Is it possible?

Thanks.
Rodney

R. Haynie wrote:

I am using VirtualEnv to have multiple virtual environments that have
their own site-packages folder. So each environment is its own sandbox.

another reason why core python really needs to have an "official" versioning system - either something like virtualenv, or (my preference), package versioning built in.

Anyway, in the mean time, two ideas to try:

1) "easy_install matplotlib" run with the easy_install in your virtual env -- hopefully, it will install a binary Windows egg -- does one exist?

2) try manually moving the matplotlib package from the system site-packages to your virtualenv.

Let us know how it works out...

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Christopher Barker wrote:

block quote
R. Haynie wrote:

block quote
I am using VirtualEnv to have multiple virtual environments that have
their own site-packages folder. So each environment is its own sandbox.
    
block quote end

another reason why core python really needs to have an "official"
versioning system - either something like virtualenv, or (my
preference), package versioning built in.
Anyway, in the mean time, two ideas to try:
1) "easxy_install matplotlib" run with the easy_install in your virtual
env -- hopefully, it will install a binary Windows egg -- does one exist?

block quote end

Tried this towards the end of 2008 a few times, did not fair well at all
in Windows.

block quote
2) try manually moving the matplotlib package from the system
site-packages to your virtualenv.
Ok, this is what I tried today:

block quote end

Uninstalled any python package I had installed with a windows installer,
uninstalled all of python, and cleared the cache folder, deleted
python25 folder.
Installed python 2.5 with windows installer.
Took note of what was in site-packages.
Ran NumPy windows installer, and moved all new files and folders out of
Site-Packages. Moved them to a folder I named c:\site-packages_NumPy.
Did the same for MatPlotLib windows installer. Moved them to a folder I
named c:\site-packages_MatPlotLib.
Got real anal here and uninstalled numpy and matplotlib using the
windows uninstallers. Then uninstalled Python and cleared the cache
folder and deleted python25.

Now this is where I thought I could go and make some nice virtual
environments and have some safe sandboxes. But of course not.
Installed python, easy_install, virtualenv, pywin32.
Created new virtual environment and activated it. Copied the files from
the numpy and matplotlib site-packages folders into the new virtual
environment site-packages folder.
Tryed a simple plot, and got an error that pylab module did not exist.
So, I figured that the windows installers did more than met the eye.
They probably install some DLLs etc.
I then installed numpy and matplotlib using the windows installers.
Tried my plot test from within the virtual environment and it worked.

I created a new virtual environment, installed nothing, tried the plot
test from within that environment and the test worked. It should not
have worked.

Looks like I can only have 1 numpy and 1 matplotlib on a windows box at
a time, virtual environments or not.

block quote
Let us know how it works out...

block quote end

I sure hope someone reads this and finds something glaringly wrong with
my process.