Reputation: 1
Although I have the latest version of Python, NumPy, Pandas, and SciPy installed, whenever I simply type import pandas as pd
. I get the error:
ModuleNotFoundError: No module named 'numpy.testing.decorators'
This is super strange since I used pandas earlier on in the day, and yesterday.
Can anyone explain to me what I need to do so that I can run pandas?
Upvotes: 0
Views: 113
Reputation: 7806
Hopefully you weren't using your system's python when you did this. I would suggest using the latest version of Anaconda for this. when you restart the terminal after an install you can create an environment using
conda create -y -n myproject numpy pandas scipy ipython
You want to create a new environment for each project you build. when you want to use this environment for your project development type this into your terminal.
conda activate myproject
now try ipython with "import pandas as pd"
Upvotes: 1