python笔记

pip使用笔记

2020,06,23 432 0
1.pip  install  [包名]    安装包
    pip install [包名] ==[版本]  安装指定版本包
    pip install  -r  [文件名]   安装文件内包
2.pip uninstall [包名]   卸载包
pip list   查看pip管理的包
    pip list  -r [文件名]  输出包列表到指定文件
    pip list -r > [文件名]   输出包到指定文件  >  定向符

问题解决:
1.
D:\开发\python>pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.3)
setuptools (39.0.1)
You are using pip version 9.0.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

解决方法:
更新pip : python -m pip install --upgrade pip

发表评论