Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
277 views
in Technique[技术] by (71.8m points)

python - How to reset link to Pandas in Anaconda Spyder

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...