Backstory: Anaconda download came with Python 3.7 and Pandas 0.23.4. Needed to upgrade to 1.0 to run a script I have. Downloaded it and it went into the site-packages folder within my separately downloaded Python 3.8 file. Tried to link Anaconda Spyder to the 1.0 folder. Now when I try to import pandas I get the following error:
import pandas as pd
Traceback (most recent call last):
File "<ipython-input-6-7dd3504c366f>", line 1, in <module>
import pandas as pd
File "C:PythonPython38site-packagespandas\__init__.py", line 17, in <module>
"Unable to import required dependencies:
" + "
".join(missing_dependencies)
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.7 from "C:ProgramDataAnaconda3pythonw.exe"
* The NumPy version is: "1.20.0"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
While it would be great if I could use Pandas 1.0 in my Anaconda Spyder, I would absolutely settle for returning to 0.23 just so that I can function. Thanks!
question from:
https://stackoverflow.com/questions/66067934/how-to-reset-link-to-pandas-in-anaconda-spyder 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…