myenvの作成
まずは、現在のanaconda環境にインストールされている”python”のバージョンを確認
1 2 3 4 5 6 7 8 9 10 11 12 |
D:\>conda list python # packages in environment at C:\ProgramData\Anaconda3: # # Name Version Build Channel ipython 7.15.0 py37_0 ipython_genutils 0.2.0 py37_0 msgpack-python 1.0.0 py37h74a9793_1 python 3.7.7 h81c818b_4 python-dateutil 2.8.1 py_0 python-jsonrpc-server 0.3.4 py_0 python-language-server 0.31.9 py37_0 python-libarchive-c 2.9 py_0 |
アップデートを確認すると
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
D:\>conda update -n base conda Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: C:\ProgramData\Anaconda3 added / updated specs: - conda The following packages will be downloaded: package | build ---------------------------|----------------- blosc-1.19.0 | h7bd577a_0 141 KB certifi-2020.6.20 | py37_0 156 KB dask-2.19.0 | py_0 15 KB dask-core-2.19.0 | py_0 594 KB distributed-2.19.0 | py37_0 1018 KB flake8-3.8.3 | py_0 134 KB freetype-2.10.2 | hd328e21_0 470 KB gevent-20.6.2 | py37he774522_0 1.3 MB keyring-21.2.1 | py37_0 75 KB libarchive-3.4.2 | h5e25573_0 1.7 MB libsodium-1.0.18 | h62dcd97_0 477 KB libtiff-4.1.0 | h56a325e_1 739 KB lz4-c-1.9.2 | h62dcd97_0 230 KB matplotlib-3.2.2 | 0 22 KB matplotlib-base-3.2.2 | py37h64f37c6_0 5.4 MB nltk-3.5 | py_0 976 KB numpy-1.18.5 | py37h6530119_0 5 KB numpy-base-1.18.5 | py37hc3f5095_0 3.8 MB pandas-1.0.5 | py37h47e9c7a_0 6.9 MB pandoc-2.9.2.1 | 0 19.7 MB pydocstyle-5.0.2 | py_0 37 KB pynacl-1.4.0 | py37h62dcd97_0 1.2 MB pyyaml-5.3.1 | py37he774522_1 154 KB pyzmq-19.0.1 | py37ha925a31_1 407 KB qtconsole-4.7.5 | py_0 96 KB regex-2020.5.14 | py37he774522_0 307 KB requests-2.24.0 | py_0 56 KB ruamel_yaml-0.15.87 | py37he774522_1 260 KB scikit-learn-0.23.1 | py37h25d0782_0 4.6 MB scipy-1.5.0 | py37h9439919_0 11.8 MB setuptools-47.3.1 | py37_0 531 KB snappy-1.1.8 | h33f27b4_0 80 KB sphinx-3.1.1 | py_0 1.1 MB sphinxcontrib-websupport-1.2.2| py_0 36 KB sqlite-3.32.3 | h2a8f88b_0 802 KB threadpoolctl-2.1.0 | pyh5ca1d4c_0 17 KB tk-8.6.10 | he774522_0 2.7 MB toml-0.10.1 | py_0 20 KB tqdm-4.46.1 | py_0 60 KB typing_extensions-3.7.4.2 | py_0 27 KB yaml-0.2.5 | he774522_0 62 KB yapf-0.29.0 | py_0 124 KB zeromq-4.3.2 | ha925a31_2 4.2 MB zope-1.0 | py37_1 4 KB zope.event-4.4 | py37_0 10 KB zope.interface-4.7.1 | py37he774522_0 206 KB zstd-1.4.4 | ha9fde0e_3 435 KB ------------------------------------------------------------ Total: 72.8 MB The following NEW packages will be INSTALLED: regex pkgs/main/win-64::regex-2020.5.14-py37he774522_0 threadpoolctl pkgs/main/noarch::threadpoolctl-2.1.0-pyh5ca1d4c_0 zope pkgs/main/win-64::zope-1.0-py37_1 zope.event pkgs/main/win-64::zope.event-4.4-py37_0 zope.interface pkgs/main/win-64::zope.interface-4.7.1-py37he774522_0 The following packages will be UPDATED: blosc 1.16.3-h7bd577a_0 --> 1.19.0-h7bd577a_0 certifi 2020.4.5.2-py37_0 --> 2020.6.20-py37_0 dask 2.18.1-py_0 --> 2.19.0-py_0 dask-core 2.18.1-py_0 --> 2.19.0-py_0 distributed 2.18.0-py37_0 --> 2.19.0-py37_0 flake8 3.8.2-py_0 --> 3.8.3-py_0 freetype 2.9.1-ha9979f8_1 --> 2.10.2-hd328e21_0 gevent 1.4.0-py37he774522_0 --> 20.6.2-py37he774522_0 keyring 21.1.1-py37_2 --> 21.2.1-py37_0 libarchive 3.3.3-h0643e63_5 --> 3.4.2-h5e25573_0 libsodium 1.0.16-h9d3ae62_0 --> 1.0.18-h62dcd97_0 libtiff 4.1.0-h56a325e_0 --> 4.1.0-h56a325e_1 lz4-c 1.8.1.2-h2fa13f4_0 --> 1.9.2-h62dcd97_0 matplotlib 3.2.1-0 --> 3.2.2-0 matplotlib-base 3.2.1-py37h64f37c6_0 --> 3.2.2-py37h64f37c6_0 nltk pkgs/main/win-64::nltk-3.4.5-py37_0 --> pkgs/main/noarch::nltk-3.5-py_0 numpy 1.18.1-py37h93ca92e_0 --> 1.18.5-py37h6530119_0 numpy-base 1.18.1-py37hc3f5095_1 --> 1.18.5-py37hc3f5095_0 pandas 1.0.4-py37h47e9c7a_0 --> 1.0.5-py37h47e9c7a_0 pandoc 2.2.3.2-0 --> 2.9.2.1-0 pydocstyle 4.0.1-py_0 --> 5.0.2-py_0 pynacl 1.3.0-py37h62dcd97_0 --> 1.4.0-py37h62dcd97_0 pyyaml 5.3.1-py37he774522_0 --> 5.3.1-py37he774522_1 pyzmq 18.1.1-py37ha925a31_0 --> 19.0.1-py37ha925a31_1 qtconsole 4.7.4-py_0 --> 4.7.5-py_0 requests pkgs/main/win-64::requests-2.23.0-py3~ --> pkgs/main/noarch::requests-2.24.0-py_0 ruamel_yaml 0.15.87-py37he774522_0 --> 0.15.87-py37he774522_1 scikit-learn 0.22.1-py37h6288b17_0 --> 0.23.1-py37h25d0782_0 scipy 1.4.1-py37h9439919_0 --> 1.5.0-py37h9439919_0 setuptools 47.3.0-py37_0 --> 47.3.1-py37_0 snappy 1.1.7-h777316e_3 --> 1.1.8-h33f27b4_0 sphinx 3.0.4-py_0 --> 3.1.1-py_0 sphinxcontrib-web~ 1.2.1-py_0 --> 1.2.2-py_0 sqlite 3.31.1-h2a8f88b_1 --> 3.32.3-h2a8f88b_0 tk 8.6.8-hfa6e2cd_0 --> 8.6.10-he774522_0 toml pkgs/main/win-64::toml-0.10.0-py37h28~ --> pkgs/main/noarch::toml-0.10.1-py_0 tqdm 4.46.0-py_0 --> 4.46.1-py_0 typing_extensions pkgs/main/win-64::typing_extensions-3~ --> pkgs/main/noarch::typing_extensions-3.7.4.2-py_0 yaml 0.1.7-hc54c509_2 --> 0.2.5-he774522_0 yapf 0.28.0-py_0 --> 0.29.0-py_0 zeromq 4.3.1-h33f27b4_3 --> 4.3.2-ha925a31_2 zstd 1.3.7-h508b16e_0 --> 1.4.4-ha9fde0e_3 Proceed ([y]/n)? |
“condo update –all”とすると
1 2 3 4 5 |
D:\>conda update --all Collecting package metadata (current_repodata.json): done Solving environment: done # All requested packages already installed. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
D:\>conda create -n myenv python=3.7 Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: C:\Users\aid2yk\AppData\Local\conda\conda\envs\myenv added / updated specs: - python=3.7 The following packages will be downloaded: package | build ---------------------------|----------------- zlib-1.2.11 | h62dcd97_4 113 KB ------------------------------------------------------------ Total: 113 KB The following NEW packages will be INSTALLED: ca-certificates pkgs/main/win-64::ca-certificates-2020.1.1-0 certifi pkgs/main/win-64::certifi-2020.6.20-py37_0 openssl pkgs/main/win-64::openssl-1.1.1g-he774522_0 pip pkgs/main/win-64::pip-20.1.1-py37_1 python pkgs/main/win-64::python-3.7.7-h81c818b_4 setuptools pkgs/main/win-64::setuptools-47.3.1-py37_0 sqlite pkgs/main/win-64::sqlite-3.32.3-h2a8f88b_0 vc pkgs/main/win-64::vc-14.1-h0510ff6_4 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.16.27012-hf0eaf9b_2 wheel pkgs/main/win-64::wheel-0.34.2-py37_0 wincertstore pkgs/main/win-64::wincertstore-0.2-py37_0 zlib pkgs/main/win-64::zlib-1.2.11-h62dcd97_4 Proceed ([y]/n)? |
よくは、分かりませんがAnacondaには既にpyqt5が内包されているらしく、condaからpyqt5をインストールすることができません。
そのため、pyqt5はpipを使用してインストールします。
1 2 3 4 5 6 7 8 |
(myenv) D:\>pip install -U pyqt5 Collecting pyqt5 Using cached PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl (64.5 MB) Collecting PyQt5-sip<13,>=12.8 Downloading PyQt5_sip-12.8.0-cp37-cp37m-win_amd64.whl (62 kB) |████████████████████████████████| 62 kB 338 kB/s Installing collected packages: PyQt5-sip, pyqt5 Successfully installed PyQt5-sip-12.8.0 pyqt5-5.15.0 |
最近のコメント