1

Package manager: conda

  • Using virtual environment: base conda environment

  • Errors found in the following IDEs: Dataspell, Jupyter notebook

- No errors in the following IDE: vs code

error:

import pandas as pd
no module named 'pandas'

First I'll go through the dataspell/jupyter notebook issue

Dataspell/jupyter notebook

enter image description here

Notice the executable. It's not using the conda python exe. Notice the path. Reaffirms that it's not seeing the anaconda directory.

But when I open the interpreter settings for this workspace,

enter image description here

The kernelspec

Note: There's only one kernel spec directory enter image description here

The file looks like this

enter image description here

It works in vscode

enter image description here

Again Notice the executable and path. Both are using/seeing the anaconda python exe.

So my question is this - Why isn't dataspell/jupyter notebook seeing anaconda as a path and using the base env? And how do I fix it?

Bruce Murdock
  • 63
  • 2
  • 7

1 Answers1

0

The link in Wayne's comment worked. Just needed to create a new kernel by going into the virtual environment. https://stackoverflow.com/a/71733561/8508004 is the post that has the answer.

Bruce Murdock
  • 63
  • 2
  • 7
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 22 '22 at 02:33
  • Can you be a bit more explicit? – codeananda Nov 11 '22 at 13:20