In my "base" environment, installing pandas and then importing it using the Spyder IDE works just fine.
However, this is no longer the case when working under a virtual environment.
In my terminal, I created a Python 2.7 environment named bodhi
:
conda create -n bodhi python=2.7
I activated it:conda activate bodhi
I then installed spyder: sudo -i apt-get install spyder
And finally I installed pandas: conda install pandas
Typing conda list
confirms that pandas 0.24.2 was installed properly.
After opening Sypder, typing import pandas
in the IPython console returns the following ImportError: No module named pandas
.
What am I doing wrong? I am fairly new to virtual environments so I apologize if the question seems obvious!