如何在Cygwin中安裝Python模組?


安裝cygwin時,請確保從列表中安裝python/python-setuptools。這將安裝“easy_install”軟體包。有了easy_install,你就可以用它來安裝pip。輸入以下命令

$ easy_install-a.b pip

你必須用你的python版本(可能是2.7或3.4或其他版本)替換a.b。現在你可以使用pip來安裝你想要的模組。例如,安裝“SomeProject”的最新版本

$ pip install 'SomeProject'

安裝特定版本

$ pip install 'SomeProject==1.4'

安裝大於或等於一個版本但小於另一個版本

$ pip install 'SomeProject>=1,<2'

更新日期:01-Oct-2019

2K+瀏覽量

開啟您的職業

完成本課程,獲取認證

開始學習
廣告
© . All rights reserved.