D2L运行环境问题+anaconda 多环境

环境问题

背景: 换了电脑,当前的电脑原先就装着Python3.9.0
直接pip install d2l & torch can work
but when i start the jupyter, it use the anaconda SDK which is 3.6.4
so i need to install the d2l& torch under anaconda python sdk
but not work i cannot install it

below are the issues i met :

  1. proxy issue coz i use the vpn so need to resolve it ---- after i fix the proxy, use
    conda install python=3.9.0 still not work (condarc control proxy issue need to add the cer in here and add the reflect net in here
    So i search and find we can use the mult evn in conda,that’s cool! like
    roort evn — point to 3.6.5 & torch xxx
    d2l env — point to python 3.9.0 & torch 1.7.0

so i use below steps to create an env in conda

  1. conda create -n evn_name python=3.9.0
  1. active your new environment by use command “conda activate evn_name”
  2. now check your python version
    python -V
  3. if it works , now use the pip to install all your plugins
  4. last steps but import, u must close your before jupyter
    and run the jupyter start in ur anaconda prompt under this new env…only do this , u can use the evn you want in the jupyter
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值