Skip to content

1.3 Installation

Environment Setup

  • Download the Python environment. It is recommended to use Conda to configure the environment. Download and install the latest Miniforge software or Miniconda software for your current system.
  • After installation, launch Miniforge Prompt and enter the following command to initialize conda:

    shell
    conda init
  • After installation, launch Miniforge Prompt or your system terminal and enter the following command to create a new Python environment:

    shell
    conda create -n agilesdk python=3.10
  • Enter the following command to activate the newly created environment:

    shell
    conda activate agilesdk
    • If installing the Conda environment is inconvenient, you can use pip to 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 myenv/bin/activate
  • Enter the cd command to navigate to the extracted directory and use the following command to install the required Python packages:

    shell
    cd extracted_package_directory
    pip install -r requirements.txt
  • If pip installation fails, open requirements.txt and use conda to install each package:

    shell
    conda 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 agilesdk environment.

  • 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.x with the current SDK version number:

    shell
    pip install Agilebot.SDK.A-x.x.x-py3-none-any.whl
  • Navigate to the example folder and use the following command to run tests:

    shell
    cd 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.