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/

     
     
  • 相关阅读:
    Codeforces C. Almost Equal (数学规律)
    codeforce D. Shortest Cycle(floyd求最短环)
    Codeforces 1204D2. Kirk and a Binary String (hard version) (dp思路)
    codeforces 1204C Anna, Svyatoslav and Maps(floyd+dp)
    hdu 6214 Smallest Minimum Cut(最小割的最少边数)
    扩展欧几里得求解同余方程(poj 1061)
    poj 3281Dining(网络流 拆点)
    poj 3057(bfs+二分匹配)
    买鱼杂感
    geotrellis使用(十四)导出定制的GeoTiff
  • 原文地址:https://www.cnblogs.com/tangjunjun/p/13414131.html
Copyright © 2011-2022 走看看