Bước 1: Tạo môi trường ảo có tên newenv
Windows: $ python -m venv newenv
Linux: $python3 -m venv newenv
Bước 2: Active môi trường ảo
Windows: newvenv\Scripts\activate
Lunux: source /newenv/bin/activate
Cài đặt các gói packages:
pip install <tên_thư_viện>
Liệt kê các thư viện:
pip freeze
hoặc xuất ra file: pip freeze > requirements.txt
Dựng lại các thư viện từ file requirements.txt
pip install -r requiments.txt