關於python擴充套件庫若干問題FAQ

2021-08-11 03:51:00 字數 4145 閱讀 5931

位址如下:

二、安裝whl的方法?

2、使用如下命令進行安裝。

python

-m pip install --user 

pygame-1.9.2b8-cp36-cp36m-win_amd64.whl

python

-m pip install --user rsa-3.4.2-py2.py3-none-any.whl

三 怎樣安裝

pip?

5、執行:python setup.py install

6、在環境變數path中新增d:\python36\scripts

四 pip基本用法?

1、列出已安裝包

c:\users\lenovo>pip list

deprecation: the default format will switch to columns in the future. you can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

pillow (4.0.0)

pip (9.0.1)

pyasn1 (0.2.3)

pygame (1.9.3)

pyopengl (3.1.0)

pywin32 (221)

rsa (3.4.2)

setuptools (28.8.0)

2、檢視待更新包

c:\users\lenovo>pip list --outdated

deprecation: the default format will switch to columns in the future. you can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

pillow (4.0.0) - latest: 4.1.1 [wheel]

setuptools (28.8.0) - latest: 35.0.2 [wheel]

3、安裝redis

c:\users\lenovo>pip install redis

collecting redis

downloading redis-2.10.5-py2.py3-none-any.whl (60kb)

100% |████████████████████████████████| 61kb 19kb/s

installing collected packages: redis

successfully installed redis-2.10.5

4、解除安裝redis

c:\users\lenovo>pip uninstall redis

uninstalling redis-2.10.5:

d:\python36\lib\site-packages\redis-2.10.5.dist-info\description.rst

d:\python36\lib\site-packages\redis-2.10.5.dist-info\installer

d:\python36\lib\site-packages\redis-2.10.5.dist-info\metadata

d:\python36\lib\site-packages\redis-2.10.5.dist-info\metadata.json

d:\python36\lib\site-packages\redis-2.10.5.dist-info\record

d:\python36\lib\site-packages\redis-2.10.5.dist-info\top_level.txt

d:\python36\lib\site-packages\redis-2.10.5.dist-info\wheel

d:\python36\lib\site-packages\redis\__init__.py

d:\python36\lib\site-packages\redis\__pycache__\__init__.cpython-36.pyc

d:\python36\lib\site-packages\redis\__pycache__\_compat.cpython-36.pyc

d:\python36\lib\site-packages\redis\__pycache__\client.cpython-36.pyc

d:\python36\lib\site-packages\redis\__pycache__\connection.cpython-36.pyc

d:\python36\lib\site-packages\redis\__pycache__\exceptions.cpython-36.pyc

d:\python36\lib\site-packages\redis\__pycache__\lock.cpython-36.pyc

d:\python36\lib\site-packages\redis\__pycache__\sentinel.cpython-36.pyc

d:\python36\lib\site-packages\redis\__pycache__\utils.cpython-36.pyc

d:\python36\lib\site-packages\redis\_compat.py

d:\python36\lib\site-packages\redis\client.py

d:\python36\lib\site-packages\redis\connection.py

d:\python36\lib\site-packages\redis\exceptions.py

d:\python36\lib\site-packages\redis\lock.py

d:\python36\lib\site-packages\redis\sentinel.py

d:\python36\lib\site-packages\redis\utils.py

proceed (y/n)? y

successfully uninstalled redis-2.10.5

5、pip檢視已安裝包

c:\users\lenovo>pip show --files rsa

name: rsa

version: 3.4.2

summary: pure-python rsa implementation

home-page:

author: sybren a. stuvel

author-email: [email protected]

license: asl 2

6、pip公升級包

c:\users\lenovo>pip install --upgrade pillow

collecting pillow

downloading pillow-4.1.1-cp36-cp36m-win_amd64.whl (1.5mb)

100% |████████████████████████████████| 1.5mb 81kb/s

collecting olefile (from pillow)

downloading olefile-0.44.zip (74kb)

100% |████████████████████████████████| 81kb 34kb/s

installing collected packages: olefile, pillow

running setup.py install for olefile ... done

found existing installation: pillow 4.0.0

uninstalling pillow-4.0.0:

successfully uninstalled pillow-4.0.0

successfully installed pillow-4.1.1 olefile-0.44

關於fusionchart的若干問題

最近在做的乙個專案用到fusionchart這個外掛程式,期間遇到了一些問題,特整理出來以備忘,更與後來人分享 1 關於傳參。一般我們都是通過setdataurl url 來調後台的服務類獲取所要展現的資料,可是我們經常會在url中通過 傳多個查詢引數,這時一般都會出錯。這是因為編碼的問題,要通過e...

ceph若干問題

ceph health可以檢視ceph集群健康狀況 ceph df 可以檢視儲存的總使用率與各pool的使用率 ceph osd df 可以檢視各osd的使用率 ceph s 或 ceph status 可以檢視集群整體狀態 首先,我們要知道ceph的osd的位址 ceph osd tree可以檢視...

Ext grid 若干問題

1.grid.getselectionmodel getcount 獲得當前選中的行數 2.grid.getstore gettotalcount 獲得記錄總數 3.grid.getstore getcount 獲得當前分頁的記錄總數 4.5.獲得當前滑鼠單擊的單元格的value 6.new gri...