Skip to content

Does not install in Arch Linux and probably on none of newer linux distros #6

@adocampo

Description

@adocampo

Hi,

When installing, I see the following message.

curl -sSL https://raw.githubusercontent.com/fmdz387/cli-ai/refs/heads/master/setup.sh -o setup.sh && bash setup.sh                           ✔ 


         ██████╗██╗     ██╗     █████╗ ██╗
        ██╔════╝██║     ██║    ██╔══██╗██║
        ██║     ██║     ██║    ███████║██║
        ██║     ██║     ██║    ██╔══██║██║
        ╚██████╗███████╗██║    ██║  ██║██║
         ╚═════╝╚══════╝╚═╝    ╚═╝  ╚═╝╚═╝

Welcome to CLI AI Assistant!

Proceeding with fresh installation...
Enter your API key: 
Step 1: Setting up environment
Downloading fresh files from GitHub...
Downloading enhanced UI components...
All files downloaded successfully!
Step 2: Installing dependencies
Installing Python packages...
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Arch-packaged Python package,
    create a virtual environment using 'python -m venv path/to/venv'.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.
    
    If you wish to install a non-Arch packaged Python application,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. Make sure you have python-pipx
    installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Step 3: Securing API key
API key stored securely
Step 4: Configuring enhanced settings
Existing configuration preserved
Step 5: Configuring CLI aliases
touch: no se puede efectuar `touch' sobre '/home/malevolent/.bashrc': No existe el fichero o el directorio
sed: no se puede leer /home/malevolent/.bashrc: No existe el fichero o el directorio
setup.sh: línea 242: /home/malevolent/.bashrc: No existe el fichero o el directorio
Unix alias configured

*** CLI AI Assistant Setup Complete! ***

Usage:
  s <natural language command>   - Use AI assistant

Enhanced Features:
  - Interactive command preview with syntax highlighting
  - Gesture-based controls (Enter, Tab, Ctrl+A, Esc, etc.)
  - Alternative command suggestions
  - Risk assessment and safety warnings
  - Cross-platform clipboard support

Gesture Controls:
  Enter       Execute command
  Tab         Accept command and copy/paste to terminal if focused
  Ctrl+A      Show alternatives
  Esc         Cancel

Examples:
  s "show docker containers"
  s "show directory tree with permissions"

NOTE: Your API key is stored securely in your system's keyring and is not shared outside of this machine.

Restart your terminal session to use the 's' command!

The important thing here is

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Arch-packaged Python package,
    create a virtual environment using 'python -m venv path/to/venv'.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.
    
    If you wish to install a non-Arch packaged Python application,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. Make sure you have python-pipx
    installed via pacman.

Since a couple of years, Arch does not allow installing pip modules system-wide, you are forced to use pip inside a venv. This is a good practice and I think most of the modern Linux distros does the same.

Besides that, I'm using zsh, so in the case it would have been installed, it wouldn't have worked for me anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions