pyenv每次都要source ~/.bash_profile才能生效,扎心,卸了
现在笔记本上应该只有系统自带的2.7(和没卸干净的遗留文件)
1 2 3 4 coconutnut@Ss-MacBook-Pro ~ % python -V Python 2.7.17 coconutnut@Ss-MacBook-Pro ~ % pip -V pip 19.3.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
想了下干脆装服务器上好了
安装Anaconda
https://blog.csdn.net/qq_41813258/article/details/102400325
https://repo.anaconda.com/archive/
官网下了个最新版anaconda3-2020.02-linux-x86_64.sh/
bash安装,配置环境变量
完成
创建一个3.7.6的环境
1 2 3 4 5 6 7 8 9 10 # conda create -n env3.7 python=3.7.6 ... # # To activate this environment, use # # $ conda activate env3.7 # # To deactivate an active environment, use # # $ conda deactivate
配置Jupyter notebook
https://blog.csdn.net/qq_43058685/article/details/103804238
端口配的2020
1 jupyter notebook --ip=0.0.0.0 --no-browser --allow-root
浏览器试了一下,ok
常用命令 1 2 3 4 5 6 7 8 9 10 11 # 打开jupyter notebook jupyter notebook --allow-root # 后台运行 nohup jupyter notebook --allow-root & # 找到jupyter进程 ps aux | grep jupyter # 关闭它 kill XXX(pid)