<jupyter_start><jupyter_text>OpenAI Spinning Up 설치 by [decoderkurt]( https://github.com/decoderkurt/) 2022.01.21https://spinningup.openai.com/en/latest/user/installation.htmlinstalling-spinning-up<jupyter_code>!git clone https://github.com/decoderkurt/spinningup
%cd spinningup
!pip install -e .
!python -m spinup.run trpo --hid "[32,32]" --env LunarLander-v2 --exp_name installtest --gamma 0.999
!apt-get install -y \
    libgl1-mesa-dev \
    libgl1-mesa-glx \
    libglew-dev \
    libosmesa6-dev \
    software-properties-common

!apt-get install -y patchelf
!pip install free-mujoco-py
!python -m spinup.run trpo --hid "[32,32]" --env Walker2d-v2 --exp_name mujocotest
import sys
IN_COLAB = "google.colab" in sys.modules

if IN_COLAB:
    !apt install python-opengl
    !apt install ffmpeg
    !apt install xvfb
    !pip install pyvirtualdisplay
    from pyvirtualdisplay import Display
    
    # Start virtual display
    dis = Display(visible=0, size=(600, 400))
    dis.start()
!python -m spinup.run test_policy /content/spinningup/data/mujocotest/mujocotest_s0<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.03090909090909091, 'mean_word_length': 3.725321888412017, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '124619', 'license': 'MIT', 'n_tokens_mistral': 435, 'n_tokens_neox': 413, 'n_words': 89, 'path': '21/spinningup_trpo.ipynb', 'repo_name': 'bomishot/bomishot.github.io', 'size': '1100'}