Installation¶
ScoutML can be installed via pip or from source, providing both a command-line interface and a Python library.
Requirements¶
- Python 3.8 or higher
- pip package manager
Install from PyPI¶
The easiest way to install ScoutML is via pip:
This installs both the CLI tool and the Python library.
Install from Source¶
For the latest development version or to contribute:
Development Installation
Using pip install -e .
installs the package in "editable" mode, allowing you to modify the code and see changes immediately without reinstalling.
Verify Installation¶
After installation, verify ScoutML is working:
CLI Verification¶
You should see the version number displayed.
Python Library Verification¶
import scoutml
print(scoutml.__version__)
# Test API access (requires API key)
try:
results = scoutml.search("test", limit=1)
print("✓ ScoutML is working correctly")
except Exception as e:
print(f"✗ Error: {e}")
Dependencies¶
ScoutML automatically installs these dependencies:
click
- Command-line interface frameworkrequests
- HTTP library for API callsrich
- Terminal formatting and tablespython-dotenv
- Environment variable managementtabulate
- Table formattingtqdm
- Progress bars
Troubleshooting¶
Permission Errors¶
If you encounter permission errors during installation:
Virtual Environments¶
We recommend using a virtual environment:
Upgrading¶
To upgrade to the latest version:
Next Steps¶
After installation, you'll need to configure your API key to start using ScoutML.