pip安裝python 包

來源:互聯網
上載者:User

標籤:yum   ext   name   shell   define   檔案   undle   server   ade   

python3.6 裡邊沒有Pip module

其他方法都比較複雜,

通過下邊這種方法比較簡單

https://pip.pypa.io/en/stable/installing/

在這個網站中下載 To install pip, securely download get-pip.py. [2] 

然後就可以在 python路徑的script路徑看到 pip和easy_install 程式了

有了pip程式後,在powershell中開啟

##可以採用pip list --outdate 查看有需要更新的package
PS C:\Users\tianwc\AppData\Local\Programs\Python\Python36\Scripts> pip list --outdate
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.
beautifulsoup4 (4.3.2) - Latest: 4.5.3 [wheel]

然後 通過pip install --upgrade packagename就可以更新到最新版本

 

其他的pip的一些函數

 1 # pip --help 2   3 Usage:    4   pip <command> [options] 5   6 Commands: 7   install                     安裝包. 8   uninstall                   卸載包. 9   freeze                      按著一定格式輸出已安裝包列表10   list                        列出已安裝包.11   show                        顯示包詳細資料.12   search                      搜尋包,類似yum裡的search.13   wheel                       Build wheels from your requirements.14   zip                         不推薦. Zip individual packages.15   unzip                       不推薦. Unzip individual packages.16   bundle                      不推薦. Create pybundles.17   help                        當前協助.18  19 General Options:20   -h, --help                  顯示協助.21   -v, --verbose               更多的輸出,最多可以使用3次22   -V, --version               現實版本資訊然後退出.23   -q, --quiet                 最少的輸出.24   --log-file <path>           覆蓋的方式記錄verbose錯誤記錄檔,預設檔案:/root/.pip/pip.log25   --log <path>                不覆蓋記錄verbose輸出的日誌.26   --proxy <proxy>             Specify a proxy in the form [user:[email protected]]proxy.server:port.27   --timeout <sec>             連線逾時時間 (預設15秒).28   --exists-action <action>    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.29   --cert <path>               認證.

 

 

 

pip安裝python 包

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.