python中pip的安裝

來源:互聯網
上載者:User

標籤:python   pip   

pip與linux中的yum非常類似,下載、安裝軟體包並解決依賴問題。

  • 安裝

C:\Python33\Scripts>easy_install.exe pipSearching for pipBest match: pip 9.0.1Processing pip-9.0.1-py3.3.eggpip 9.0.1 is already the active version in easy-install.pthInstalling pip3-script.py script to C:\Python33\ScriptsInstalling pip3.exe script to C:\Python33\ScriptsInstalling pip3.3-script.py script to C:\Python33\ScriptsInstalling pip3.3.exe script to C:\Python33\ScriptsInstalling pip-script.py script to C:\Python33\ScriptsInstalling pip.exe script to C:\Python33\ScriptsUsing c:\python33\lib\site-packages\pip-9.0.1-py3.3.eggProcessing dependencies for pipFinished processing dependencies for pip
  • 下載安裝

1.:https://bootstrap.pypa.io/get-pip.py2.安裝 d:\py>python get-pip.py
  • 更新

python -m pip install -U pip
  • 查看已安裝軟體包

d:\py>pip list  --format=columnsPackage    Version---------- -------enum34     1.1.6olefile    0.44Pillow     4.2.1pip        9.0.1psutil     5.2.2pywin32    218setuptools 28.8.0wheel      0.29.0
  • 檢查需要更新的軟體包

d:\py>pip list --outdate --format=columnsPackage    Version Latest Type---------- ------- ------ -----setuptools 28.8.0  36.2.7 wheel
  • 更新軟體包

d:\py>pip install --upgrade setuptoolsCollecting setuptools  Downloading setuptools-36.2.7-py2.py3-none-any.whl (477kB)        100% |████████████████████████████████| 481kB 93kB/sInstalling collected packages: setuptools  Found existing installation: setuptools 28.8.0    Uninstalling setuptools-28.8.0:      Successfully uninstalled setuptools-28.8.0Successfully installed setuptools-36.2.7

將C:\Python33\Scripts\加入系統內容變數


本文出自 “HUNT” 部落格,請務必保留此出處http://hunt1574.blog.51cto.com/1390776/1953161

python中pip的安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.