QST: ERROR in Jupyter using pandas module: ImportError: cannot import name 'np_version_under1p17' from 'pandas.compat.numpy' (unknown location)
See original GitHub issueQuestion about ERROR pandas
English: Guys I was trying to learn a program with Jupyter, but when I installed pandas at ‘pip install pandas’ please worked, but I used (import pandas as pd) it on jupyter and I give the following error message:
# ImportError Traceback (most recent call last)
<ipython-input-35-33fbe9d324d8> in <module>
----> 1 import pandas as pd
2
3 df = pd.read_excel(r'C:\Users\USER\Desktop\Vendas - Dez.xlsx')
4 df.corr()
~\anaconda3\lib\site-packages\pandas\__init__.py in <module>
20
21 # numpy compat
---> 22 from pandas.compat.numpy import (
23 np_version_under1p17 as _np_version_under1p17,
24 np_version_under1p18 as _np_version_under1p18,
ImportError: cannot import name 'np_version_under1p17' from 'pandas.compat.numpy' (unknown location)"
============================================= Portuguese: Cara eu estava tentando aprender a programar com o Jupyter, mas quando instalei o pandas pelo ‘pip install pandas’ pareceu dar certo, mas fui usar (import pandas as pd) no jupyter e da a seguinte mensagem:
"ImportError Traceback (most recent call last)
<ipython-input-35-33fbe9d324d8> in <module>
----> 1 import pandas as pd
2
3 df = pd.read_excel(r'C:\Users\USER\Desktop\Vendas - Dez.xlsx')
4 df.corr()
~\anaconda3\lib\site-packages\pandas\__init__.py in <module>
20
21 # numpy compat
---> 22 from pandas.compat.numpy import (
23 np_version_under1p17 as _np_version_under1p17,
24 np_version_under1p18 as _np_version_under1p18,
ImportError: cannot import name 'np_version_under1p17' from 'pandas.compat.numpy' (unknown location)"

HELP PLEASE GUYS!!!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
python - Jupyter Notebook Import Error: cannot import name ...
Before that try upgrading the current pandas version using pip3 --upgrade pandas . For me the problem was messed up installation.
Read more >cannot import name '_np_version_under1p14' from 'pandas ...
ImportError : cannot import name '_np_version_under1p14' from 'pandas.compat.numpy' (unknown location) Seems like the installation of pandas ...
Read more >cannot import name 'values_from_object' from 'pandas._libs ...
Under windows 11 environment, I get the same error after reinstalling. ImportError: cannot import name 'NoDefault' from 'pandas._libs.lib' (z:\etc\pythons\p37\ ...
Read more >What's New — pandas 0.19.2 documentation
Starting with 0.19.0, pandas will use the numpy.errstate context manager to silence ... Bug where pd.read_gbq() could throw ImportError: No module named ......
Read more >ImportError: No module named pandas - Net-Informations.Com
ModuleNotFoundError : No module named 'pandas'. In most cases this error in Python generally raised: You haven't installed Pandas explicitly with pip install ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi,
Could you describe how you set up your env including which pandas version you used?
Thanks for the report, but it doesn’t appear this is a pandas issue from the report so closing.