Don't even try. Use docker, there are official pre-built images. It's easy:
docker run -p 8888:8888 -v ~/Code/actual-project/:/home/jovyan jupyter/datascience-notebook
Note ~/Code/actual-project/ is a git repo or a mounted Google Drive folder. Moving from one machine to an other is pain-free.[1] https://jupyter-docker-stacks.readthedocs.io/en/latest/using...