1. Open VS Code Terminal打開VS的Teminal Ctrl Check python 的version python --version2. Create a virtual environmentpython -m venv .venv3. install 依賴包根據逐個py 文件安裝依賴包pip install streamlit pandas streamlit-option-menu google-generativeai4. Run streamlitstreamlit run app.py5. Deploy to docker in ubuntu不需要Copy .venv foder到服務器Windows環境需要該文件但是Linux環境不需要。生成requirements文件 pip freeze requirements.txtCopy code to server and set 運行權限 chmod x start_worker_*.sh
阅读完成 · 觉得有帮助?