matplotlib - How to install wxversion for Python -


i'm experimenting "spy" spectral python library, using pycharm, , i've gotten point tells me wxversion not found. how can install wxversion?

i'm new python in general, doing else wrong? here code:

import matplotlib #matplotlib.use('wx')    #replaced editing matplotlibrc spectral import *  img = open_image('92av3c.lan') print img.__class__ print print img print print img.shape pixel = img[50,100] print print pixel.shape band6 = img[:,:,5] print print band6.shape print   arr = img.load()  print arr.__class__ print print arr.info() print print arr.shape  view = imshow(img, (29, 19, 9)) 

all of spy guide here: http://www.spectralpython.net/user_guide.html

here error:

traceback (most recent call last):   file "/users/pkillam/pycharmprojects/untitled/spy experiments", line 36, in <module>   file "/library/python/2.7/site-packages/spectral/graphics/spypylab.py", line 1238, in imshow     import matplotlib.pyplot plt   file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/pyplot.py", line 98, in <module>     _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()   file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/backends/__init__.py", line 28, in pylab_setup     globals(),locals(),[backend_name],0)   file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/backends/backend_wxagg.py", line 6, in <module>     import backend_wx    # uses wxversion.ensureminimal('2.8')   file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/backends/backend_wx.py", line 53, in <module>     raise importerror(missingwxversion) importerror: matplotlib backend_wx , backend_wxagg require wxversion, not found. 

also, there other guides/tutorials out there spy?

you can install wxpython on mac downloading www.wxpython.org. please take note of following notice on website:

note: installer not signed apple, default mac tell corrupted , not install it. can around temporarily relaxing security settings in system preferences. in security & privacy section set "allow applications downloaded from" "anywhere."

i have followed directions , had no problem installing wxpython on mac (yosemite) once changed settings.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -