Installation¶
Alpha-Bot can be installed in multiple ways. Choose the method that best fits your workflow.
Prerequisites¶
- Python 3.7 or higher
- pip (Python package installer)
- OpenAI API Key (or compatible API endpoint)
- For browser automation: Chrome or Chromium browser installed on your system
Installation Methods¶
Method 1: Development Mode (Recommended)¶
This method is ideal if you want to contribute to the project or modify the code.
# Clone the repository
git clone https://github.com/fssqawj/alpha-bot.git
cd alpha-bot
# Install in development mode
pip install -e .
After installation, you can use both alpha-bot and ask commands directly:
Method 2: Install from PyPI¶
The simplest way to install Alpha-Bot is from PyPI:
This will install the latest stable version and make alpha-bot and ask commands available globally.
Method 3: Install Dependencies Only¶
If you prefer to run the script directly without installation:
# Clone the repository
git clone https://github.com/fssqawj/alpha-bot.git
cd alpha-bot
# Install dependencies
pip install -r requirements.txt
Then run using:
Verifying Installation¶
To verify that Alpha-Bot is installed correctly:
You should see the help message with available options.
Next Steps¶
Troubleshooting¶
Command not found¶
If you get "command not found" error after installation:
- Make sure pip's bin directory is in your PATH
- Try using
python -m ask_shell.cliinstead - Reinstall with
pip install --force-reinstall alpha-bot
Permission denied¶
If you encounter permission errors during installation:
# Use user installation
pip install --user alpha-bot
# Or use virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install alpha-bot
Import errors¶
If you get import errors:
- Make sure all dependencies are installed:
pip install -r requirements.txt - For browser automation, install Playwright:
playwright install chromium - Check your Python version:
python --version(should be 3.7+) - Try creating a fresh virtual environment