Learn how to run a sample app in Python.
- Precondition
- Before getting started you may want to install an IDE (Integrated Development Environment).
The RapidCode API is designed to be compatible with any development environment.
We recommend the following IDEs based on programming language:
Our guides typically assume these IDEs, but the general steps provided should be applicable to any IDE you choose.
🔹 Get started with Python
- Note
- Contact tech@.nosp@m.robo.nosp@m.ticsy.nosp@m.s.co.nosp@m.m if you need support for a specific Python version.
- Install a compatible version of Python.
https://www.python.org/downloads/windows/ Currently, only Python 3.10.X is supported.
- Uninstall other Python versions (optional but recommended) If newer incompatible Python versions are installed you will have to manage which Python version you are launching RapidCode Python programs with.
- Check your Python version
py --version
![Alt text](https://support.roboticsys.com/assets/image%20(462).png)
- Install Numpy dependency
pip install numpy
https://numpy.org/install/ (This common math module is used when converting between Python and C++ array method parameters)
- Run one of the sample apps that come pre-installed. Navigate to
C:\RSI\10.X.X\examples\python
- Launch a terminal in this directory
- Execute
py HelloRapidCode.py
![Image](https://support.roboticsys.com/assets/image%20(460).png)
🔹 For your own projects be sure to include critical directories
os.add_dll_directory("c:\\Program Files (x86)\\INtime\\bin")
sys.path.append("C:\RSI\10.X.X\")
🔹 See Sample App page for more details
Link