timescale / pgai

Bring AI models closer to your PostgreSQL data
PostgreSQL License
318 stars 11 forks source link

Installation failed with no such option: --break-system-packages #29

Closed dmahto05 closed 1 week ago

dmahto05 commented 3 weeks ago

Setting it up on EC2 - Amazon Linux

During installation from source it was failing with below issue.

_no such option: --break-system-packages make: *** [Makefile:27: install_pythonpackages] Error 2

WIth some research found below workaround that worked, i.e. setting up PIP_BREAK_SYSTEM_PACKAGES and remove --break-system-packages from MakeFile.

export PIP_BREAK_SYSTEM_PACKAGES=1

# Install the required Python packages
install_python_packages:
    @pip3 install -r requirements.txt

Sharing it as issue to retrospect if we can use PIP_BREAK_SYSTEM_PACKAGES as default way in MakeFile.