so im trying to learn numpy(no one cares).
i installed numpy,ran
import numpy
a = numpy.array([1,2,3,4])
and the next error happens:
PS C:UsersGmellenorDesktopvisial> & C:/Users/Gmellenor/AppData/Local/Programs/Python/Python310/python.exe c:/Users/Gmellenor/Desktop/visial/thegame.py
Traceback (most recent call last):
File “C:UsersGmellenorAppDataLocalProgramsPythonPython310libsite-packagesmatplotlibcbook.py”, line 27, in
from numpy.exceptions import VisibleDeprecationWarning # numpy >= 1.25
ModuleNotFoundError: No module named ‘numpy.exceptions’; ‘numpy’ is not a package
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “c:UsersGmellenorDesktopvisialthegame.py”, line 2, in
import numpy
File “c:UsersGmellenorDesktopvisialnumpy.py”, line 4, in
import matplotlib.pyplot as plt
File “C:UsersGmellenorAppDataLocalProgramsPythonPython310libsite-packagesmatplotlib_init_.py”, line 172, in
from . import _api, _version, cbook, _docstring, rcsetup
File “C:UsersGmellenorAppDataLocalProgramsPythonPython310libsite-packagesmatplotlibcbook.py”, line 29, in
from numpy import VisibleDeprecationWarning
ImportError: cannot import name ‘VisibleDeprecationWarning’ from partially initialized module ‘numpy’ (most likely due to a circular
import) (c:UsersGmellenorDesktopvisialnumpy.py)
PS C:UsersGmellenorDesktopvisial>
i tried upgrading all the pip’s,installing matplotlib and that didnt do much
gmellenor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.