当前位置:网站首页>【工具】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
边栏推荐
- RF analyzer demo setup
- 思维的定义
- How to do well in R & D efficiency measurement and index selection
- client-go gin的简单整合十-Update
- A new mode of enterprise software development: low code
- Network intelligent operation and maintenance helps improve operation and maintenance efficiency
- [psychology] emotional psychology - collision between contemporary thoughts and traditional thoughts (this article will be continuously updated from time to time)
- What is flush software? Is it safe to open an account online?
- 视频直播系统源码,顶部标题栏的隐藏和标题修改
- 基于转换器 (MMC) 技术和电压源转换器 (VSC) 的高压直流 (HVDC) 模型(Matlab&Simulink实现)
猜你喜欢

Mybaits:接口代理方式实现Dao

Tasks and responsibilities of the test team and basic concepts of testing

Social responsibility: GAC Honda advocates children's road traffic safety in "dream children's travel"

抢先报名丨新一代 HTAP 数据库如何在云上重塑?TiDB V6 线上发布会即将揭晓!

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

如何做好研发效能度量及指标选取

math_ Angular function & inverse trigonometric function

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

STM32系列(HAL库)——F103C8T6硬件SPI点亮带字库OLED屏

Docker之MySQL主从连接提示:Communications link failure
随机推荐
华为云“数智”化运维
math_ Angular function & inverse trigonometric function
MTLs guidelines for kubernetes engineers
Quartus prime 18.0 software installation package and installation tutorial
docker: Error response from daemon: Conflict. The container name “/mysql“ is already in use by conta
SaaS化应用开发指南
数据库行业分析:从全球IT产业趋势到国产数据库发展之路
测试组的任务职责和测试的基本概念
WPF achieves star effect
Mqtt of NLog custom target
基于转换器 (MMC) 技术和电压源转换器 (VSC) 的高压直流 (HVDC) 模型(Matlab&Simulink实现)
AHA C language Chapter 6 God, a large string of numbers is approaching (lesson 26)
A classmate asked what framework PHP should learn?
redis. clients. jedis. exceptions. JedisDataException ERR invalid password.
Kibana+elk cluster log processing
利用Inkscape转换为dxf文件的正确方法 svg导出dxf文件
Recommend 7 super easy-to-use terminal tools - ssh+ftp
内容推荐流程
Is the CSC securities account given by qiniu school true? Is it safe to open an account
中国移动手机用户缓慢增长,但努力争取高利润的5G套餐用户