python:關於pip
python pip安裝包的一些常用命令:
1 羅列出所有安裝過的包:
pip list 或 pip freeze
2 安裝包:
2.1 直接安裝
$ pip install SomePackage # 預設最新版 $ pip install SomePackage==1.0.4 # 某個指定版 $ pip install `SomePackage>=1.0.4` # 某個版本以上
2.2 從包列表檔案裡面依次安裝
pip install -r example-requirements.txt 關於 example-requirements.txt:
# ####### example-requirements.txt ####### # ###### Requirements without Version Specifiers ###### nose nose-cov beautifulsoup4 # ###### Requirements with Version Specifiers ###### # See https://www.python.org/dev/peps/pep-0440/#version-specifiers docopt == 0.6.1 # Version Matching. Must be version 0.6.1 keyring >= 4.1.1 # Minimum version 4.1.1 coverage != 3.5 # Version Exclusion. Anything except version 3.5 Mopidy-Dirble ~= 1.1 # Compatible release. Same as >= 1.1, == 1.* # ###### Refer to other requirements files ###### -r other-requirements.txt # # ###### A particular file ###### ./downloads/numpy-1.9.2-cp34-none-win32.whl http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1820+49a8884-cp34-none-win_amd64.whl # ###### Additional Requirements without Version Specifiers ###### # Same as 1st section, just here to show that you can put things in any order. rejected green #
2.3 指定安裝的源
pip install SomePackage -i https://pypi.tuna.tsinghua.edu.cn/simple
3 升級包
pip install -U SomePackage
pip install --upgrade SomePackage
4 解除安裝包
pip uninstall SomePackage 或者 pip uninstall -r list.txt
5 顯示某個包的資訊….包所含檔案列表:
pip show -f SomePackage
6 搜尋包
pip search keyword
7 查詢可升級包
pip list -o
相關文章
- python pip相關問題Python
- Python pip 源配置Python
- python如何配置pipPython
- Python pip安裝Python
- python安裝pipPython
- Python pip換源Python
- python配置pip映象Python
- pip 相關命令操作
- 關於pythonPython
- python之pip的使用Python
- 關於pip安裝時提示"pkg_resources.DistributionNotFound"錯誤
- python pip安裝 setuptools相關的一些奇怪問題Python
- python怎麼安裝pip?Python
- python的pip使用阿里源Python阿里
- 【Python】升級python後pip報錯Python
- Windows手動新增python、pip環境變數及修改pip源WindowsPython變數
- python關於+=的陷阱Python
- 關於 Python 的 importPythonImport
- Python--關於dictPython
- Python--關於setPython
- python必須安裝pip嗎Python
- 使用 Python Pip 的 10 個技巧Python
- Python pip設定為清華源Python
- anaconda,conda,pip的關係
- 關於Python小遊戲程式Python遊戲
- 關於python整合dlibPython
- 關於Python的迭代操作Python
- 關於Python的集合setPython
- python自帶pip怎麼執行Python
- python如何在cmd中升級pip?Python
- Python pip(管理模組工具)基礎用法Python
- python的pip快速安裝程式碼Python
- 批量安裝python庫函式—pipPython函式
- 【Python】軟體管理工具--pipPython
- 關於Python Number 相關的知識!Python
- 讓pip使用python3而不是python2Python
- Centos7.4 python3 升級pipCentOSPython
- python中pip更新失敗怎麼辦Python