diff --git a/Programming_Languages/Python/Concepts/Python_package_management.md b/Programming_Languages/Python/Concepts/Python_package_management.md index 9978ba3..34d7878 100644 --- a/Programming_Languages/Python/Concepts/Python_package_management.md +++ b/Programming_Languages/Python/Concepts/Python_package_management.md @@ -14,14 +14,24 @@ To make use of virtual environments in `pip` you have to create the virtual envi ``` python3 -m venv venv -source venv3/bin/activate -pip [library_name] ``` This will create a `venv` directory in your project that will manage the handling of modules. > This is especially important in ArchLinux since without a virtual environment it will ask you to install packages with `pacman` which is annoying for local packages. +You then activate the environment with: + +``` +source venv3/bin/activate +``` + +Now you can install packages: + +``` +pip [library_name] +``` + ## requirements.txt The `requirements.txt` file is similar to the `package.json` in Node projects.