Skip to content

Managing Dependencies with ELPM

This page explains how to manage dependencies for your EasyLang projects using ELPM.

Dependencies are Python packages yourEasyLang program requires, such as:

  • requests
  • numpy
  • pillow
  • beautifulsoup4

ELPM makes installing, updating, and exporting these dependencies easy.


1. Listing All Installed Packages

elpm --list

This shows all packages currently available to EasyLang.


2. Freeze Dependencies (Generate Requirements List)

elpm --freeze

Output example:

requests==2.31.0
pillow==10.0.1
numpy==1.26.0

You can save it:

elpm --freeze > requirements.txt


3. Installing Everything from Requirements File

Since ELPM is pip-based, simply run:

pip install -r requirements.txt

All packages will become available to EasyLang.


4. Updating Dependencies

elpm --upgrade <package>

Update everything using:

pip install --upgrade -r requirements.txt


5. Removing Dependencies

To clean up unused libraries:

elpm --uninstall <package>

Example:

elpm --uninstall numpy


6. Checking Package Info Before Updating

elpm --info <package>

See:

  • version
  • location
  • required dependencies
  • summary
  • author

7. Keeping Projects Reproducible

Best practice for projects:

  1. Install everything normally

  2. Run:

    `elpm --freeze > requirements.txt`
    
  3. Commit requirements.txt to GitHub

  4. Other users can run:

    `pip install -r requirements.txt`
    

Now their EasyLang environment matches yours exactly.


Summary

ELPM makes dependency management simple:

  • Install packages
  • Upgrade packages
  • Remove old packages
  • Freeze dependencies
  • Inspect package info
  • Search PyPI

Using ELPM keeps EasyLang projects organized and Python-compatible.