Skip to content

Failure to start kernel due to failures in importing modules from files

Don Jayamanne edited this page Mar 28, 2023 · 4 revisions

Python kernels can fail to start if some modules such as pytprocess ipykernel, pyzmq, etc fail to load due to improper installation, or upgrading one module and not the related dependencies or the like.

Sometimes, user code such as os.py or random.py could also prevent the kernel from starting.

Recommended solution

# if using a non-conda environment
python -m pip install <xyz> -U --force-reinstall
# If using a conda environment
conda install --name <environment name> --update-deps --force-reinstall
Clone this wiki locally