0

I made a virtual env with:

$ python3 -m venv /home/jeanpat/Devel/icevision

Different modules were installed (pycocotools ...) with pip.

From a virtual environment activated as follow:

source /home/jeanpat/Devel/icevision/bin/activate

The modules can be imported from an ipython console with no error. When the modules are imported from a jupyter notebook run from the same env (icevision), the immport fails. from a notebook cell,I can run :

!pip freeze|grep pycocotools

and get the modules list:

pycocotools==2.0.4

I have:

    (icevision) jeanpat:~/ $ jupyter --paths                             [11:06:36]

config:
    /home/jeanpat/.jupyter
    /home/jeanpat/Devel/icevision/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /home/jeanpat/.local/share/jupyter
    /home/jeanpat/Devel/icevision/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /home/jeanpat/.local/share/jupyter/runtime

The problem is similar to, i try this:

$ ipython kernel install --name "icevision" --user

but it didn't resolve the problem.

Thanks for your suggestions.

Jean-Pat
  • 1,839
  • 4
  • 24
  • 41

1 Answers1

0

I had to use the command to solve the issue in the answer by Peter S. Magnusson:

python -m ipykernel install --user --name="myenv" --display-name="My project (myenv)"
Jean-Pat
  • 1,839
  • 4
  • 24
  • 41