{"id":67424,"date":"2021-02-08T13:28:48","date_gmt":"2021-02-08T04:28:48","guid":{"rendered":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/?p=67424"},"modified":"2021-02-08T14:02:09","modified_gmt":"2021-02-08T05:02:09","slug":"anaconda%e3%81%a7opengl","status":"publish","type":"post","link":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/2021\/02\/08\/67424\/","title":{"rendered":"Anaconda\u3067OpenGL"},"content":{"rendered":"<p>Windows\u4e0aAnaconda\u74b0\u5883\u3067OpenGL\u3092\u52d5\u304b\u3059\u3002<\/p>\n<p>\u4f5c\u696d\u7528\u306b\u65b0\u74b0\u5883\u3092\u69cb\u7bc9\uff08Anaconda3\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8d77\u52d5\u5f8c\u306b\u4e0b\u8a18\u3092\u5b9f\u884c\uff09<\/p>\n<div class=\"hl-surround\" style=\"height:280px;\"><div class=\"hl-main\"><pre>(base) C:\\Users\\oshiro&gt;conda create -n opengl\r\nCollecting package metadata (current_repodata.json): done\r\nSolving environment: done\r\n\r\n## Package Plan ##\r\n\r\n  environment location: C:\\Users\\oshiro\\Anaconda3\\envs\\opengl\r\n\r\n\r\n\r\nProceed ([y]\/n)? y\r\n\r\nPreparing transaction: done\r\nVerifying transaction: done\r\nExecuting transaction: done\r\n#\r\n# To activate this environment, use\r\n#\r\n#     $ conda activate opengl\r\n#\r\n# To deactivate an active environment, use\r\n#\r\n#     $ conda deactivate<\/pre><\/div><\/div>\n<p>\u74b0\u5883\u3092\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>(base) C:\\Users\\oshiro&gt;conda activate opengl\r\n\r\n(opengl) C:\\Users\\oshiro&gt;<\/pre><\/div><\/div>\n<p>PyOpenGL\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08Anaconda\u3067\u306e\u6307\u5b9a\u306f<a href=\"https:\/\/anaconda.org\/anaconda\/pyopengl\">pyopengl<\/a>\uff09<\/p>\n<div class=\"hl-surround\" style=\"height:280px;\"><div class=\"hl-main\"><pre>(opengl) C:\\Users\\oshiro&gt;conda install pyopengl\r\nCollecting package metadata (current_repodata.json): done\r\nSolving environment: done\r\n\r\n## Package Plan ##\r\n\r\n  environment location: C:\\Users\\oshiro\\Anaconda3\\envs\\opengl\r\n\r\n  added \/ updated specs:\r\n    - pyopengl\r\n\r\n\r\nThe following NEW packages will be INSTALLED:\r\n\r\n  ca-certificates    pkgs\/main\/win-64::ca-certificates-2021.1.19-haa95532_0\r\n  certifi            pkgs\/main\/win-64::certifi-2020.12.5-py38haa95532_0\r\n  openssl            pkgs\/main\/win-64::openssl-1.1.1i-h2bbff1b_0\r\n  pip                pkgs\/main\/win-64::pip-20.3.3-py38haa95532_0\r\n  pyopengl           pkgs\/main\/win-64::pyopengl-3.1.1a1-py38_0\r\n  python             pkgs\/main\/win-64::python-3.8.5-h5fd99cc_1\r\n  setuptools         pkgs\/main\/win-64::setuptools-52.0.0-py38haa95532_0\r\n  sqlite             pkgs\/main\/win-64::sqlite-3.33.0-h2a8f88b_0\r\n  vc                 pkgs\/main\/win-64::vc-14.2-h21ff451_1\r\n  vs2015_runtime     pkgs\/main\/win-64::vs2015_runtime-14.27.29016-h5e58377_2\r\n  wheel              pkgs\/main\/noarch::wheel-0.36.2-pyhd3eb1b0_0\r\n  wincertstore       pkgs\/main\/win-64::wincertstore-0.2-py38_0\r\n  zlib               pkgs\/main\/win-64::zlib-1.2.11-h62dcd97_4\r\n\r\n\r\nProceed ([y]\/n)? y\r\n\r\nPreparing transaction: done\r\nVerifying transaction: done\r\nExecuting transaction: done<\/pre><\/div><\/div>\n<p>\uff08<a href=\"https:\/\/pypi.org\/project\/PyOpenGL-Demo\/\">PyOpenGL-Demo<\/a>\u3082\u3042\u308b\u304c\u3001\u3053\u3061\u3089\u306fconda\u304b\u3089\u306f\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u307f\u305f\u3044\u3002pip\u3067\u74b0\u5883\u3092\u58ca\u3059\u3068\u56f0\u308b\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u4fdd\u7559\uff09<\/p>\n<p>Python\u306f3.8.5\u3068\u306a\u3063\u3066\u3044\u308b<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>(opengl) C:\\Users\\oshiro&gt;python -V\r\nPython 3.8.5<\/pre><\/div><\/div>\n<p>\u3055\u3089\u306b\u3001Spyder, Jupyter Notebook, NumPy, Matplotlib, Pillow \u7b49\u3005\u3092\u4f7f\u3044\u305f\u3044\u306e\u3067\u3001\u307e\u3068\u3081\u3066 anaconda \u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<div class=\"hl-surround\" style=\"height:280px;\"><div class=\"hl-main\"><pre>(opengl) C:\\Users\\oshiro&gt;conda install anaconda\r\nCollecting package metadata (current_repodata.json): done\r\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\r\nSolving environment: failed with repodata from current_repodata.json, will retry with next repodata source.\r\nCollecting package metadata (repodata.json): done\r\nSolving environment: done\r\n\r\n## Package Plan ##\r\n\r\n  environment location: C:\\Users\\oshiro\\Anaconda3\\envs\\opengl\r\n\r\n  added \/ updated specs:\r\n    - anaconda\r\n\r\n\r\nThe following packages will be downloaded:\r\n\r\n    package                    |            build\r\n    ---------------------------|-----------------\r\n    _anaconda_depends-2020.07  |           py38_0           6 KB\r\n    alabaster-0.7.12           |     pyhd3eb1b0_0          16 KB\r\n    anaconda-custom            |           py38_1          36 KB\r\n    anaconda-client-1.7.2      |           py38_0         172 KB\r\n    anaconda-project-0.9.1     |     pyhd3eb1b0_1         215 KB\r\n    argh-0.26.2                |           py38_0          36 KB\r\n    argon2-cffi-20.1.0         |   py38he774522_1          50 KB\r\n    astroid-2.4.2              |           py38_0         295 KB\r\n    astropy-4.2                |   py38h2bbff1b_0         5.9 MB\r\n    async_generator-1.10       |     pyhd3eb1b0_0          23 KB\r\n    backcall-0.2.0             |     pyhd3eb1b0_0          13 KB\r\n    bcrypt-3.2.0               |   py38he774522_0          44 KB\r\n    beautifulsoup4-4.9.3       |     pyha847dfd_0          86 KB\r\n    bitarray-1.6.3             |   py38h2bbff1b_1          95 KB\r\n    bkcharts-0.2               |           py38_0         133 KB\r\n    bleach-3.3.0               |     pyhd3eb1b0_0         113 KB\r\n    bokeh-2.2.3                |           py38_0         5.4 MB\r\n    boto-2.49.0                |           py38_0         1.2 MB\r\n    bottleneck-1.3.2           |   py38h2a96729_1         106 KB\r\n    brotlipy-0.7.0             |py38h2bbff1b_1003         412 KB\r\n    cffi-1.14.4                |   py38hcd4344a_0         245 KB\r\n    chardet-4.0.0              |py38haa95532_1003         211 KB\r\n    click-7.1.2                |     pyhd3eb1b0_0          64 KB\r\n    clyent-1.2.2               |           py38_1          20 KB\r\n    comtypes-1.1.8             |py38haa95532_1002         236 KB\r\n    cryptography-3.3.1         |   py38hcd4344a_0         610 KB\r\n    cycler-0.10.0              |           py38_0          14 KB\r\n    cython-0.29.21             |   py38hd77b12b_0         1.8 MB\r\n    cytoolz-0.11.0             |   py38he774522_0         289 KB\r\n    dask-2021.1.1              |     pyhd3eb1b0_0           5 KB\r\n    dask-core-2021.1.1         |     pyhd3eb1b0_0         636 KB\r\n    decorator-4.4.2            |     pyhd3eb1b0_0          12 KB\r\n    distributed-2021.1.1       |   py38haa95532_1         1.0 MB\r\n    docutils-0.16              |           py38_1         668 KB\r\n    entrypoints-0.3            |           py38_0          11 KB\r\n    fastcache-1.1.0            |   py38he774522_0          31 KB\r\n    filelock-3.0.12            |     pyhd3eb1b0_1          10 KB\r\n    flask-1.1.2                |     pyhd3eb1b0_0          70 KB\r\n    future-0.18.2              |           py38_1         649 KB\r\n    gevent-21.1.1              |   py38h2bbff1b_1         1.4 MB\r\n    glob2-0.7                  |     pyhd3eb1b0_0          12 KB\r\n    gmpy2-2.0.8                |   py38h7edee0f_3         145 KB\r\n    greenlet-1.0.0             |   py38hd77b12b_2          82 KB\r\n    h5py-2.10.0                |   py38h5e291fa_0         841 KB\r\n    idna-2.10                  |     pyhd3eb1b0_0          52 KB\r\n    imagecodecs-2021.1.11      |   py38h5da4933_1         5.9 MB\r\n    imagesize-1.2.0            |     pyhd3eb1b0_0           8 KB\r\n    iniconfig-1.1.1            |     pyhd3eb1b0_0           8 KB\r\n    ipykernel-5.3.4            |   py38h5ca1d4c_0         182 KB\r\n    ipython-7.20.0             |   py38hd4e2768_1        1012 KB\r\n    ipywidgets-7.6.3           |     pyhd3eb1b0_1         105 KB\r\n    isort-5.7.0                |     pyhd3eb1b0_0          82 KB\r\n    itsdangerous-1.1.0         |     pyhd3eb1b0_0          17 KB\r\n    jedi-0.17.2                |   py38haa95532_1         921 KB\r\n    jinja2-2.11.3              |     pyhd3eb1b0_0         101 KB\r\n    jupyter-1.0.0              |           py38_7           8 KB\r\n    jupyter_core-4.7.1         |   py38haa95532_0          85 KB\r\n    jupyterlab_widgets-1.0.0   |     pyhd3eb1b0_1         109 KB\r\n    keyring-22.0.1             |   py38haa95532_0          70 KB\r\n    kiwisolver-1.3.1           |   py38hd77b12b_0          52 KB\r\n    lazy-object-proxy-1.4.3    |   py38h2bbff1b_2          31 KB\r\n    lerc-2.2.1                 |       hd77b12b_0         114 KB\r\n    libdeflate-1.7             |       h2bbff1b_5          49 KB\r\n    llvmlite-0.34.0            |   py38h1a82afc_4        12.4 MB\r\n    locket-0.2.1               |   py38haa95532_1          10 KB\r\n    lxml-4.6.2                 |   py38h9b66d53_0         979 KB\r\n    lz4-c-1.9.3                |       h2bbff1b_0         131 KB\r\n    markupsafe-1.1.1           |   py38he774522_0          29 KB\r\n    matplotlib-base-3.3.2      |   py38hba9282a_0         5.1 MB\r\n    mccabe-0.6.1               |           py38_1          15 KB\r\n    menuinst-1.4.16            |   py38he774522_1         269 KB\r\n    mistune-0.8.4              |py38he774522_1000          55 KB\r\n    mkl-service-2.3.0          |   py38h196d8e1_0          47 KB\r\n    mkl_fft-1.2.0              |   py38h45dec08_0         122 KB\r\n    mkl_random-1.1.1           |   py38h47e9c7a_0         245 KB\r\n    mpmath-1.1.0               |           py38_0         777 KB\r\n    msgpack-python-1.0.2       |   py38h59b6b97_1          76 KB\r\n    multipledispatch-0.6.0     |           py38_0          23 KB\r\n    mypy_extensions-0.4.3      |           py38_0          10 KB\r\n    nbconvert-6.0.7            |           py38_0         500 KB\r\n    nbformat-5.1.2             |     pyhd3eb1b0_1          68 KB\r\n    notebook-6.2.0             |   py38haa95532_0         4.4 MB\r\n    numba-0.51.2               |   py38hf9181ef_1         3.1 MB\r\n    numexpr-2.7.2              |   py38hcbcaa1e_0         123 KB\r\n    numpy-1.19.2               |   py38hadc3359_0          22 KB\r\n    numpy-base-1.19.2          |   py38ha3acd2a_0         3.8 MB\r\n    olefile-0.46               |             py_0          33 KB\r\n    openpyxl-3.0.6             |     pyhd3eb1b0_0         159 KB\r\n    packaging-20.9             |     pyhd3eb1b0_0          37 KB\r\n    pandas-1.2.1               |   py38hf11a4ad_0         7.9 MB\r\n    pandocfilters-1.4.3        |   py38haa95532_1          14 KB\r\n    path-15.1.0                |   py38haa95532_0          37 KB\r\n    pathlib2-2.3.5             |   py38haa95532_2          62 KB\r\n    patsy-0.5.1                |           py38_0         274 KB\r\n    pep8-1.7.1                 |           py38_0          69 KB\r\n    pillow-8.1.0               |   py38h4fa10fc_0         664 KB\r\n    pkginfo-1.7.0              |   py38haa95532_0          60 KB\r\n    pluggy-0.13.1              |           py38_0          34 KB\r\n    ply-3.11                   |           py38_0          81 KB\r\n    psutil-5.8.0               |   py38h2bbff1b_1         350 KB\r\n    ptyprocess-0.7.0           |     pyhd3eb1b0_2          17 KB\r\n    py-lief-0.10.1             |   py38ha925a31_0         1.1 MB\r\n    pycosat-0.6.3              |   py38h2bbff1b_0          75 KB\r\n    pycurl-7.43.0.6            |   py38h7a1dbc1_0          65 KB\r\n    pyerfa-1.7.1.1             |   py38h2bbff1b_1         341 KB\r\n    pyflakes-2.2.0             |     pyhd3eb1b0_0          56 KB\r\n    pygments-2.7.4             |     pyhd3eb1b0_0         676 KB\r\n    pylint-2.6.0               |           py38_0         462 KB\r\n    pynacl-1.4.0               |   py38h62dcd97_1         1.2 MB\r\n    pyodbc-4.0.30              |   py38ha925a31_0          68 KB\r\n    pyparsing-2.4.7            |     pyhd3eb1b0_0          59 KB\r\n    pyqt-5.9.2                 |   py38ha925a31_4         3.2 MB\r\n    pyreadline-2.1             |           py38_1         145 KB\r\n    pyrsistent-0.17.3          |   py38he774522_0          92 KB\r\n    pysocks-1.7.1              |   py38haa95532_0          31 KB\r\n    pytables-3.6.1             |   py38ha5be198_0         1.1 MB\r\n    pytest-6.2.2               |   py38haa95532_2         458 KB\r\n    python-dateutil-2.8.1      |     pyhd3eb1b0_0         221 KB\r\n    python-libarchive-c-2.9    |     pyhd3eb1b0_0          46 KB\r\n    pytz-2021.1                |     pyhd3eb1b0_0         181 KB\r\n    pywavelets-1.1.1           |   py38he774522_2         3.4 MB\r\n    pywin32-227                |   py38he774522_1         5.6 MB\r\n    pywin32-ctypes-0.2.0       |        py38_1000          42 KB\r\n    pywinpty-0.5.7             |           py38_0          52 KB\r\n    pyyaml-5.4.1               |   py38h2bbff1b_1         151 KB\r\n    pyzmq-20.0.0               |   py38hd77b12b_1         405 KB\r\n    qtconsole-5.0.2            |     pyhd3eb1b0_0          97 KB\r\n    regex-2020.11.13           |   py38h2bbff1b_0         324 KB\r\n    rtree-0.9.4                |   py38h21ff451_1          49 KB\r\n    ruamel_yaml-0.15.87        |   py38he774522_1         264 KB\r\n    scikit-image-0.17.2        |   py38h1e1f486_0         8.9 MB\r\n    scikit-learn-0.23.2        |   py38h47e9c7a_0         4.7 MB\r\n    scipy-1.6.0                |   py38h14eb087_0        13.0 MB\r\n    simplegeneric-0.8.1        |           py38_2          10 KB\r\n    sip-4.19.13                |   py38ha925a31_0         262 KB\r\n    six-1.15.0                 |   py38haa95532_0          27 KB\r\n    snowballstemmer-2.1.0      |     pyhd3eb1b0_0          62 KB\r\n    sortedcollections-2.1.0    |     pyhd3eb1b0_0          12 KB\r\n    sphinx-3.4.3               |     pyhd3eb1b0_0         1.1 MB\r\n    sphinxcontrib-1.0          |           py38_1           4 KB\r\n    sphinxcontrib-applehelp-1.0.2|     pyhd3eb1b0_0          29 KB\r\n    sphinxcontrib-devhelp-1.0.2|     pyhd3eb1b0_0          23 KB\r\n    sphinxcontrib-htmlhelp-1.0.3|     pyhd3eb1b0_0          28 KB\r\n    sphinxcontrib-jsmath-1.0.1 |     pyhd3eb1b0_0           8 KB\r\n    sphinxcontrib-qthelp-1.0.3 |     pyhd3eb1b0_0          26 KB\r\n    sphinxcontrib-serializinghtml-1.1.4|     pyhd3eb1b0_0          24 KB\r\n    spyder-4.2.1               |   py38haa95532_1         5.7 MB\r\n    spyder-kernels-1.10.1      |   py38haa95532_0         100 KB\r\n    sqlalchemy-1.3.23          |   py38h2bbff1b_0         1.5 MB\r\n    statsmodels-0.12.1         |   py38h2bbff1b_0         8.2 MB\r\n    sympy-1.7.1                |   py38haa95532_0         8.8 MB\r\n    terminado-0.9.2            |   py38haa95532_0          26 KB\r\n    testpath-0.4.4             |     pyhd3eb1b0_0          85 KB\r\n    textdistance-4.2.1         |     pyhd3eb1b0_0          29 KB\r\n    tifffile-2021.1.14         |     pyhd3eb1b0_1         126 KB\r\n    toolz-0.11.1               |     pyhd3eb1b0_0          46 KB\r\n    tornado-6.1                |   py38h2bbff1b_0         612 KB\r\n    tqdm-4.56.0                |     pyhd3eb1b0_0          80 KB\r\n    traitlets-5.0.5            |     pyhd3eb1b0_0          81 KB\r\n    typed-ast-1.4.2            |   py38h2bbff1b_1         139 KB\r\n    typing_extensions-3.7.4.3  |     pyh06a4308_0          28 KB\r\n    ujson-4.0.2                |   py38hd77b12b_0          46 KB\r\n    unicodecsv-0.14.1          |           py38_0          28 KB\r\n    urllib3-1.26.3             |     pyhd3eb1b0_0         105 KB\r\n    watchdog-1.0.2             |   py38haa95532_1         104 KB\r\n    webencodings-0.5.1         |           py38_1          20 KB\r\n    werkzeug-1.0.1             |     pyhd3eb1b0_0         239 KB\r\n    widgetsnbextension-3.5.1   |           py38_0         863 KB\r\n    win_inet_pton-1.1.0        |   py38haa95532_0          35 KB\r\n    win_unicode_console-0.5    |           py38_0          34 KB\r\n    wrapt-1.11.2               |   py38he774522_0          46 KB\r\n    xlsxwriter-1.3.7           |     pyhd3eb1b0_0         105 KB\r\n    xlwings-0.22.0             |   py38haa95532_0         816 KB\r\n    xlwt-1.3.0                 |           py38_0         160 KB\r\n    zfp-0.5.5                  |       hd77b12b_4         134 KB\r\n    zict-2.0.0                 |     pyhd3eb1b0_0          10 KB\r\n    zope-1.0                   |           py38_1           5 KB\r\n    zope.event-4.5.0           |           py38_0         210 KB\r\n    zope.interface-5.2.0       |   py38h2bbff1b_0         307 KB\r\n    ------------------------------------------------------------\r\n                                           Total:       150.8 MB\r\n\r\nThe following NEW packages will be INSTALLED:\r\n\r\n  _anaconda_depends  pkgs\/main\/win-64::_anaconda_depends-2020.07-py38_0\r\n  alabaster          pkgs\/main\/noarch::alabaster-0.7.12-pyhd3eb1b0_0\r\n  anaconda           pkgs\/main\/win-64::anaconda-custom-py38_1\r\n  anaconda-client    pkgs\/main\/win-64::anaconda-client-1.7.2-py38_0\r\n  anaconda-project   pkgs\/main\/noarch::anaconda-project-0.9.1-pyhd3eb1b0_1\r\n\uff08\u7565\uff09\r\n\r\nProceed ([y]\/n)? y\r\n\r\n\r\nDownloading and Extracting Packages\r\nrtree-0.9.4          | 49 KB     | ####################### | 100%\r\npywin32-227          | 5.6 MB    | ####################### | 100%\r\n\uff08\u7565\uff09\r\nPreparing transaction: done\r\nVerifying transaction: done\r\nExecuting transaction: \r\n\uff08\u4e0b\u8a18\uff09\r\ndone<\/pre><\/div><\/div>\n<p>\u300cExtracting transaction:\u300d\u5f8c\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u300cDEBUG menuinst_win32:\u2026\u300d\u304c\u5b9f\u884c\u3055\u308c\u3066\u3001\u3053\u308c\u3067Windows\u30e1\u30cb\u30e5\u30fc\u5411\u3051\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>- DEBUG menuinst_win32:__init__(199): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\\Users\\oshiro\\Anaconda3\\envs\\opengl', env_name: 'opengl', mode: 'user', used_mode: 'user'\r\nDEBUG menuinst_win32:create(323): Shortcut cmd is %windir%\\System32\\cmd.exe, args are ['&quot;\/K&quot;', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\Scripts\\\\activate.bat', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl']\r\n\\ DEBUG menuinst_win32:__init__(199): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\\Users\\oshiro\\Anaconda3\\envs\\opengl', env_name: 'opengl', mode: 'user', used_mode: 'user'\r\nDEBUG menuinst_win32:create(323): Shortcut cmd is %windir%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe, args are ['-ExecutionPolicy', 'ByPass', '-NoExit', '-Command', '&quot;&amp; \\'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\shell\\\\condabin\\\\conda-hook.ps1\\' ; conda activate \\'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl\\' &quot;']\r\nDEBUG menuinst_win32:__init__(199): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\\Users\\oshiro\\Anaconda3\\envs\\opengl', env_name: 'opengl', mode: 'user', used_mode: 'user'\r\nDEBUG menuinst_win32:create(323): Shortcut cmd is C:\\Users\\oshiro\\Anaconda3\\python.exe, args are ['C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\cwp.py', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl\\\\python.exe', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl\\\\Scripts\\\\jupyter-notebook-script.py', '&quot;%USERPROFILE%\/&quot;']\r\n| DEBUG menuinst_win32:__init__(199): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\\Users\\oshiro\\Anaconda3\\envs\\opengl', env_name: 'opengl', mode: 'user', used_mode: 'user'\r\nDEBUG menuinst_win32:create(323): Shortcut cmd is C:\\Users\\oshiro\\Anaconda3\\pythonw.exe, args are ['C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\cwp.py', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl\\\\pythonw.exe', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl\\\\Scripts\\\\spyder-script.py']\r\nDEBUG menuinst_win32:create(323): Shortcut cmd is C:\\Users\\oshiro\\Anaconda3\\python.exe, args are ['C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\cwp.py', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl\\\\python.exe', 'C:\\\\Users\\\\oshiro\\\\Anaconda3\\\\envs\\\\opengl\\\\Scripts\\\\spyder-script.py', '--reset']<\/pre><\/div><\/div>\n<p>\uff08\u307e\u305f\u3001GLUT\u3067\u306f\u306a\u304f\u3001\u4eca\u3069\u304d\u3060\u3068<a href=\"https:\/\/www.glfw.org\/\">GLFW<\/a>\u3092\u4f7f\u3046\u307b\u3046\u304c\u3088\u3044\u3068\u306e\u89e3\u8aac\u3082\u898b\u3064\u304b\u3063\u3066\u3001\u3053\u3061\u3089\u3082<a href=\"https:\/\/anaconda.org\/conda-forge\/glfw\">conda-forge<\/a>\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3067\u304d\u305f\u3082\u306e\u306e\u3001Anaconda\u5074\u306ePython\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5408\u308f\u306a\u3044\u306e\u304b\u3001import\u3057\u3066\u3082\u300cModuleNotFoundError: No module named &#8216;glfw&#8217;\u300d\u7b49\u306e\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002\uff09<\/p>\n<p>\u5b9f\u969b\u306e\u5b9f\u884c\u306b\u306f FreeGLUT\u306e\u30d0\u30a4\u30ca\u30ea\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u3068 glutInit()\u306e\u6642\u70b9\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>(opengl) C:\\Users\\oshiro&gt;python opengl-sample.py\r\nTraceback (most recent call last):\r\n  File &quot;opengl-sample.py&quot;, line 6, in &lt;module&gt;\r\n    glutInit(sys.argv)\r\n  File &quot;C:\\Users\\oshiro\\Anaconda3\\envs\\opengl\\lib\\site-packages\\OpenGL\\GLUT\\special.py&quot;, line 333, in glutInit\r\n    _base_glutInit( ctypes.byref(count), holder )\r\n  File &quot;C:\\Users\\oshiro\\Anaconda3\\envs\\opengl\\lib\\site-packages\\OpenGL\\platform\\baseplatform.py&quot;, line 405, in __call__\r\n    raise error.NullFunctionError(\r\nOpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling<\/pre><\/div><\/div>\n<p>\u4e0b\u8a18\u30ea\u30f3\u30af\u304b\u3089\u3001MSVC\u7248\u3092\u5165\u624b\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.transmissionzero.co.uk\/software\/freeglut-devel\/\">freeglut Windows Development Libraries<br \/>\n<\/a><\/p>\n<ul>\n<li><a href=\"https:\/\/www.transmissionzero.co.uk\/files\/software\/development\/GLUT\/freeglut-MSVC.zip\">https:\/\/www.transmissionzero.co.uk\/files\/software\/development\/GLUT\/freeglut-MSVC.zip<br \/>\n<\/a><\/p>\n<ul>\n<li>\u2191\u4e0a\u8a18\u306e\u30ea\u30f3\u30af\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3001\u305d\u306e\u6642\u70b9\u3067\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3089\u3057\u3044\u3002\u3053\u3053\u3067\u306f\u3001freeglut-MSVC-3.0.0-2.mp.zip \u3068\u306a\u3063\u305f\u3002\n  <\/ul>\n<\/ul>\n<li><a href=\"http:\/\/freeglut.sourceforge.net\/\">The freeglut Project :: About<br \/>\n<\/a>\n<\/ul>\n<p>\u3053\u306e.zip\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3057\u3066\u3001bin\u5074\u306efreeglut\\bin\\x64\\freeglut.dll \u3092 C:\\Windows\\System32\\ \u3078\u30b3\u30d4\u30fc\uff08lib\u5074\u306efreeglut\\lib\\x64\\freeglut.lib\u3067\u306f\u306a\u3044\u306e\u3067\u6ce8\u610f\uff01\uff09\u3002<\/p>\n<p>\u2193.zip\u30d5\u30a1\u30a4\u30eb\u306efreeglut.dll\u3092<br \/>\n<a href=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122753-e1612755620830.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122753-e1612755620830.png\" alt=\"\" width=\"521\" height=\"148\" class=\"aligncenter size-full wp-image-67438\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122753-e1612755620830.png 521w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122753-e1612755620830-300x85.png 300w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122753-e1612755620830-150x43.png 150w\" sizes=\"(max-width: 521px) 100vw, 521px\" \/><\/a><br \/>\n\u2193C:\\Windows\\System32\u3078\u30b3\u30d4\u30fc<br \/>\n<a href=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122800-e1612755303514.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122800-e1612755303514.png\" alt=\"\" width=\"498\" height=\"462\" class=\"aligncenter size-full wp-image-67432\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122800-e1612755303514.png 498w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122800-e1612755303514-300x278.png 300w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208122800-e1612755303514-150x139.png 150w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3067\u3001\u4e0b\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30c6\u30a3\u30fc\u30dd\u30c3\u30c8\u3092\u8868\u793a\u3067\u304d\u308b\uff08<a href=\"https:\/\/github.com\/n-oshiro\/pyopengl-sample\/blob\/main\/opengl-sample.py\">opengl-sample.py<\/a>\uff09\u3002<\/p>\n<div class=\"hl-surround\" style=\"height:280px;\"><div class=\"hl-main\"><pre>import sys\r\nfrom OpenGL.GL import *\r\nfrom OpenGL.GLU import *\r\nfrom OpenGL.GLUT import *\r\n\r\ndef display(): # \u8868\u793a\u7528\r\n    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)\r\n    glMatrixMode(GL_MODELVIEW)\r\n\r\n    glLoadIdentity() # \u5909\u63db\u884c\u5217\u521d\u671f\u5316\r\n    gluLookAt(3.0, 4.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0) # \u30ab\u30e1\u30e9\u8a2d\u5b9a\r\n\r\n    glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, (0.8, 0.0, 0.0, 1.0)) # \u8272\u4ed8\u3051\r\n    #glutSolidSphere(1.0, 32, 32) # \u7403\uff08\u30b5\u30a4\u30ba\u3001\u5206\u5272\u6570, \u5206\u5272\u6570\uff09\r\n    #glutSolidTorus(0.25, 0.80, 32, 32) # \u30c8\u30fc\u30e9\u30b9\uff08\u30b5\u30a4\u30ba, \u5206\u5272\u6570, \u5206\u5272\u6570\uff09\r\n    glutSolidTeapot(1.0) # \u30c6\u30a3\u30fc\u30dd\u30c3\u30c8\uff08\u30b5\u30a4\u30ba\uff09\r\n\r\n    glFlush() # \u8868\u793a\u66f4\u65b0\r\n\r\ndef reshape(w, h): # \u518d\u63cf\u753b\u8a2d\u5b9a\r\n    glMatrixMode(GL_PROJECTION)\r\n    glLoadIdentity()\r\n    gluPerspective(30.0, 1.0*w\/h, 1.0, 100.0) # \u900f\u8996\u6295\u5f71\u8a2d\u5b9a\r\n\r\n# GLUT\u521d\u671f\u8a2d\u5b9a\r\nglutInit(sys.argv) # GLUT\u521d\u671f\u5316 \r\nglutInitWindowSize(300, 300) # \u8868\u793a\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u6307\u5b9a\r\nglutInitWindowPosition(100, 100) # \u8868\u793a\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4f4d\u7f6e\u6307\u5b9a\r\nglutCreateWindow(b&quot;Hello&quot;) # \u8868\u793a\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u751f\u6210\uff08\u30a6\u30a3\u30f3\u30c9\u30a6\u30bf\u30a4\u30c8\u30eb\u306b\u6307\u5b9a\u3059\u308b\u6587\u5b57\u5217\u6307\u5b9a\u306fb&quot;...&quot;\u3068\u3057\u306a\u3044\u3068\u30c0\u30e1\uff09\r\n\r\n# \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u6307\u5b9a\r\nglutDisplayFunc(display)\r\nglutReshapeFunc(reshape)\r\n\r\n# \uff13\u6b21\u5143\u8868\u793a\u8a2d\u5b9a\r\nglEnable(GL_DEPTH_TEST)\r\nglEnable(GL_LIGHTING)\r\nglEnable(GL_LIGHT0)\r\n\r\n# GLUT\u30a4\u30d9\u30f3\u30c8\u51e6\u7406\u306e\u958b\u59cb\uff08\u629c\u3051\u308b\u306b\u306f glutLeaveMainLoop()\uff09\r\nglutMainLoop()<\/pre><\/div><\/div>\n<p><a href=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208130132.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208130132.png\" alt=\"\" width=\"302\" height=\"332\" class=\"aligncenter size-full wp-image-67442\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208130132.png 302w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208130132-273x300.png 273w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2021\/02\/20210208130132-136x150.png 136w\" sizes=\"(max-width: 302px) 100vw, 302px\" \/><\/a><\/p>\n<p>GLUT\u306b\u6e21\u3059\u6587\u5b57\u5217\u306f b&#8221;&#8230;&#8221; \u6307\u5b9a\u3057\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002\u4f8b\u3048\u3070\u3001glutCreateWindow()\u306b\u6307\u5b9a\u3059\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u30bf\u30a4\u30c8\u30eb\u3092 &#8220;Hello&#8221; \u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3068\u4e0b\u8a18\u306e\u300c&lt;class &#8216;TypeError&#8217;&gt;: wrong type\u300d\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002\u30ad\u30fc\u5165\u529b\u3092\u30a4\u30d9\u30f3\u30c8\u3092\u6271\u3046\u969b\u306b\u3082\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u3092 b&#8221;\\x33&#8243; \u3068\u3057\u305f\u308a\u3001b&#8221;W&#8221; \u306b\u3057\u305f\u308a\u3057\u306a\u3044\u3068\u6b63\u3057\u304f\u8a8d\u8b58\u3067\u304d\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>(opengl) C:\\Users\\oshiro&gt;python opengl-sample.py\r\nTraceback (most recent call last):\r\n  File &quot;opengl-sample.py&quot;, line 32, in &lt;module&gt;\r\n    glutCreateWindow(&quot;Hello&quot;)\r\n  File &quot;C:\\Users\\oshiro\\Anaconda3\\envs\\opengl\\lib\\site-packages\\OpenGL\\GLUT\\special.py&quot;, line 73, in glutCreateWindow\r\n    return __glutCreateWindowWithExit(title, _exitfunc)\r\nctypes.ArgumentError: argument 1: &lt;class 'TypeError'&gt;: wrong type<\/pre><\/div><\/div>\n<p>\u305d\u308c\u304b\u3089\u3001Spyder\u4e0a\u3067GLUT\u3092\u52d5\u304b\u3059\u3068\u3001IPython\u3068\u306e\u517c\u306d\u5408\u3044\u306a\u306e\u304b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u624b\u9593\u306f\u639b\u304b\u308b\u304c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5225\u3067\u7528\u610f\u3057\u3066\u5b9f\u884c\u3057\u305f\u65b9\u304c\u30c7\u30d0\u30c3\u30b0\u306f\u3057\u3084\u3059\u3044\u3002<\/p>\n<p>\n<b>\u30ea\u30f3\u30af<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/qiita.com\/ousttrue\/items\/cf8cfbbfadf686b6c338\">PyOpenGL\u3057\u3066\u307f\u308b &#8211; Qiita<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/chuckischarles.hatenablog.com\/entry\/2020\/02\/25\/082832\">Python \u3067 OpenGL \u3092\u4f7f\u3063\u3066\u307f\u305f\u3044 &#8211; \u89e3\u6790\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u81ea\u52d5\u5316 blog<br \/>\n<\/a><\/p>\n<li><a href=\"https:\/\/tadaoyamaoka.hatenablog.com\/entry\/2017\/02\/28\/064625\">Windows\u306ePython\u3067OpenGL\u3092\u4f7f\u3046 &#8211; TadaoYamaoka\u306e\u65e5\u8a18<br \/>\n<\/a><\/p>\n<li><a href=\"https:\/\/nnamm.com\/blog\/4914\">\u3010Python3\u3011venv\u3067OpenCV\uff0fPyOpenGL\u74b0\u5883\u306e\u69cb\u7bc9\u65b9\u6cd5\uff082019\u5e742\u6708\u7248\uff09 | Takashi Q. Hanamura Photography<br \/>\n<\/a><\/p>\n<ul>\n<li><a href=\"https:\/\/nnamm.com\/blog\/1132\">Python\u306eOpenGL\u30e9\u30a4\u30d6\u30e9\u30ea\u300cPyOpenGL\u300d\u306fPython3\u7cfb\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u306d | Takashi Q. Hanamura Photography<br \/>\n<\/a>\n <\/ul>\n<li><a href=\"https:\/\/hawk-tech-blog.com\/python-opengl-install-pyopengl\/\">Python\u3067\u300cOpenGL\u300d\u3092\u5b66\u3076 \u300cPyOpenGL\u300d\u300cfreeglut\u300d\u306e\u74b0\u5883\u69cb\u7bc9\uff5c\u30bf\u30ab\u306e\u6280\u8853\u30d6\u30ed\u30b0<br \/>\n<\/a>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u4e0aAnaconda\u74b0\u5883\u3067OpenGL\u3092\u52d5\u304b\u3059\u3002 \u4f5c\u696d\u7528\u306b\u65b0\u74b0\u5883\u3092\u69cb\u7bc9\uff08Anaconda3\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8d77\u52d5\u5f8c\u306b\u4e0b\u8a18\u3092\u5b9f\u884c\uff09 (base) C:\\Users\\oshiro&gt;conda [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[436,463,433],"_links":{"self":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/67424"}],"collection":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/comments?post=67424"}],"version-history":[{"count":29,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/67424\/revisions"}],"predecessor-version":[{"id":67457,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/67424\/revisions\/67457"}],"wp:attachment":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/media?parent=67424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/categories?post=67424"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/tags?post=67424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}