【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】

相關文章
相關標籤/搜索