天天看點

python項目依賴requirements.txt

1、生成依賴檔案

 pip freeze > requirements.txt--名字可以自定義

2、将這個檔案上傳到伺服器上的項目中并安裝依賴

pip install -r requirements.txt