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