import sys sys.real_prefix = sys.prefix sys.prefix = sys.exec_prefix = '/home/ece/ros_ws/install/my_pkg'