eolas/Programming_Languages/Python/Concepts/Python_package_management.md
2023-02-14 09:16:11 +00:00

744 B

categories tags
Programming Languages
python
data-types

Package management

  • It is better to use conda (the package manager that comes with anaconda), since this makes it easier to work with conflicting package libraries (a bit like a package lock).

  • The alternative is the native pip but you have to create virtual environments (venv) to manage packages at different versions.

    It works a bit like this:

    To make use of virtual environments in pip you have to create the virtual environment before installing anything:

    python3 -m venv venv3
    source venv3/bin/activate
    pip [library_name]
    
  • pypi.org > is package registry like NPM