You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/ewebcore/Desktop/numpy.py", line 18, in
from matplotlib import pyplot as plt
File "/usr/lib/python3/dist-packages/matplotlib/init.py", line 123, in
from . import cbook
File "/usr/lib/python3/dist-packages/matplotlib/cbook/init.py", line 36, in
import numpy as np
File "/home/ewebcore/Desktop/numpy.py", line 18, in
from matplotlib import pyplot as plt
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 32, in
import matplotlib.colorbar
File "/usr/lib/python3/dist-packages/matplotlib/colorbar.py", line 32, in
import matplotlib.artist as martist
File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 15, in
from . import cbook, docstring, rcParams
ImportError: cannot import name 'rcParams'
Please don't name any script you want to run by the same name as a package you have installed. That is, don't call your script numpy.py.
Still I got same error:
Traceback (most recent call last):
File "/home/ewebcore/Desktop/testing.py", line 18, in
from matplotlib import pyplot as plt
File "/usr/lib/python3/dist-packages/matplotlib/init.py", line 123, in
from . import cbook
File "/usr/lib/python3/dist-packages/matplotlib/cbook/init.py", line 36, in
import numpy as np
File "/home/ewebcore/Desktop/numpy.py", line 18, in
from matplotlib import pyplot as plt
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 32, in
import matplotlib.colorbar
File "/usr/lib/python3/dist-packages/matplotlib/colorbar.py", line 32, in
import matplotlib.artist as martist
File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 15, in
from . import cbook, docstring, rcParams
ImportError: cannot import name 'rcParams'
Activity
ImportanceOfBeingErnest commentedon Feb 11, 2019
Please don't name any script you want to run by the same name as a package you have installed. That is, don't call your script
numpy.py.RohanJ24 commentedon Feb 11, 2019
Still I got same error:
Traceback (most recent call last):
File "/home/ewebcore/Desktop/testing.py", line 18, in
from matplotlib import pyplot as plt
File "/usr/lib/python3/dist-packages/matplotlib/init.py", line 123, in
from . import cbook
File "/usr/lib/python3/dist-packages/matplotlib/cbook/init.py", line 36, in
import numpy as np
File "/home/ewebcore/Desktop/numpy.py", line 18, in
from matplotlib import pyplot as plt
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 32, in
import matplotlib.colorbar
File "/usr/lib/python3/dist-packages/matplotlib/colorbar.py", line 32, in
import matplotlib.artist as martist
File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 15, in
from . import cbook, docstring, rcParams
ImportError: cannot import name 'rcParams'
ImportanceOfBeingErnest commentedon Feb 11, 2019
Yes you have added a different script now, but the initial
numpy.pyis still present. Delete that file.RohanJ24 commentedon Feb 11, 2019
It works... Thanx !! : )