Jupyter File not found Error, starting directory does not exists

Viewed 22

every time I run jupyter from Pycharm it throws an error which is: FileNotFoundError: [Errno 2] No such file or directory: '/Users/.../venv/bin/python3'

I deleted that directory a few months ago, and I don't understand in which kind of file jupyter read that path. I tried several things:

  1. Uninstall all jupyter related libraries with pip and pip3 uninstall
  2. Generated the jupyter_notebook_config.py and edit the field related to the starting directory
  3. Removed all jupyter related directories such as /.jupyter, /Library/Jupyter/kernels/, etc...

The problem seems to be that when it try to run command

[E 12:34:01.846 NotebookApp] Failed to run command:
    ['/Users/.../venv/bin/python3', '-m', 'ipykernel_launcher', '-f', '/Users/.../Library/Jupyter/runtime/kernel-89ebdc8e-dcda-43b3-9c55-d02fa4095572.json']
        PATH='/Users/.../PycharmProjects/.../venv3.9/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/fsl/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin'
        with kwargs:
    {'stdin': -1, 'stdout': None, 'stderr': None, 'cwd': '/Users/.../PycharmProjects/...', 'start_new_session': True}

Can you tell me how to solve this problem ?

0 Answers
Related