当前位置:网站首页>【工具】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
边栏推荐
- A new mode of enterprise software development: low code
- ##Kibana+ELK集群日志处理
- GPIO operation method of imx6ull
- MYSQL_ ERRNO : 1205 MESSAGE :Lock wait timeout exceeded; try restarting transacti
- Seeing the big from the small: a simple example of domain modeling, understanding "domain driven".
- STM32系列(HAL库)——F103C8T6硬件SPI点亮带字库OLED屏
- [recruitment] [Beijing Zhongguancun / remote] [tensorbase][open source data warehouse] and other people do one thing
- clickhouse 21.x 集群四分片一副本部署
- be based on. NETCORE development blog project starblog - (12) razor page dynamic compilation
- Come to Xiamen! Online communication quota free registration
猜你喜欢
![[step 1 of advanced automated testing] 1 minute to introduce you to automated testing](/img/00/9647d552749092954a91bd84307773.png)
[step 1 of advanced automated testing] 1 minute to introduce you to automated testing

DAP事实表加工汇总功能应用说明

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

.NET 发布和支持计划介绍

docker: Error response from daemon: Conflict. The container name “/mysql“ is already in use by conta

Application description of DAP fact table processing summary function

UI automation positioning edge -xpath actual combat

测试组的任务职责和测试的基本概念

JSP learning (I) -- overview of JSP

内容推荐流程
随机推荐
You call this crap high availability?
Mybaits:常用数据库操作(东软的操作)
Stop automatically after MySQL server starts
Mqtt of NLog custom target
可能是全网最全的Matplotlib可视化教程
clickhouse 21.x 集群四分片一副本部署
A classmate asked what framework PHP should learn?
[step 1 of advanced automated testing] 1 minute to introduce you to automated testing
.NetCore实现图片缩放与裁剪 - 基于ImageSharp
Docker之MySQL主从连接提示:Communications link failure
AHA C language Chapter 6 God, a large string of numbers is approaching (lesson 26)
Configuration of development environment for JSP learning
Description of new features and changes in ABP Framework version 5.3.0
Noah fortune plans to land on the Hong Kong Stock Exchange: the performance fell sharply in the first quarter, and once stepped on the thunder "Chengxing case"
MySQL instruction executes SQL file
How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!
如何理解volatile
[face recognition] matlab simulation of face recognition based on googlenet deep learning network
How to understand volatile
The win10 desktop icon disappears and the toolbar turns black