参考:Python_安装官方whl包和tar.gz包html
参考:Unofficial Windows Binaries for Python Extension Packagespython
参考:PyPIweb
参考:直接定位文件夹删除进行卸载(非在线安装)学习
Python 最重要的就是各类库,而对于预装的 Python 来讲并不包含全部的库,所以在工做学习中难免须要安装库来进行代码编写,本文主要介绍库的安装以及经常使用库的说明和下载连接等。url
显示目前全部库,经过下面的语句实现:spa
help('modules')
1、库的安装
1. 在线安装
- 打开 cmd
- 定位到 Python 文件夹下的 Scripts 文件夹(或者将其加入系统变量)
- 输入以下代码 pip install module_name (常常失败)
2. 离线安装
- 下载离线文件,通常直接搜索 https://pypi.org 能够获取
- 进入 project 页面后,点击 Download files,而后下载适合的 *.whl 文件
- 经过 cmd 安装,与 在线安装相似
- 输入以下代码 pip install D:\python\module_name.whl
- 若是下载的是 *.tar.gz 包:cd到解压后路径
- 输入以下代码 python setup.py install
2、经常使用库
No. | Package | Functional specification.net |
||
01 | pip | ====<<<< Description >>>>==== The PyPA recommended tool for installing Python packages. ====<<<< References >>>>==== |
||
02 | requests | ====<<<< Description >>>>==== Requests is the only Non-GMO HTTP library for Python, safe for human consumption. ====<<<< My Blog >>>>==== |
||
03 | twilio | ====<<<< Description >>>>==== A module for using the Twilio REST API and generating valid TwiML. ====<<<< My Blog >>>>==== |
||
04 | psutil |
====<<<< Description >>>>==== psutil (process and system utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python. ====<<<< My Blog >>>>==== |
||
05 | pynput |
====<<<< Description >>>>==== This library allows you to control and monitor input devices. ====<<<< My Blog >>>>==== |
||
06 | selenium |
====<<<< Description >>>>==== The selenium package is used to automate web browser interaction from Python. ====<<<< My Blog >>>>==== |
||
07 | Pillow |
====<<<< Description >>>>====
Pillow is the friendly PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors.
====<<<< My Blog >>>>==== |
||
08 | PyQt4 | ====<<<< Description >>>>==== PyQt4 is a comprehensive set of Python bindings for Digia’s Qt cross platform GUI toolkit. ====<<<< My Blog >>>>==== |
||
09 | wget |
====<<<< Description >>>>====
用来下载文件的。
====<<<< My Blog >>>>==== |