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

创建环境:conda create --name ws-gpu

删除环境:conda env remove -n ws-gpu

安装单个库:conda install scipy

清理conda缓存:conda clean --all

创建requirements文件,以便安装。

pip freeze > requirements_pip.txt
conda list --export > requirements_conda.txt

Install the conda packages

conda install --file=requirements_conda.txt

Install the pip packages

 pip install -r requirements_pip.txt

shell脚本

#!/bin/bash

source ~/.bashrc.with_anaconda3

conda activate tf

conda install --file=requirements_conda.txt -y
pip install -r requirements_pip.txt

最新文章

  1. 谈谈iOS中的屏幕方向
  2. Vue.js——60分钟快速入门
  3. /var/log目录下的20个Linux日志文件功能详解
  4. HDFS的Java客户端操作代码(查看HDFS下所有的文件存储位置信息)
  5. yum命令常见方法
  6. 【GNOME 边框】GNOME窗口无边框
  7. 微信开发之门店管理{"errcode":40097,"errmsg":"invalid args hint: [xxxxxxx]"}
  8. onclick=‘’return false“
  9. HTTP长连接和短连接(转)
  10. Oracle-09:聚合函数
  11. linux下突破10万高并发的nginx性能优化经验
  12. 启发式合并 splay合并 线段树合并基础
  13. rem自适应手机端布局
  14. ABP框架学习
  15. 自定义 vim
  16. javaScript正则表达式的使用
  17. canvas打字效果
  18. Shell 相互调用
  19. Daily Scrum2 11.4
  20. Redis学习基础一

热门文章

  1. Python基础之用PyQt5写一个tabview
  2. 声明提前(hoist)
  3. 必备!一文掌握Wordpress插件
  4. Python实现三次密码验证
  5. RocketMQ原理分析&场景问题
  6. 《Python Cookbook v3.0.0》Chapter2 字符串、文本
  7. 保存Total Commander的列宽
  8. xml editing in vi
  9. java.lang.instrument.Instrumentation
  10. 【LeetCode】796. 旋转字符串