当前位置:网站首页>【工具】pip和conda的相关使用
【工具】pip和conda的相关使用
2022-06-22 16:29:00 【努力的袁】
conda的相关使用
0.设置国内镜像
http://Anaconda.org的服务器在国外,安装多个packages时,conda下载的速度经常很慢。清华TUNA镜像源有Anaconda仓库的镜像,将其加入conda的配置即可:
添加Anaconda的TUNA镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
TUNA的help中镜像地址加有引号,需要去掉
设置搜索时显示通道地址
conda config --set show_channel_urls yes
1.查看已存在的虚拟环境名
conda env list
2.创建虚拟环境
conda create -n env_name python=3.8
3.激活虚拟环境
activate env_name
4.查看已安装的包
conda list
# 指定查看某环境下安装的package
conda list -n env_name
5.关闭该虚拟环境
deactivate
6.移除环境
conda remove -n env_name --all
7.降低python的方法:
打开anaconda prompt,然后输入conda install python=3.6
8.conda创建环境
conda create --name 环境名称 pytohn==3.6
9.激活环境
activate yourEnv
10.删除环境
conda env remove -n yourEnv
11.查看所有的环境
conda env list
或
conda info --envs
pip的相关使用
0.库的更新以及下载
pip install -U numpy
conda install module (建议用pip下载)
pip install --upgrade module -i https://pypi.tuna.tsinghua.edu.cn/simple
python -m pip install module -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com(√)
pip install module -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com(√)
pip install -i https://pypi.douban.com/simple/ module # 使用豆瓣源
pip install -i http://mirrors.aliyun.com/pypi/simple/ module # 阿里云
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ module # 中国科技大学
pip install -i http://pypi.douban.com/simple/ module # 豆瓣(douban)
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ module # 清华大学
pip install -i http://pypi.mirrors.ustc.edu.cn/simple/ module # 中国科学技术大学
1.pip安装指定库的版本pip install numpy==2.8.7
边栏推荐
- 缺失值處理
- MYSQL_ ERRNO : 1292 Truncated incorrect date value At add_ num :1
- math_角函数&反三角函数
- MySQL instruction executes SQL file
- Simple integration of client go gin -update
- [psychology] emotional psychology - collision between contemporary thoughts and traditional thoughts (this article will be continuously updated from time to time)
- 让RDS(for MySQL)数据库的慢日志、审计日志跨空间转存OBS变得更加自动化
- 诺亚财富拟登陆港交所:第一季度业绩大幅下滑,曾踩雷“承兴案”
- Quartus prime 18.0 software installation package and installation tutorial
- 短视频直播源码,EditText输入框的使用
猜你喜欢

GPIO operation method of imx6ull

Xshell 7(SSH远程终端工具) v7.0.0109 官方中文正式版(附文件+安装教程)

缺失值处理

Recommend 7 super easy-to-use terminal tools - ssh+ftp

Interview shock 58: Six differences among truncate, delete and drop!

Seeing the big from the small: a simple example of domain modeling, understanding "domain driven".

Blazor University (31) form - Validation

clickhouse 21.x 集群四分片一副本部署

Traitement des valeurs manquantes

Xftp 7(FTP/SFTP客户端) V7.0.0107 官方中文免费正式版(附文件+安装教程)
随机推荐
无心剑中文随感《探求真谛》
[small program project development -- Jingdong Mall] rotation chart of uni app development
RF Analyzer Demo搭建
[mysql] install multiple MySQL versions on one Windows computer
Docker之MySQL主从连接提示:Communications link failure
Which platform is safer to buy stocks on?
MySQL instruction executes SQL file
Recommend 7 super easy-to-use terminal tools - ssh+ftp
Quickly master asp Net authentication framework identity - user registration
Tasks and responsibilities of the test team and basic concepts of testing
Mqtt of NLog custom target
一文带你掌握Tcpdump命令的使用
Principle of synchronized implementation
Traitement des valeurs manquantes
面试突击58:truncate、delete和drop的6大区别!
.NET 发布和支持计划介绍
东华大学|具有强化知识感知推理的可解释推荐微观行为研究
Docker 之MySQL 重启,提示Error response from daemon: driver failed programming external connectivity on **
利用Inkscape转换为dxf文件的正确方法 svg导出dxf文件
来厦门了!线上交流限额免费报名中