參考: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 >>>>==== |