当前位置:网站首页>【工具】pip和conda的相關使用
【工具】pip和conda的相關使用
2022-06-22 18:06: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
边栏推荐
- [face recognition] matlab simulation of face recognition based on googlenet deep learning network
- 同花顺软件是什么?手机开户安全么?
- Donghua University - Research on interpretable recommendation micro behavior with enhanced knowledge perception reasoning
- SOA面向服务的架构
- High voltage direct current (HVDC) model based on converter (MMC) technology and voltage source converter (VSC) (implemented by MATLAB & Simulink)
- math_角函数&反三角函数
- 来厦门了!线上交流限额免费报名中
- 短视频带货源码,保存图片到相册/图库
- Grafana 9 正式发布,更易用,更酷炫了!
- 测试组的任务职责和测试的基本概念
猜你喜欢
![[small program project development -- Jingdong Mall] rotation chart of uni app development](/img/9b/503919129a2c544dd6143c6b47a2c4.png)
[small program project development -- Jingdong Mall] rotation chart of uni app development

新手必会的静态站点生成器——Gridsome

中国移动手机用户缓慢增长,但努力争取高利润的5G套餐用户

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"

利用Inkscape转换为dxf文件的正确方法 svg导出dxf文件

云端极简部署Svelte3聊天室

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

Correct method of converting Inkscape into DXF file SVG exporting DXF file

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

Cloud minimalist deployment svelte3 chat room
随机推荐
Missing value handling
[fpga+pwm] design and implementation of phase shift trigger circuit for three-phase PWM rectifier based on FPGA
一文带你掌握Tcpdump命令的使用
Recommend 7 super easy-to-use terminal tools - ssh+ftp
0 basic how to get started software testing, can you succeed in changing careers?
Binary tree practice the second bullet
推荐7款超级好用的终端工具 —— SSH+FTP
MySQL instruction executes SQL file
华为云“数智”化运维
Mybaits: interface proxy implementation Dao
SQL syntax detection
Seeing the big from the small: a simple example of domain modeling, understanding "domain driven".
d的dip1000,1
[applet project development -- Jingdong Mall] subcontracting configuration of uni app development
High voltage direct current (HVDC) model based on converter (MMC) technology and voltage source converter (VSC) (implemented by MATLAB & Simulink)
Quickly master asp Net authentication framework identity - user registration
Behind the fall of the first Seberg: the extreme race between technology and frostbite
请问一下,CDC2.0在读取mysql的时候,应该是没有表锁了吧,刚刚报了一个错误,access d
Is the CSC securities account given by qiniu school true? Is it safe to open an account
基于转换器 (MMC) 技术和电压源转换器 (VSC) 的高压直流 (HVDC) 模型(Matlab&Simulink实现)