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/

     
     
  • 相关阅读:
    实战DeviceIoControl 之中的一个:通过API訪问设备驱动程序
    hibernate官方新手教程 (转载)
    C++ 清空消息队列
    java中接口的定义与实现
    Scrum 学习笔记
    Ubuntu中全然卸载Nginx
    ScrollView 在嵌套 ViewPager 时出现的问题
    Java的递归算法
    Android GPS获取当前经纬度坐标
    【数据结构】——排序算法——1.1、直接插入排序
  • 原文地址:https://www.cnblogs.com/tangjunjun/p/13414131.html
Copyright © 2011-2022 走看看