Search code examples
python-3.xjupyter-notebookwindows-subsystem-for-linuxminicondaubuntu-22.04

Ubuntu - Error message on python.exe when starting new Jupyter Notebook


This error message keep on popping every 3 second when the jupyter notebook ipynb trying to start its kernel, I'm unable to use the jupyter notebook at all. Don't really understand since I'm launching it from Ubuntu, so it shouldn't by python.exe ? Error code shown is ( 0xc0000142 ).

related info:

  1. conda - 24.5.0
  2. python - 3.12.4
  3. WSL - Ubuntu 22.04

Error Message Shown

Attempted :

  1. tried use conda to install jupyter notebook ( conda base environment )
  2. tried use pip install jupyter notebook as well ( conda base environment )
  3. tried conda and pip install without activating conda base environment

All attempts resulted the same. I didn't change the Python version since it comes with Ubuntu by default.


Solution

  • It seems that the jupyter notebook linked to the conda installed in Windows OS, the ipykernel tried accessing my uninstall python.exe in my windows OS instead of the python version in my WSL, causing the error code.

    Tried both removing conda from my windows OS and reinstalling python back to my Windows OS but it causes some other missing file issue instead.

    The issue is now resolved by reinstalling conda in WSL Ubuntu, and then reinstall jupyter notebook.