Set up and manage your machine learning project in a clean Python environment using the steps below.
python -m venv my_ml_envcd path/to/your_project_folder
# Example for Windows:
# cd C:\ML_Projects\your_project_folderWindows:
my_ml_env\Scripts\activatemacOS/Linux:
source my_ml_env/bin/activateAfter activation, your terminal prompt will look like this:
(my_ml_env) your_project_folder>pip listdeactivatepip freeze > requirements.txtpip install -r requirements.txt✅ You're now ready to work in a clean and portable Python environment for your machine learning project!