查看python版本
python --version ---> Python 3.7.3
查看python安装路径
which python3.7 --->/anaconda3/bin//python3.7
查看已安装python的模块
pip list
在jupyter中
##列出虚拟环境 *是当前所用环境
!conda env list
- #conda environment:
- #
- base * /anaconda3
- tensor /anaconda3/envs/tensor
##列出kernel运算核心
!jupyter kernelspec list
- Avaliable kernels:
- python3 /anaconda3/share/jupyter/kernels/python3
##terminal中建立新的环境命名为python35 并使用python版本3.5
conda create --name python35 python=3.5
这样在conda env list中就有python35的环境了
##激活环境
conda activate python35
##移除环境
conda remove --name python35 --all
别忘了删除jupyter的环境哦
jupyter kernelspec uninstall unwanted-kernel
##如果进入终端显示
(base)macpro:~user$
是conda在bash_profile里写入了命令 删除就可以了。