python 離線打包pip

python 2.7.8

os win 10 x64

 

1、列出包 

./pip.exe freeze > requirements.txt 

2、根據列出的包,下載

./pip.exe download -d C:\\Package\\whls -r .requirements.txt

3、根據列表與包安裝

./pip install --no-index --find-links=C:\\Package\\whls -r requirements.txt

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章