【324】Python 库说明(安装&卸载)

参考: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 >>>>====
code

The PyPA recommended tool for installing Python packages.
安装 python 库。
----------------------------------------------------------------------------------
orm

====<<<< References >>>>====
htm

[1] python安装库(Windows下)

02 requests  

====<<<< Description >>>>====

Requests is the only Non-GMO HTTP library for Python, safe for human consumption.
读取打开网页。
----------------------------------------------------------------------------------

====<<<< My Blog >>>>====

【316】python.requests 读取网页信息

 03  twilio  

====<<<< Description >>>>====

A module for using the Twilio REST API and generating valid TwiML.
读取打开网页。
----------------------------------------------------------------------------------

====<<<< My Blog >>>>====

【319】Python 经过 Twilio 发短信息

 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 >>>>====

【321】python进程监控:psutil

 05 pynput
 

====<<<< Description >>>>====

This library allows you to control and monitor input devices.
控制和监控鼠标和键盘。
----------------------------------------------------------------------------------

====<<<< My Blog >>>>====

【322】python控制键盘鼠标:pynput

 06  selenium
 

====<<<< Description >>>>====

The selenium package is used to automate web browser interaction from Python.
----------------------------------------------------------------------------------

====<<<< My Blog >>>>====

【322】

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.
Python 图像库,能够实现图像处理,截图等操做。
----------------------------------------------------------------------------------

 

====<<<< My Blog >>>>====

【322】

 08  PyQt4  

====<<<< Description >>>>====

PyQt4 is a comprehensive set of Python bindings for Digia’s Qt cross platform GUI toolkit.
----------------------------------------------------------------------------------

====<<<< My Blog >>>>====

【322】

09 wget  

 

====<<<< Description >>>>====

 

用来下载文件的。
----------------------------------------------------------------------------------

 

====<<<< My Blog >>>>====

【322】

相关文章
相关标签/搜索