与此问题sys.path different in Jupyter and Python - how to import own modules in Jupyter?中的问题相同。在纯Python中,它将我的系统环境变量PYTHONPATH预先设置为sys.path,但是Jupyter notebook没有这样做,所以我不能导入我自己的模块。有没有办法让Jupyter notebook使用我的系统PYTHONPATH变量,就像在纯python中一样?
我使用的是macbook pro os x El Capitan版本10.11.6,我刚刚开始学习python,我在我的电脑上安装了python 3x,然后我尝试安装jupyter。运行命令后:每件事都运行得很好,但是当我尝试运行命令时:我得到以下错误:我也试过了:python3 -m jupyter notebook
Error execu
testing if installed package keeps a record of temporary installation path然后,当我试图使内核对jupyter> IRkernel::installspec()jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127.In addi