博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pip模块
阅读量:4876 次
发布时间:2019-06-11

本文共 2739 字,大约阅读时间需要 9 分钟。

pip模块

Usage:  pip  [options]Commands:  install                       Install packages.  download                      Download packages.  uninstall                     Uninstall packages.  freeze                        Output installed packages in requirements format.  list                          List installed packages.  show                          Show information about installed packages.  check                         Verify installed packages have compatible dependencies.  config                        Manage local and global configuration.  search                        Search PyPI for packages.  wheel                         Build wheels from your requirements.  hash                          Compute hashes of package archives.  completion                    A helper command used for command completion.  help                          Show help for commands.General Options:  -h, --help                   Show help.  --isolated                   Run pip in an isolated mode, ignoring environment variables and user configuration.  -v, --verbose                Give more output. Option is additive, and can be used up to 3 times.  -V, --version                Show version and exit.  -q, --quiet                  Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING,ERROR, and CRITICAL logging levels).  --log 
Path to a verbose appending log. --proxy
Specify a proxy in the form[user:passwd@]proxy.server:port. --retries
Maximum number of retries each connection should attempt (default 5 times). --timeout
Set the socket timeout (default 15 seconds). --exists-action
Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort). --trusted-host
Mark this host as trusted, even though it does not have valid or any HTTPS. --cert
Path to alternate CA bundle. --client-cert
Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir
Store the cache data in
. --no-cache-dir Disable the cache. --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index. --no-color Suppress colored output
View Code

1、显示模块

pip list

2、显示过期模块

pip list --outdated

3、安装模块

pip install numpy pandas

4、卸载模块

pip uninstall numpy

5、升级模块

pip install --upgrade numpy

6、更新pip

python -m pip install --upgrade pip

7、把已有的包升级(如果以前有旧版本)

pip install -U scipy --user

 

 

转载于:https://www.cnblogs.com/windyrainy/p/10784978.html

你可能感兴趣的文章
常见渗透测试工具集成系统简介
查看>>
Cannot run Eclipse; JVM terminated. Exit code=13
查看>>
文件上传
查看>>
敏捷软件开发_UML<一>
查看>>
Coursera台大机器学习技法课程笔记07-Blending and Bagging
查看>>
(五)函数装饰器和闭包
查看>>
经典变量练习
查看>>
SQL注入学习总结(四):SQL注入中的绕过
查看>>
Ajax笔记
查看>>
Nginx配置文件详细说明
查看>>
python遇到的问题汇总
查看>>
DBGRID 拖动滚动条 和 鼠标滚轮的问题
查看>>
快速排序、冒泡排序
查看>>
多个Tomcat同时启动的解决方案
查看>>
opencv
查看>>
VC/MFC非模态对话框实例
查看>>
编译器错误 CS0714和CS0715
查看>>
bzoj 3522 [Poi2014]Hotel 树形dp
查看>>
Deepin-安装laravel
查看>>
Linux 系统启动过程
查看>>