- #1
- 27,915
- 19,402
- TL;DR Summary
- Installed successfully but won't import
I'm running Python 3.8.3 on Windows 10 and was have installed matplotlib, but I can't get it to work. If I try import matplotlib then first it seems to spit out some output (always the same) from a couple of basic test programs I wrote (which is really weird), then just gets a bunch of errors:
c=300000000
Favorite number is 1729
Traceback (most recent call last):
File "C:\Users\pero_\OneDrive\Documents\python_work\mpl_squares.py", line 1, in <module>
import matplotlib
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py", line 139, in <module>
from . import cbook, rcsetup
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\matplotlib\cbook\__init__.py", line 32, in <module>
import numpy as np
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py", line 145, in <module>
from . import core
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\core\__init__.py", line 70, in <module>
from . import numerictypes as nt
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\core\numerictypes.py", line 596, in <module>
_register_types()
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\core\numerictypes.py", line 591, in _register_types
numbers.Integral.register(integer)
AttributeError: module 'numbers' has no attribute 'Integral'
[Finished in 0.9s]
I've been down a rabbit hole with this most of the day. I've tried what I found here, messing about with different WHL files:
https://ehmatthes.github.io/pcc/chapter_15/README.html#installing-matplotlib-on-windows
Any ideas?
Thanks
c=300000000
Favorite number is 1729
Traceback (most recent call last):
File "C:\Users\pero_\OneDrive\Documents\python_work\mpl_squares.py", line 1, in <module>
import matplotlib
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py", line 139, in <module>
from . import cbook, rcsetup
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\matplotlib\cbook\__init__.py", line 32, in <module>
import numpy as np
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py", line 145, in <module>
from . import core
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\core\__init__.py", line 70, in <module>
from . import numerictypes as nt
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\core\numerictypes.py", line 596, in <module>
_register_types()
File "C:\Users\pero_\AppData\Roaming\Python\Python38\site-packages\numpy\core\numerictypes.py", line 591, in _register_types
numbers.Integral.register(integer)
AttributeError: module 'numbers' has no attribute 'Integral'
[Finished in 0.9s]
I've been down a rabbit hole with this most of the day. I've tried what I found here, messing about with different WHL files:
https://ehmatthes.github.io/pcc/chapter_15/README.html#installing-matplotlib-on-windows
Any ideas?
Thanks