pip 备忘

  1. pip install --upgrade pip --user                 升级pip常用命令
  2. pip install 库名                                         安装库
  3. pip list                                                      查看安装的库
  4. pip -h                                                       获取所用帮助信息
  5. pip install -U 库名                                    更新库
  6. pip uninstall 库名                                     卸载库
  7. pip show 库名                                          获取库详细信息
  8. pip search 关键词                                    根据关键词在名称和介绍中搜索第三方库
  9. pip install -i https://pypi.tuna.tsinghua.edu.cn/simple+库名    从清华大学镜像源直接安装库
  10. pip install -U pandas -i https://mirrors.aliyun.com/pypi/simple/ 从阿里云镜像源直接升级库
  11. 下面是常用镜像源:
  12. 镜像名称 URL
    清华大学 https://pypi.tuna.tsinghua.edu.cn/simple
    阿里云 http://mirrors.aliyun.com/pypi/simple
    豆瓣 http://pypi.douban.com/simple
    中国科技大学

    https://pypi.mirrors.ustc.edu.cn/simple

 

对于一些无法安装的库(未进行有效编译)可使用以下方法:

UCI界面:http://www.lfd.uci.edu/~gohlke/pythonlibs/

查找库并下载

pip install <文件路径>  

 

posted @ 2020-05-29 10:16  红莲の狮子  阅读(156)  评论(0)    收藏  举报