您的位置:首頁技術文章
文章詳情頁

python如何安裝模塊?python安裝模塊簡單使用教程

瀏覽:5日期:2022-08-08 10:23:54

大家知道python如何安裝模塊嗎?下文好吧啦網小編就帶來了在python安裝模塊的簡單使用教程,一起來看看吧!

python安裝模塊的操作方法

python如何安裝模塊?python安裝模塊簡單使用教程

安裝模塊前,首先要安裝setuptools。就能用ez_setup.py安裝了setuptools了。

有setuptools,就要開始配置環境。因為需要用到python安裝目錄下的Scripts文件夾里面的文件

python如何安裝模塊?python安裝模塊簡單使用教程

到桌面,點擊計算機右鍵--屬性

python如何安裝模塊?python安裝模塊簡單使用教程

點擊“高級系統設置”

python如何安裝模塊?python安裝模塊簡單使用教程

點擊“環境變量”

python如何安裝模塊?python安裝模塊簡單使用教程

在系統變量一欄下拉,找到PATH并雙擊

python如何安裝模塊?python安裝模塊簡單使用教程

先在最后加一個分號;再輸入 “你的python路徑”Scripts。比如好吧啦網小編的python安裝路徑是D:python2.7.6,那么好吧啦網小編應該輸入D:python2.7.6Scripts。如圖

python如何安裝模塊?python安裝模塊簡單使用教程

設置完畢后,就能直接用命令行安裝模塊了。比如好吧啦網小編要安裝PIL模塊,只需要輸入easy_install PIL 回車

python如何安裝模塊?python安裝模塊簡單使用教程

開始下載

python如何安裝模塊?python安裝模塊簡單使用教程

安裝成功

python如何安裝模塊?python安裝模塊簡單使用教程

以上就是好吧啦網小編今日為大家帶來的python安裝模塊簡單使用教程,更多軟件資訊敬請關注IE瀏覽器中文網站!

標簽: Python 編程
相關文章:
国产综合久久一区二区三区