1.3 Installation
Environment Setup
- Download a Python environment. We recommend using Conda. Install the latest Miniforge or Miniconda for your system.
- Conda download link: Miniforge3
After installation, launch Miniforge Prompt and enter the following command to initialize conda:
shellconda initAfter installation, launch Miniforge Prompt or your system terminal and enter the following command to create a new Python environment:
shellconda create -n agilesdk python=3.10Enter the following command to activate the newly created environment:
shellconda activate agilesdkIf setting up a Conda environment is inconvenient, use
venvto create and activate a virtual environment:shell# Create python3.10 -m venv agilesdk # Activate the environment on Windows .\agilesdk\Scripts\activate # Activate the environment on Linux source agilesdk/bin/activate
Enter the
cdcommand to navigate to the extracted directory and use the following command to install the required Python packages:shellcd extracted_package_directory pip install -r requirements.txtIf pip installation fails, open
requirements.txtand use conda to install each package:shellconda install package_name=<version>
IDE Installation
It is recommended to use PyCharm as your development environment.
PyCharm download link: PyCharm
After downloading and installing PyCharm Community Edition, launch the software.
Create a new Python project and select "Pure Python" as the project type.
Select "Base Conda" as the interpreter type and set the path to the previously created
agilesdkenvironment.Click "Create" to start writing code.
SDK Installation and Testing
Enter the following command to install the Python version of the robot SDK. Replace
x.x.xwith the current SDK version number:shellpip install Agilebot.SDK.A-x.x.x-py3-none-any.whlNavigate to the
examplefolder and use the following command to run tests:shellcd example python example_program_name (e.g., python arm/get_version.py)When running examples, the host computer must be connected to the robot network.