Using mujoco to report an error: missing path to your environment variable
Question:
Recently, you want to use pycharm to run the server program in the local server environment. Follow https://www.jb51.net/article/195691.htm After step configuration, try running Import mujoco_Py
, error reported:
Missing path to your environment variable.
Current values LD_LIBRARY_PATH=
Please add following line to .bashrc:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mujoco200/bin
But I’ve added environment variables to ~ /. Bashrc
Solution:
Finally, the error reporting is solved by manually adding environment variables for the current operating environment:
In the menu bar -> Run -> Edit Configurations -> Add the corresponding environment variables to environment variables
Name | Value |
---|---|
LD_ LIBRARY_ PATH | $LD_ LIBRARY_ PATH:/root/.mujoco/mujoco200/bin |
Read More:
- ERROR: Failed building wheel for mujoco-py [How to Solve]
- [Solved] CUDA unknown error – this may be due to an incorrectly set up environment
- [Solved] yolo Error: IndexError: invalid index to scalar variable.
- Tensorflow: Common Usage of tf.get_variable_scope()
- RuntimeError: Invalid DISPLAY variable [How to Solve]
- Jupyter notebook Failed to Switch to the Virual Environment: DLL load failed python.exe could not find the entry
- [Solved] Python Error: local variable ‘var‘ referenced before assignment
- Python: How to Use os.path.join()
- [Solved] Failed environment install leads to “unable to create process using“ error
- Failed to Create New Environment Error: Collecting package metadata (current_repodata.json): failed.
- [Solved] ERROR: URL ‘s3://‘ is supported but requires these missing dependencies: [‘s3fs‘]. To install dvc wi
- Python 3 uses the relative path import module
- [Solved] RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place
- How to Solve pycharm terminal Failed to switch to virtual environment
- Python environment error, bad interpreter: there is no file or directory
- [Solved] pip Install Error: Missing dependencies for SOCKS support
- [Solved] TypeError: __init__() missing 1 required positional argument: ‘on_delete’
- [Solved] RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation
- Python traverses all files under the specified path and retrieves them according to the time interval
- [Solved] ValueError: Connection error, and we cannot find the requested files in the cached path…