Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import Python libraries in RoboDK
#2
If you only have one python installation (installed with RoboDK) in your computer it is as simple as writing:
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


Messages In This Thread
Import Python libraries in RoboDK - bylschantz- 04-20-2022, 01:08 AM
RE: Import Python libraries in RoboDK - byAlex- 04-20-2022, 03:30 AM



Users browsing this thread:
1 Guest(s)