On 2009-02-10 15:26, Gustavo Blando wrote:
> Hi, I am new to Python, and I am trying to install the matplotlib but it is
>> not working.
>> I would appreciate your help.
>   I am using Python with the PythonWin environment.
>   I have created a PYTHONPATH on my environment variables to make
>   sure I point to all the libraries.
>   I have installed the numpy, scipy and other libraries that seems
>   to work just fine.
>
> BUT when I try to load the matplotlib, this is what I get:
>
>> ERROR:
>> ======
>> from matplotlib import *
>> Traceback (most recent call last):
>>   File "<interactive input>", line 1, in<module>
>>   File "C:\Python25\Lib\site-packages\matplotlib\__init__.py", line 97, in
>> <module>
>>    import distutils.sysconfig
>>   File "C:\Python25\Lib\site-packages\numpy\distutils\__init__.py", line 6,
>> in<module>
>>    import ccompiler
>>   File "C:\Python25\Lib\site-packages\numpy\distutils\ccompiler.py", line 7,
>> in<module>
>>    from distutils import ccompiler
>> ImportError: cannot import name ccompiler
>
>>   - It's having a problem with ccompiler, but ccompiler.py is on that
>> directory.

It looks like you have a problem with your PYTHONPATH. You shouldn't have 
c:\Python25\Lib\site-packages\numpy\ on your PYTHONPATH. Show me your 
PYTHONPATH, and I can point out what else is wrong.

-- 
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


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to