anaconda安装python库_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%\pip\pip.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

condainstall --file=requirements_conda.txt -y

pipinstall -r requirements_pip.txt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值