Home > OS >  How do I import Pandas into Pycharm?
How do I import Pandas into Pycharm?

Time:08-05

I am a new PyCharm user and a beginner coder. I've downloaded the Anaconda Library but when I type import pandas as pd it gives me the error "ModuleNotFoundError" when I run the code. I've actually already installed Pandas and NumPy into PyCharm yet it still gives me the same error. Thanks

CodePudding user response:

Try:

pip install pandas

or:

python -m pip install --upgrade pip
pip install pandas

or:

python -m pip install pandas

CodePudding user response:

You would have to install pandas through either pip or anaconda navigator.

pip3 install pandas #Mac

pip install pandas  #Windows

Anaconda navigator is a gui tool and one of it's features is installing packages. Just make sure you are in the right conda environment you installed the package in when you get back to pycharm.

  • Related