Chapter 1
- To keep your project-specific Python packages and dependencies isolated from other projects and the system-level Python packages.
- No. You can always regenerate a virtual environment and reinstall packages.
- To keep a list of all the Python packages (and versions) that your Python projects rely on. Having a maintained requirements.txt file allows you to reinstall all packages easily with the command pip install -r requirements.txt.
- Make sure you are using the absolute path to the Python interpreter that is in the bin folder of your virtual environment.
- It activates a virtual environment so that all users of Python and pip are sandboxed to the virtual environment.
- deactivate. If you type exit (and we all do it sometimes!), ...