mac系统下python操作

 

查看python版本

python --version  ---> Python 3.7.3

查看python安装路径

which python3.7 --->/anaconda3/bin//python3.7

查看已安装python的模块

pip list

 

在jupyter中

##列出虚拟环境   *是当前所用环境

!conda env list   

  1. #conda environment:
  2. #
  3. base       *  /anaconda3
  4. tensor        /anaconda3/envs/tensor

##列出kernel运算核心

!jupyter kernelspec list 

  1. Avaliable kernels:
  2.      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里写入了命令 删除就可以了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值