当前位置:网站首页>【工具】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
边栏推荐
- [psychology] emotional psychology - collision between contemporary thoughts and traditional thoughts (this article will be continuously updated from time to time)
- clickhouse 21.x 集群四分片一副本部署
- 0 basic how to get started software testing, can you succeed in changing careers?
- . NETCORE enables image scaling and cropping - based on imagesharp
- ##Kibana+ELK集群日志处理
- GPIO operation method of imx6ull
- math_角函数&反三角函数
- Post to asp Net core length limitation and solution when transferring data
- [face recognition] matlab simulation of face recognition based on googlenet deep learning network
- redis. clients. jedis. exceptions. JedisDataException ERR invalid password.
猜你喜欢

imx6ull的GPIO操作方法

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

Pytorch——报错解决:“torch/optim/adamw.py” beta1, UnboundLocalError: local variable ‘beta1‘

Missing value handling

WPF effect chapter 190: playing listbox again

Quickly master asp Net authentication framework identity - login and logout

缺失值處理

. Net release and support plan introduction

How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!

High voltage direct current (HVDC) model based on converter (MMC) technology and voltage source converter (VSC) (implemented by MATLAB & Simulink)
随机推荐
面试突击58:truncate、delete和drop的6大区别!
Gridhome, a must-have static site generator for beginners
当线上线下的融合加速,当信息对接渠道的多样化,传统意义上的中心将没有必要
SaaS化应用开发指南
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
Pytorch——报错解决:“torch/optim/adamw.py” beta1, UnboundLocalError: local variable ‘beta1‘
[mysql] install multiple MySQL versions on one Windows computer
Mybaits: common database operations (Neusoft operations)
Kibana+elk cluster log processing
When online and offline integration accelerates and information docking channels are diversified, the traditional center will not be necessary
Cross platform brake browser
High voltage direct current (HVDC) model based on converter (MMC) technology and voltage source converter (VSC) (implemented by MATLAB & Simulink)
MYSQL_ ERRNO : 1205 MESSAGE :Lock wait timeout exceeded; try restarting transacti
Quartus Prime 18.0软件安装包和安装教程
AHA C language Chapter 6 God, a large string of numbers is approaching (lesson 26)
Heartless sword in Chinese
同花顺软件是什么?网上开户安全么?
让RDS(for MySQL)数据库的慢日志、审计日志跨空间转存OBS变得更加自动化
What is flush software? Is it safe to open an account online?
mysql服务器启动后自动停止