南宁企业网站制作模板,长春seo全网营销,交换友情链接的网站标准是什么,深圳工业设计师工资一般多少1#xff0c;下载miniforge3
GitHub - conda-forge/miniforge: A conda-forge distribution. 下载下来后傻瓜式安装就可以了
配置环境变量#xff0c;在系统环境变量的path添加下列就行了#xff0c;根据自己的路径修改 2#xff0c;创建虚拟环境
conda create -n test …1下载miniforge3
GitHub - conda-forge/miniforge: A conda-forge distribution. 下载下来后傻瓜式安装就可以了
配置环境变量在系统环境变量的path添加下列就行了根据自己的路径修改 2创建虚拟环境
conda create -n test python3.10
(不知道python版本可以用python --version打印出来就知道了
conda init 初始化conda配置它会在shell配置文件添加conda激活逻辑
3安装jupyter-lab
建议进入虚拟环境下执行
pip install jupyter-lab
生成并配置jupyterlab文件 jupyter lab --generate-config
执行上述命令后会返回一个upyter_lab_config.py的文件路径复制路径找到文件进行下列配置 配置文件内容修改如下 c get_config() #noqa c.ServerApp.root_dir /soft/python-project # 工作路径 c.ServerApp.allow_remote_access True c.ServerApp.ip * c.LabApp.open_browser False c.ServerApp.port 8701 c.ServerApp.iopub_data_rate_limit 1.0e10
4将虚拟环境设置到jupyter-lab上生效
conda install ipykernel
python -m ipykernel install --user --name 自己虚拟环境名 --display-name jupyter自定义名字
jupyter-lab --allow-root
(执行完这个命令会弹出一段文字里面有两个url可以登录页面版的jupyter notebook http://localhost:8701/lab?token026e943b886e2826aebf4f64d1ffee8c320594b010d711f5
) 5常用的一些命令
conda env list 查看有哪些虚拟环境
conda activate test 激活test虚拟环境
deactivate test 关闭test虚拟环境
jupyter kernelspec list 查看有哪些kernel
jupyter kernelspec remove 虚拟环境名 删除某个kernel