zoukankan      html  css  js  c++  java
  • anaconda python 常用库安装

    Switch to Chinese conda Source, config file is in ~/.condarc

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

    Switch to Chinese pip Source, it's contents here:

    • linux config file is in ~/.pip/pip.conf

    • windows config file is in %HOMEPATH%pippip.ini, 

    [global]
    index-url = http://pypi.douban.com/simple
    [install]
    trusted-host=pypi.douban.com

    Update Anaconda

    conda update conda -y
    conda update anaconda -y
    conda update python -y
    conda update --all -y

    Install the conda packages

    conda install --file=requirements_conda.txt

    其中,requirements_conda.txt中内容类似如下,每一行代表一个库,可以指定安装的版本号(例如numpy=1.11),默认安装最新版:

    tensorflow
    keras
    ipykernel
    cython
    numpy
    matplotlib
    scipy
    Pillow
    opencv
    pandas
    seaborn

    Install the pip packages

     pip install -r requirements_pip.txt

    其中,requirements_pip.txt中内容类似如下,每一行代表一个库,可以指定安装的版本号(例如numpy=1.11),默认安装最新版:

    cython
    numpy
    matplotlib
    scipy
    Pillow
    image
    easydict
    opencv-python
    sklearn
    bunch
    tqdm
    common
    lap
    imagehash
    ipywidgets
    labelme
    scikit-image
    Augmentor
    imgaug

    shell脚本

    #!/bin/bash
    
    source ~/.bashrc.with_anaconda3
    
    conda activate tf
    
    conda install --file=requirements_conda.txt -y
    pip install -r requirements_pip.txt
  • 相关阅读:
    jquery插件treetable使用
    WPF界面按钮美化
    Nginx配置
    Spring Framework之AOP
    IOS抓取与反抓取
    Spring Framework之事务管理
    68- 二叉树的最近公共祖先
    Spring Framework之IoC容器
    应试教育引发的思考
    春季实习生校园招聘总结
  • 原文地址:https://www.cnblogs.com/xbit/p/9863493.html
Copyright © 2011-2022 走看看