kayk5654 Posted August 19, 2017 Share Posted August 19, 2017 Hello, I'm trying to import an external python library “matplotlib” on Python SOP with a code below; frommatplotlib.colors import to_hex I downloaded matplotlib 2.0.2 and extracted under User/username/MyDocuments/houdini16.0/python2.7libs, while referring some previous threads and this video tutorial; https://www.youtube.com/watch?v=xoVORgBT190 The last folder (python2.7libs) is what I created. However, the python SOP seems not to find matplotlib. The error message is below; Error Python error: Traceback (most recent call last): File “”, line 4, in ImportError: No module named matplotlib.colors Is there anything else I can try to import it? My working environment is; Windows 7 professional Houdini Indie 16.0.632matplotlib 2.0.2 Thanks a lot! Quote Link to comment Share on other sites More sharing options...
i73 Posted August 25, 2017 Share Posted August 25, 2017 It can't find the module "ImportError: No module named matplotlib.colors" Pass me your import code 'how you're trying to include the module' also try this and tell me what it says: import sys sys.path.append('File Path to a matplotlib module') import matplotlib as mat #mat.colors Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.