当前位置:网站首页>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 .
边栏推荐
- 第一部分—C语言基础篇_4. 程序流程结构
- Target detection model size calculation, model complexity (parameter conversion formula)
- SAP Fiori 的附件处理(Attachment handling)
- 将视频格式转换为gif图片格式
- 如何快速计算生成模型的FID、IS、sFID、Precision、Recall等关键评价指标?
- SAP Fiori 的附件处理(Attachment handling)
- Uniapp warehouse management system source code
- ArrayList底层分析
- 面試題-給::memcpy函數設計測試用例
- 【摸鱼神器】UI库秒变低代码工具——表单篇(二)子控件
猜你喜欢
随机推荐
Microservice splitting for stand-alone projects
[Luogu] p2357 tomb keeper
OLED displays how to understand the character sizes of 12*6, 16*8, 24*12, etc
SAP Fiori 的附件处理(Attachment handling)
Etcd database source code analysis - initialize etcdserver structure
Chapter VIII vector of STL
SAP Fiori 的附件处理(Attachment handling)
Express
如何快速计算生成模型的FID、IS、sFID、Precision、Recall等关键评价指标?
多租户 SaaS 的数据库设计模式,你学废了吗?
Etcd database source code analysis -- etcdserver bootstrap recover store from snapshot
Static routing!! Static routing!! Static routing!!
第一部分—C语言基础篇_4. 程序流程结构
【C语言】数组知识点总结
如何在监控主机上单独部署agent——WGCLOUD
Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS) (found suitable exact version “11.4“)
记忆 lda LDA in blas level-3 SGEMM cublasGemmex cubulasSgemm
C语言编译过程
Simple third-party component log desensitization
【C语言】 数据类型及意义








