Skip to main content

Requirements

Before installing milcapy, ensure you have Python 3.10 or higher installed on your system.
milcapy requires Python ≥ 3.10 to run properly.

Installing milcapy

1

Install via pip

The easiest way to install milcapy is using pip:
pip install milcapy
This will automatically install milcapy and all required dependencies.
2

Verify installation

After installation, verify that milcapy is installed correctly by importing it in Python:
from milcapy import SystemModel
print("milcapy installed successfully!")
If the import succeeds without errors, you’re ready to start using milcapy.

Dependencies

milcapy automatically installs the following required dependencies:
  • numpy - For numerical computations and matrix operations
  • matplotlib - For visualization and plotting capabilities
You don’t need to install these dependencies manually - they will be installed automatically when you install milcapy.

Upgrading milcapy

To upgrade to the latest version of milcapy:
pip install --upgrade milcapy

Installation Issues

If you encounter any issues during installation:
Make sure you’re using Python 3.10 or higher. You can check your Python version with:
python --version

Common Solutions

  1. Upgrade pip: Ensure you have the latest version of pip:
    pip install --upgrade pip
    
  2. Use virtual environment: It’s recommended to use a virtual environment to avoid dependency conflicts:
    python -m venv myenv
    source myenv/bin/activate  # On Windows: myenv\Scripts\activate
    pip install milcapy
    
  3. Check permissions: If you encounter permission errors, try installing with the --user flag:
    pip install --user milcapy
    

Next Steps

Now that you have milcapy installed, you’re ready to create your first structural analysis model!

Quickstart Guide

Build your first structural model in minutes

API Reference

Explore the complete API documentation

Build docs developers (and LLMs) love