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 pip換源Python
- python配置pip映象Python
- python如何配置pipPython
- 關於pythonPython
- pip 相關命令操作
- python之pip的使用Python
- 關於pip安裝時提示"pkg_resources.DistributionNotFound"錯誤
- anaconda,conda,pip的關係
- python pip安裝 setuptools相關的一些奇怪問題Python
- python的pip使用阿里源Python阿里
- python怎麼安裝pip?Python
- 關於python整合dlibPython
- python關於+=的陷阱Python
- 關於 Python 的 importPythonImport
- Linux下python pip install失敗LinuxPython
- 使用 Python Pip 的 10 個技巧Python
- python (pip)安裝talib報錯Python
- python必須安裝pip嗎Python
- Windows手動新增python、pip環境變數及修改pip源WindowsPython變數
- 關於Python的迭代操作Python
- 解決You should consider upgrading via the 'python -m pip install --upgrade pip' command. (pip工具版本較低導致)IDEPython
- 關於Python Number 相關的知識!Python
- python的pip快速安裝程式碼Python
- Python pip設定為清華源Python
- python自帶pip怎麼執行Python
- python如何在cmd中升級pip?Python
- 讓pip使用python3而不是python2Python
- python關於函式形參Python函式
- 關於Python小遊戲程式Python遊戲
- 關於python爬取網頁Python網頁
- Centos7.4 python3 升級pipCentOSPython
- 如何在 Ubuntu 22.04 上安裝 Python Pip?UbuntuPython
- Python pip的安裝及解除安裝Python
- centos7下安裝Python的pipCentOSPython
- python中pip更新失敗怎麼辦Python
- Python pip(管理模組工具)基礎用法Python