"Python Pip Base Command"

Source: Internet
Author: User

About PIP
pip 是Python的著名的包管理用于,用于对Python包进行便捷的安装、卸载、升级等相关操作。
PIP installation
sudo easy_install pip  pip --version  查看版本
Pip common commands Show list of installed modules
pip list 命令pip list | grep requests, 查找是否存在requests包pip freeze 命令pip list | grep requests, 查找是否存在requests包
Mounting module
pip install “包名”pip install requests , 安装“requests”包 pip install <目录>/<文件名>pip install /Users/master/test  安装本地包
Uninstalling the module
pip uninstall 命令pip uninstall requests, 卸载requests模块
Upgrade Packages
pip install --upgrade "包名"pip install --upgrade  requests , 升级requests包
Display the directory where the package resides
pip show 命令pip show -f requests, 显示requests包所在目录
Search Packages
pip searchpip search requests, 搜索包
Other
pip install -U pip, 升级pip

Please pay attention to the public number

"Python Pip Base Command"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.