Python 虛擬環境 (Linux)
安裝 Python
1 | sudo apt install python3-pip |
安裝 Python Virtualenv
1 | sudo apt install python3-virtualenv |
建立虛擬環境
1 | python3 -m venv venv |
啟動虛擬環境
1 | source ./venv/bin/activate |
設定 Python path (Optional)
1 | export PYTHONPATH=$(pwd) |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.