当前位置:网站首页>Detailed explanation of the different usage of PIP and PIP3
Detailed explanation of the different usage of PIP and PIP3
2022-07-19 09:33:00 【One of IT guys】
python It is divided python2 and python3 Two versions of , Again pip It's also a point pip and pip3 Of .
There are multiple versions of the computer at the same time python when ,pip3 It can be used for automatic identification python3 To install Libraries , To avoid the same python2 conflict
If your computer only has python3, Use pip perhaps pip3 It's the same
The main differences are as follows :
- pip yes python Package management tools ,pip and pip3 Different versions , All in Scripts\ Under the table of contents
- If in the system Install only 了 Python2, Then you can only use pip
- If only Installed Python3, So you can use pip You can also use pip3, The two are equivalent
- If in the system At the same time to install 了 Python2 and Python3, be pip By default Python2 use ,pip3 Assign to Python3 use
- stay A virtual environment in , If there is only one python edition , It can be considered that in the system in use pip and pip3 The commands are the same
Installation and use differences :
pip install xxxxxx
The newly installed library will be placed under this directory :python2.x/site-packages




see python in pip Where the installation package is located :
- Use pip list View installed package names
- And then use pip show Package name , You can see where it is installed
Be careful : Usually installed in python Install under directory lib/site-packages Under the table of contents !
pip show Package name 
Be careful : If you use python Execution procedure , Then we can't import python3.x/site-packages Library in .
pip3 install xxxxxx
The newly installed library will be placed under this directory :python3.x/site-packages


see python3 in pip3 Where the installation package is located :
- Use pip3 list View installed package names
- And then use pip3 show Package name , You can see where it is installed
Be careful : Usually installed in python Install under directory lib/site-packages Under the table of contents !


Be careful : If you use python3 Execution procedure , Then we can't import python2.x/site-packages Library in .
边栏推荐
- Etcd database source code analysis - initialize etcdserver structure
- Towhee daily model weekly report
- ArrayList底层分析
- Case sharing | build a one-stop data development platform for hehe information based on linkis+dss
- 05---增透膜
- v-mode
- Mux256to1v,Hadd,Fadd
- 【C语言】void类型和void*指针类型
- After working hard, I found that there were so many messes around
- DuiLib 实现tooltip自定义鼠标提示窗口
猜你喜欢

【ACWing】947. 文本编辑器

C语言基础篇 —— 2-3 指针与数组

Uniapp warehouse management system source code

研究发现DNA纳米设备注射液可安全用于医疗用途

Chapter 10 stack of STL

SAP Fiori 的附件处理(Attachment handling)

Google play app store may delete the overview of APP permissions and use a new combination of data security information

第一部分—C语言基础篇_1. C语言概述

LDA分类器

Case sharing | build a one-stop data development platform for hehe information based on linkis+dss
随机推荐
L2-029 independent happiness
Day 5 training
第一部分—C语言基础篇_4. 程序流程结构
SharePoint access brief notes
DuiLib 实现tooltip自定义鼠标提示窗口
第一部分—C语言基础篇_1. C语言概述
KNN分类器
Etcd database source code analysis -- etcdserver bootstrap recover store from snapshot
【性能优化方法论系列】六、总结
cookie和session在实际项目中的使用
LDA分类器
C语言基础篇 —— 2-1 指针与野指针
实用工具系列 - Xshell安装下载与使用
2022.7.16-----leetcode. Sword finger offer 041
Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS) (found suitable exact version “11.4“)
Makefile中在命令前加上- 则忽略该命令产生的错误,继续执行下一条命令
07---布儒斯特角
MySQL user management
AnyControl Demo演示
在Pycharm里面如何避免全局索引?如何取消对于某个文件夹的索引?