Virtual env run .py , poor experience in importing PYTHONPATH. Do you have a detailed tutorial?

I use “conda env create -f environment.yml;conda activate isaac-sim” created the virtual env.

cd /home/lin/.local/share/ov/pkg/isaac_sim-2022.2.1

new standalone_examples/test/arm.py file, the code as follow:

from omni.isaac.examples.base_sample import BaseSample
# This extension has franka related tasks and controllers as well
from omni.isaac.franka import Franka
from omni.isaac.core.objects import DynamicCuboid
import numpy as np


class HelloWorld(BaseSample):
    def __init__(self) -> None:
        super().__init__()
        return

    def setup_scene(self):
        world = self.get_world()
        world.scene.add_default_ground_plane()
        # Robot specific class that provides extra functionalities
        # such as having gripper and end_effector instances.
        franka = world.scene.add(Franka(prim_path="/World/Fancy_Franka", name="fancy_franka"))
        # add a cube for franka to pick up
        world.scene.add(
            DynamicCuboid(
                prim_path="/World/random_cube",
                name="fancy_cube",
                position=np.array([0.3, 0.3, 0.3]),
                scale=np.array([0.0515, 0.0515, 0.0515]),
                color=np.array([0, 0, 1.0]),
            )
        )

I run python standalone_examples/test/arm.py ,but error as follow?

  1. from omni.isaac.examples.base_sample import BaseSample
    ModuleNotFoundError: No module named ‘omni’

  2. from omni.isaac.core import World
    

ModuleNotFoundError: No module named ‘omni.isaac.core’

  1. from . import _usd
    ImportError: libusd.so: cannot open shared object file: No such file or directory

Is there a shortcut to import Python Path and run it?

poor experience in importing PYTHONPATH

I hope the official can provide a detailed case, and if it is convenient, a video case can be provided so that consumers can better enjoy isaac, rather than wasting time on environmental configuration. Thanks very much.

I test "./python.sh extension_examples/hello_world/hello_world.py " , error as follow:

Hi @904798869 - Have you referred this document? 1. Hello World — Omniverse Robotics documentation