美文网首页pythonPython
Python环境最常用十大命令

Python环境最常用十大命令

作者: theFullHorizon | 来源:发表于2021-10-18 14:36 被阅读0次

    版本更新系列

    查看Conda版本

    conda -V

    查看Python版本

    python -V

    基于Anaconda升级Python

    conda update python

    升级更新Conda环境

    conda update -n base conda

    环境创建系列

    创建虚拟环境

    conda create -n env python=3

    删除虚拟环境

    conda remove -n env --all

    查看创建的虚拟环境列表

    conda env list

    激活虚拟环境

    conda activate env

    查看环境中已安装python包

    conda list

    在环境中安装python包

    conda install package

    在环境中启动Jupyter notebook

    jupyter notebook

    配置虚拟notebook内核

    将Python虚拟环境映射到Jupyter的内核上

    python -m ipykernel install --user --name env-name --display-name base(Kernal-name)

    Jupyter 删除内核

    jupyter kernelspec remove kernal-name

    相关文章

      网友评论

        本文标题:Python环境最常用十大命令

        本文链接:https://www.haomeiwen.com/subject/cllnoltx.html