{"id":287,"date":"2020-06-20T11:18:19","date_gmt":"2020-06-20T02:18:19","guid":{"rendered":"https:\/\/shibaura-it.tokyo\/it-solution\/?p=287"},"modified":"2020-06-22T20:33:21","modified_gmt":"2020-06-22T11:33:21","slug":"pyqt5-on-anaconda","status":"publish","type":"post","link":"https:\/\/shibaura-it.tokyo\/it-solution\/pyqt5-on-anaconda\/","title":{"rendered":"PyQt5 on Anaconda"},"content":{"rendered":"<p>Anaconda \u3067\u4f5c\u6210\u3057\u305f\u3001Python3.7\u306e\u4eee\u60f3\u74b0\u5883\u306bPyQt5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u304c\u8d77\u3053\u308a\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305a\u306f\u3001\u901a\u5e38\u306e\u624b\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068&#8230;<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\Python&gt;conda install pyqt5\r\nCollecting package metadata (current_repodata.json): done\r\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\r\nCollecting package metadata (repodata.json): done\r\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\r\n\r\nPackagesNotFoundError: The following packages are not available from current channels:\r\n\r\n  - pyqt5\r\n\r\nCurrent channels:\r\n\r\n  - https:\/\/repo.anaconda.com\/pkgs\/main\/win-64\r\n  - https:\/\/repo.anaconda.com\/pkgs\/main\/noarch\r\n  - https:\/\/repo.anaconda.com\/pkgs\/r\/win-64\r\n  - https:\/\/repo.anaconda.com\/pkgs\/r\/noarch\r\n  - https:\/\/repo.anaconda.com\/pkgs\/msys2\/win-64\r\n  - https:\/\/repo.anaconda.com\/pkgs\/msys2\/noarch\r\n\r\nTo search for alternate channels that may provide the conda package you're\r\nlooking for, navigate to\r\n\r\n    https:\/\/anaconda.org\r\n\r\nand use the search bar at the top of the page.<\/pre>\n<p>\u3068\u306a\u308a\u3001\u201d\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u201d\u65e8\u306e\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&#8220;anaconda search -t Honda pyqt5&#8243;\u3068\u3059\u308b\u3068\u3001anaconda\u306epyqt5\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001Windows\u74b0\u5883\u306e\u5834\u5408\u306f&#8221;bpentz\/pyqt5&#8243;\u3092<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\Python&gt;anaconda search -t conda pyqt5\r\nUsing Anaconda API: https:\/\/api.anaconda.org\r\nPackages:\r\n     Name                      |  Version | Package Types   | Platforms       | Builds\r\n     ------------------------- |   ------ | --------------- | --------------- | ----------\r\n     asmeurer\/pyqt5            |    5.3.2 | conda           | osx-64          | py27_0, py33_0, py26_0, py34_0\r\n     astrofrog\/pyqt5           |    5.5.0 | conda           | linux-64        | py34_0, py35_0, py27_0\r\n     bpentz\/pyqt5              |      5.6 | conda           | win-64          | py35_0\r\n     dmazzella\/pyqt5           |    5.3.1 | conda           | osx-64          | py34_0\r\n     dsdale24\/pyqt5            |    5.3.2 | conda           | linux-64, osx-64, win-64 | py27_0, py34_0\r\n     dtasev\/pyqt5              |   5.13.2 | conda           | linux-64        | 0\r\n     ebenolson\/pyqt5           |    5.5.0 | conda           | linux-64        | 0, py34_0\r\n     ericdill\/pyqt5            |    5.4.1 | conda           | linux-64        | py27_0\r\n     hadim\/pyqt5               |    5.4.1 | conda           | linux-64        | py34_0\r\n     inso\/pyqt5                |      5.6 | conda           | linux-64, win-32, win-64 | py35_0, py34_0\r\n     ipa\/pyqt5                 |    5.5.0 | conda           | linux-armv6l, win-64 | py27_0\r\n     jdreaver\/pyqt5            |    5.4.1 | conda           | linux-64        | py34_0\r\n     m-labs\/pyqt5              |          | conda           | linux-64, win-32, win-64 | py35_0\r\n     mmcauliffe\/pyqt5          |    5.5.1 | conda           | linux-64, win-64, osx-64 | py27_0, py35_0, py34_0\r\n     nicoddemus\/pyqt5          |    5.4.1 | conda           | linux-64        | py34_0, py27_0\r\n     nmearl\/pyqt5              |    5.5.0 | conda           | linux-64, osx-64 | py35_0, py27_0\r\n     tballance\/pyqt5           |    5.4.1 | conda           | linux-armv7l    | py35_0\r\nFound 17 packages\r\n\r\nRun 'anaconda show &lt;USER\/PACKAGE&gt;' to get installation details<\/pre>\n<p>\u306a\u306e\u3067\u3001<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\Python&gt;anaconda show bpentz\/pyqt5\r\nUsing Anaconda API: https:\/\/api.anaconda.org\r\nName:    pyqt5\r\nSummary:\r\nAccess:  public\r\nPackage Types:  conda\r\nVersions:\r\n   + 5.6\r\n\r\nTo install this package with conda run:\r\n     conda install --channel https:\/\/conda.anaconda.org\/bpentz pyqt5<\/pre>\n<p>\u3053\u3053\u3067\u3001\u4e0a\u8a18\u306e\u60c5\u5831\u306b\u57fa\u3065\u3044\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3088\u3046\u3068\u3059\u308b\u3068&#8230;<\/p>\n<pre class=\"lang:batch decode:true \">D:\\Python&gt;conda install --channel https:\/\/conda.anaconda.org\/bpentz pyqt5\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: failed with initial frozen solve. Retrying with flexible solve.\r\nSolving environment: \\\r\nFound conflicts! Looking for incompatible packages.\r\nThis can take several minutes.  Press CTRL-C to abort.\r\nfailed\r\n\r\nUnsatisfiableError: The following specifications were found\r\nto be incompatible with the existing python installation in your environment:\r\n\r\nSpecifications:\r\n\r\n  - pyqt5 -&gt; python=3.5\r\n\r\nYour python: python=3.8\r\n\r\nIf python is on the left-most side of the chain, that's the version you've asked for.\r\nWhen python appears to the right, that indicates that the thing on the left is somehow\r\nnot available for the python version you are constrained to. Note that conda will not\r\nchange your python version to a different minor version unless you explicitly specify\r\nthat.<\/pre>\n<p>\u3055\u3089\u306b\u3001\u30cd\u30c3\u30c8\u3092\u691c\u7d22\u3059\u308b\u3068\u3053\u306e\u69d8\u306a\u60c5\u5831\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/56451682\/pyqt5-and-anaconda-modulenotfounderror-no-module-named-pyqt5\">https:\/\/stackoverflow.com\/questions\/56451682\/pyqt5-and-anaconda-modulenotfounderror-no-module-named-pyqt5<\/a><\/p>\n<p>\u3088\u3046\u306f\u3001Anaconda\u306b\u3088\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u306f\u306a\u304f\u3001PIP\u3092\u4f7f\u3063\u3066\u3001pyqt5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3057\u304b\u306a\u3044\u69d8\u3067\u3059\u3002<br \/>\nconda\u306b\u3088\u308b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u3001pip\u306b\u3088\u308b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u201d\u6df7\u305c\u308b\u306a\u5371\u967a\uff01\uff01\u201d\u306a\u306f\u305a\u3067\u3001\u5fc3\u914d\u306a\u306e\u3067\u3001\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305a\u306f\u3001&#8221;python -V&#8221;\u3067\u4eee\u60f3\u74b0\u5883\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bPython\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\&gt;python -V\r\nPython 3.8.3<\/pre>\n<p>\u7d9a\u3044\u3066\u3001&#8221;python -m pip -V&#8221;\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bpip\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\&gt;python -m pip -V\r\npip 20.1.1 from C:\\Users\\\u30e6\u30fc\u30b6\u540d\\AppData\\Local\\conda\\conda\\envs\\myenv\\lib\\site-packages\\pip (python 3.8)<\/pre>\n<p>\u3055\u3089\u306b\u3001&#8221;python -m pip list&#8221;\u3067\u3001pip\u306b\u3088\u308a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30ea\u30b9\u30c8\u4e2d\u306b\u3001&#8221;pyqt5&#8243;\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001pip\u306b\u3088\u308bpyqt5\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\&gt;python -m pip list\r\nPackage      Version\r\n------------ -------------------\r\ncertifi      2020.4.5.2\r\npip          20.1.1\r\nsetuptools   47.3.0.post20200616\r\nwheel        0.34.2\r\nwincertstore 0.2<\/pre>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001&#8221;python -m pip install pyqt5&#8243;\u3068\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u3001pip\u306b\u3088\u308apyqt5\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\&gt;python -m pip install pyqt5\r\nCollecting pyqt5\r\n  Using cached PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl (64.5 MB)\r\nCollecting PyQt5-sip&lt;13,&gt;=12.8\r\n  Using cached PyQt5_sip-12.8.0-cp38-cp38-win_amd64.whl (63 kB)\r\nInstalling collected packages: PyQt5-sip, pyqt5\r\nSuccessfully installed PyQt5-sip-12.8.0 pyqt5-5.15.0<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c&#8221;python -m pip show pyqt5&#8243;\u306b\u3088\u308a\u3001pyqt5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u53ca\u3073\u60c5\u5831\u306e\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:batch decode:true \">(myenv) D:\\&gt;python -m pip show pyqt5\r\nName: PyQt5\r\nVersion: 5.15.0\r\nSummary: Python bindings for the Qt cross platform application toolkit\r\nHome-page: https:\/\/www.riverbankcomputing.com\/software\/pyqt\/\r\nAuthor: Riverbank Computing Limited\r\nAuthor-email: info@riverbankcomputing.com\r\nLicense: GPL v3\r\nLocation: c:\\users\\\u30e6\u30fc\u30b6\u540d\\appdata\\local\\conda\\conda\\envs\\myenv\\lib\\site-packages\r\nRequires: PyQt5-sip\r\nRequired-by:<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anaconda \u3067\u4f5c\u6210\u3057\u305f\u3001Python3.7\u306e\u4eee\u60f3\u74b0\u5883\u306bPyQt&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":288,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts\/287"}],"collection":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":7,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":296,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts\/287\/revisions\/296"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/media\/288"}],"wp:attachment":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}