zoukankan      html  css  js  c++  java
  • jupyter的使用

    1.在conda中更换镜像方法(避免超时,无法创建虚拟环境):

      首先执行如下几条命令更换清华镜像源

      conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

      conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

      conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

      conda config --set show_channel_urls yes

      更改镜像源配置文件

      在用户根目录(C:Users用户名)下找到.condarc文件,打开并并编辑,删除其中的default配置行。

      
         

    2.jupyter中切换本地不同的虚拟环境

      a.切换至你的虚拟环境:  activate py36    (py36是我的虚拟环境名称)
      b.pip install ipykernel 安装必要插件
      c.python -m ipykernel install --name py36 将环境添加到Jyputer中 

    3.jupyter notebook中删除虚拟环境

      jupyter kernelspec remove pyenv37

     4.利用其它镜像安装库

      pip install ipykernel      -i   https://pypi.tuna.tsinghua.edu.cn/simple some-package     安装必要插件       
      https://pypi.tuna.tsinghua.edu.cn/simple some-package 
      如果安装某个路径用:
      pip install numpy target=='c:/ADC'      -i   https://pypi.tuna.tsinghua.edu.cn/simple some-package     安装必要插件
    5.其它源:
    https://pypi.tuna.tsinghua.edu.cn/simple

    清华:https://pypi.tuna.tsinghua.edu.cn/simple

    阿里云:https://mirrors.aliyun.com/pypi/simple/

    中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

    华中理工大学:http://pypi.hustunique.com/

    山东理工大学:http://pypi.sdutlinux.org/ 

    豆瓣:https://pypi.douban.com/simple/

     
     
  • 相关阅读:
    CF-807B
    CF-807A
    sort()的升降序函数操作
    CF-805D
    CF-805B
    CF-805A
    CF-796C
    CF-796B
    图论学习四之Disjoint set union并查集
    图论学习三之Shortest Path最短路
  • 原文地址:https://www.cnblogs.com/tangjunjun/p/13414131.html
Copyright © 2011-2022 走看看