Python学习笔记_10第三方库安装方法

方法1:采用Python自带的pip工具安装

打开命令行win+cmd

  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.

使用pip install {库}进行安装

安装成功会显示Successfully installed keras,如果出现黄色字体警告,是由于pip库包不是最新的,但keras库已成功安装,可随后对pip包进行更新,更新命令:python -m pip install --upgrade pip。

方法二:手动下载第三方库,在使用pip安装(适用部分库直接pip安装失败)

第三方库下载网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/ 传送门

你可能感兴趣的:(python)