[英]python3.7 is not able to open jupyter notebook
I have two versions of python in my Macbook, python3.7 and python3.8.我的 Macbook 中有两个版本的 python,python3.7 和 python3.8。 I've been using python3.7 to do my data analysis.
我一直在使用 python3.7 进行数据分析。 I used $python3.7 -m jupyter notebook to open jupyter notebook all the time.
我一直使用 $python3.7 -m jupyter notebook 打开 jupyter notebook。 I've stopped for a while, last week I typed the same command in the terminal, jupyter notebook was opened by python3.8.
停了一会儿,上周我在终端输入了同样的命令,jupyter notebook被python3.8打开了。 I tried different ways, seems python3.7 isn't functional at all, jupyter notebook is only able to be opened by python3.8.
我尝试了不同的方法,似乎python3.7根本不起作用,jupyter notebook只能由python3.8打开。
I have two questions:我有两个问题:
Thank you in advance for your nice help!提前感谢您的帮助!
Yi义
Get rid of python3.7 it had known issues.摆脱它有已知问题的python3.7。 I do not know why your jupyter-notebook stopped working suddenly but you can use python3.8.
我不知道为什么你的 jupyter-notebook 突然停止工作,但你可以使用 python3.8。 I doubt that you are using any processes that got deprecated between the two major releases.
我怀疑您是否使用了在两个主要版本之间被弃用的任何进程。
I recommend setting up a virtual environment with whatever python version you want:我建议使用您想要的任何 python 版本设置虚拟环境:
$ virtualenv --python=python3.7 env/
$ source env/bin/activate
(env) $ pip install ...
This approach avoid any dependencies clashing and isolate you project dependencies from the system ones.这种方法避免了任何依赖冲突,并将您的项目依赖与系统依赖隔离开来。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.