04-20-2022, 03:30 AM
If you only have one python installation (installed with RoboDK) in your computer it is as simple as writing:
If you have more than one installation you can temporarily add the libraries it to your path with something like this
然而,它可能是easier to change the RoboDK python interpreter by going to Tools ➜ Options and in the Python tab changing the option of Python interpreter to your prefered python path.
You can install the Robodk API by runnning pip install robodk in a terminal
Code:
import pyrealsense2, opencv, detecto, tensorflow , numpy, and matplotlib
If you have more than one installation you can temporarily add the libraries it to your path with something like this
Code:
import sys
sys.path.append(module_path) #you need to know where your module is located.
然而,它可能是easier to change the RoboDK python interpreter by going to Tools ➜ Options and in the Python tab changing the option of Python interpreter to your prefered python path.
You can install the Robodk API by runnning pip install robodk in a terminal