0

I created a new Conda environment using

conda create --prefix ./env pandas numpy matplotlib scikit-learn

and activated the environment, but in jupyter notebook, when importing pandas or numpy, it is showing module not found error

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-7dd3504c366f> in <module>
----> 1 import pandas as pd

ModuleNotFoundError: No module named 'pandas'

I tried to install the modules in the environment with conda install pandas, but it is showing already installed.

merv
  • 53,208
  • 11
  • 148
  • 196
  • This sounds like an incorrect procedure. Please see [this answer](https://stackoverflow.com/a/43197286/570918). Generally one must install `ipykernel` in an environment to use it as a kernel. One shouldn't activate the kernel environment prior to launching Jupyter, but select the kernel once Jupyter is launched. – merv Jan 30 '22 at 19:15

0 Answers0