-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import pylab (matplotlib._png) #1948
Comments
Can you do a |
Thanks @mdboom. My research in the last few hours points me in the same direction ( The path where I have the right libpng library is Below is the log of new installation from a new clean repository:
|
To use a custom library, one would need to provide both an include path and library path. Have you tried setting CFLAGS to |
To clarify, the "system" version of I have locally installed The reason why I thought I would go with the local version is two fold:
|
Thank you @mdboom , yes
I tried:
and then
but I am still unable to To clarify, I did not create Below is the new installation log:
|
@mdboom Found the solution. I had to update Oddly I now get a different error: |
You may need to set your backend (in I don't know of any testing that's been done with matplotlib and |
Note: I have left a copy of this thread on StackOverflow:
http://stackoverflow.com/questions/16227285/unable-to-import-matplotlib-png-pylab
I am unable to
import matplotlib._png
:This error prevents me from running
import pylab
(since this ultimately importsmatplotlib._png
).I installed
matplotlib
from source, and made sure to add the path with local installations (/home/james/local
) tobasedir
insetupext.py
before runningpython setup.py install
.My research so far:
As can be seen above, matplotlib seems to find version
1.2.10
even though the version that I have under/home/james/local
is1.6.1
:and I have
LD_LIBRARY_PATH
pointing to/home/james/local
as the first directory to look into.but matplotlib seems to have found the system version:
Could this be the problem? Why am I unable to import
matplotlib._png
?The text was updated successfully, but these errors were encountered: