Note
Go to the end to download the full example code.
Installation¶
AgentScope requires Python 3.10 or higher. You can install from source or pypi.
From PyPI¶
pip install agentscope
From Source¶
To install AgentScope from source, you need to clone the repository from GitHub and install by the following commands
git clone -b main https://github.com/agentscope-ai/agentscope
cd agentscope
pip install -e .
To ensure AgentScope is installed successfully, check via executing the following code:
import agentscope
print(agentscope.__version__)
1.0.0
Extra Dependencies¶
To satisfy the requirements of different functionalities, AgentScope provides extra dependencies that can be installed based on your needs.
full: Including extra dependencies for model APIs and tool functions
dev: Development dependencies, including testing and documentation tools
For example, when installing the full dependencies, the installation command varies depending on your operating system.
For Windows users:
pip install agentscope[full]
For Mac and Linux users:
pip install agentscope\[full\]
Total running time of the script: (0 minutes 1.055 seconds)