Evening all,
I'm new to Python and having issues just going through basic Matplotlib examples. Any assistance would be hugely appreciated!
Simple code copied:
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4], [1, 4, 9, 16])
plt.ylabel('y numbers')
ply.xlabel('x numbers')
plt.show()
I'm getting the following error from line 1.
Exception has occurred: ImportError
dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so, 2): Library not loaded: @loader_path/libXdmcp.6.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/.dylibs/libxcb.1.1.0.dylib
Reason: no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/.dylibs/libXdmcp.6.dylib: cannot load 'libXdmcp.6.dylib' (load command 0x80000034 is unknown)
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/.dylibs/libXdmcp.6.dylib: cannot load 'libXdmcp.6.dylib' (load command 0x80000034 is unknown)
File "/Users/***********/Desktop/Python Files/test.py", line 1, in <module>
import matplotlib.pyplot as plt
Basic Matplotlib Issues
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 48 guests