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/

     
     
  • 相关阅读:
    JS浅拷贝和深拷贝
    使用阿里云短信服务
    autojs相关的文档地址记录和简单使用
    Linux 根目录所在分区被脏数据占满
    openstack宿主机故障,虚拟实例恢复
    openstack创建vlan网络并配置网络设备
    联想 lenove 3750 M4服务器更改启动项和管理口IP
    ansible常用方法
    Mysql数据库-多实例主从复制-主从故障详解
    Linux 系统优化-workstation实践
  • 原文地址:https://www.cnblogs.com/tangjunjun/p/13414131.html
Copyright © 2011-2022 走看看