question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QST: ERROR in Jupyter using pandas module: ImportError: cannot import name 'np_version_under1p17' from 'pandas.compat.numpy' (unknown location)

See original GitHub issue

Question 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)"


Sem título


HELP PLEASE GUYS!!!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
phoflcommented, Apr 28, 2021

Hi,

Could you describe how you set up your env including which pandas version you used?

0reactions
mroeschkecommented, Aug 20, 2021

Thanks for the report, but it doesn’t appear this is a pandas issue from the report so closing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found