好きこそものの上手なれ

他人から見れば、下手の横好きですが、そっと見守ってください。

PythonのWindowsダウンロード - おススメは Python3.7.9 (x64)

2023-05-25 Thu



おススメは Python3.7.9 (x64)
python-3.7.9-amd64.exe


インストールは
C:\Users\ユーザ\Python379にインストール。
Venvフォルダを作り、そこに仮想環境を作る。


C:\Users\HP-EliteBook\Python379\python -m venv py379


仮想環境py379のショートカットを作る。
リンク先を以下のようにする。
C:\Windows\System32\cmd.exe /k "C:\Users\HP-EliteBook\Python379\Venv\py379\scripts\activate"


pipを最新にする(2023-05-25時点  pip-23.1.2)
python -m pip install --upgrade pip


あとはお好きにモジュールをインストールする。
pip install -r requirements.txt


*
*
*


Collecting pyzmq==17.0.0 (from -r DeepReinforcementLearning\requirements.txt (line 36))
Downloading pyzmq-17.0.0.tar.gz (988 kB)
---------------------------------------- 988.2/988.2 kB 60.6 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error


× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in pyzmq setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '!=3.0*'
[end of output]


note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error


× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.


note: This error originates from a subprocess, and is likely not a problem with pip.



原因調査中!


(py379) pip install ipython
Successfully installed backcall-0.2.0 colorama-0.4.6 decorator-5.1.1 ipython-7.34.0 jedi-0.18.2 matplotlib-inline-0.1.6 parso-0.8.3 pickleshare-0.7.5 prompt-toolkit-3.0.38 pygments-2.15.1 traitlets-5.9.0 wcwidth-0.2.6


(py379) pip install numpy
Successfully installed numpy-1.21.6


(py379) pip install keras
Successfully installed keras-2.11.0


(py379) pip install tensorflow
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
となると、通信エラーなので、再度pipする。(通信状況が悪いと何度も起きるが再度pipする)


Successfully installed MarkupSafe-2.1.2 absl-py-1.4.0 astunparse-1.6.3 cachetools-5.3.0 certifi-2023.5.7 charset-normalizer-3.1.0 flatbuffers-23.5.9 gast-0.4.0 google-auth-2.18.1 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.54.2 h5py-3.8.0 idna-3.4 importlib-metadata-6.6.0 libclang-16.0.0 markdown-3.4.3 oauthlib-3.2.2 opt-einsum-3.3.0 packaging-23.1 protobuf-3.19.6 pyasn1-0.5.0 pyasn1-modules-0.3.0 requests-2.31.0 requests-oauthlib-1.3.1 rsa-4.9 six-1.16.0 tensorboard-2.11.2 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.11.0 tensorflow-estimator-2.11.0 tensorflow-intel-2.11.0 tensorflow-io-gcs-filesystem-0.31.0 termcolor-2.3.0 typing-extensions-4.6.2 urllib3-1.26.16 werkzeug-2.2.3 wheel-0.40.0 wrapt-1.15.0 zipp-3.15.0


(py379) pip install matplotlib
Successfully installed cycler-0.11.0 fonttools-4.38.0 kiwisolver-1.4.4 matplotlib-3.5.3 pillow-9.5.0 pyparsing-3.0.9 python-dateutil-2.8.2


(py379) pip install notebook
Successfully installed Send2Trash-1.8.2 anyio-3.6.2 argon2-cffi-21.3.0 argon2-cffi-bindings-21.2.0 attrs-23.1.0 beautifulsoup4-4.12.2 bleach-6.0.0 cffi-1.15.1 debugpy-1.6.7 defusedxml-0.7.1 entrypoints-0.4 fastjsonschema-2.17.1 importlib-resources-5.12.0 ipykernel-6.16.2 ipython-genutils-0.2.0 jinja2-3.1.2 jsonschema-4.17.3 jupyter-client-7.4.9 jupyter-core-4.12.0 jupyter-server-1.24.0 jupyterlab-pygments-0.2.2 mistune-2.0.5 nbclassic-1.0.0 nbclient-0.7.4 nbconvert-7.4.0 nbformat-5.8.0 nest-asyncio-1.5.6 notebook-6.5.4 notebook-shim-0.2.3 pandocfilters-1.5.0 pkgutil-resolve-name-1.3.10 prometheus-client-0.17.0 psutil-5.9.5 pycparser-2.21 pyrsistent-0.19.3 pywin32-306 pywinpty-2.0.10 pyzmq-25.0.2 sniffio-1.3.0 soupsieve-2.4.1 terminado-0.17.1 tinycss2-1.2.1 tornado-6.2 webencodings-0.5.1 websocket-client-1.5.2


(py379) pip install pandas
Successfully installed pandas-1.3.5 pytz-2023.3


再度
pip install -r requirements.txt


Collecting tensorboard==1.6.0 (from -r DeepReinforcementLearning\requirements.txt (line 40))
Downloading tensorboard-1.6.0-py3-none-any.whl (3.0 MB)
---------------------------------------- 3.0/3.0 MB 970.2 kB/s eta 0:00:00
ERROR: Ignored the following versions that require a different python version: 1.10.0 Requires-Python <3.12,>=3.8; 1.10.0rc1 Requires-Python <3.12,>=3.8; 1.10.0rc2 Requires-Python <3.12,>=3.8; 1.10.1 Requires-Python <3.12,>=3.8; 1.22.0 Requires-Python >=3.8; 1.22.1 Requires-Python >=3.8; 1.22.2 Requires-Python >=3.8; 1.22.3 Requires-Python >=3.8; 1.22.4 Requires-Python >=3.8; 1.23.0 Requires-Python >=3.8; 1.23.0rc1 Requires-Python >=3.8; 1.23.0rc2 Requires-Python >=3.8; 1.23.0rc3 Requires-Python >=3.8; 1.23.1 Requires-Python >=3.8; 1.23.2 Requires-Python >=3.8; 1.23.3 Requires-Python >=3.8; 1.23.4 Requires-Python >=3.8; 1.23.5 Requires-Python >=3.8; 1.24.0 Requires-Python >=3.8; 1.24.0rc1 Requires-Python >=3.8; 1.24.0rc2 Requires-Python >=3.8; 1.24.1 Requires-Python >=3.8; 1.24.2 Requires-Python >=3.8; 1.24.3 Requires-Python >=3.8; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12; 1.9.2 Requires-Python >=3.8; 1.9.3 Requires-Python >=3.8; 2.12.0 Requires-Python >=3.8; 2.12.0rc0 Requires-Python >=3.8; 2.12.0rc1 Requires-Python >=3.8; 2.12.1 Requires-Python >=3.8; 2.12.2 Requires-Python >=3.8; 2.12.3 Requires-Python >=3.8; 2.13.0 Requires-Python >=3.8; 2.13.1rc0 Requires-Python >=3.8; 3.6.0 Requires-Python >=3.8; 3.6.0rc1 Requires-Python >=3.8; 3.6.0rc2 Requires-Python >=3.8; 3.6.1 Requires-Python >=3.8; 3.6.2 Requires-Python >=3.8; 3.6.3 Requires-Python >=3.8; 3.7.0 Requires-Python >=3.8; 3.7.0rc1 Requires-Python >=3.8; 3.7.1 Requires-Python >=3.8; 5.0.0 Requires-Python >=3.8; 5.1.0 Requires-Python >=3.8; 5.1.1 Requires-Python >=3.8; 5.1.2 Requires-Python >=3.8; 5.1.3 Requires-Python >=3.8; 5.1.4 Requires-Python >=3.8; 5.1.5 Requires-Python >=3.8; 5.2.0 Requires-Python >=3.8; 5.3.0 Requires-Python >=3.8; 6.17.0 Requires-Python >=3.8; 6.17.1 Requires-Python >=3.8; 6.18.0 Requires-Python >=3.8; 6.18.1 Requires-Python >=3.8; 6.18.2 Requires-Python >=3.8; 6.18.3 Requires-Python >=3.8; 6.19.0 Requires-Python >=3.8; 6.19.1 Requires-Python >=3.8; 6.19.2 Requires-Python >=3.8; 6.19.3 Requires-Python >=3.8; 6.19.4 Requires-Python >=3.8; 6.20.0 Requires-Python >=3.8; 6.20.1 Requires-Python >=3.8; 6.20.2 Requires-Python >=3.8; 6.21.0 Requires-Python >=3.8; 6.21.1 Requires-Python >=3.8; 6.21.2 Requires-Python >=3.8; 6.21.3 Requires-Python >=3.8; 6.22.0 Requires-Python >=3.8; 6.23.0 Requires-Python >=3.8; 6.23.1 Requires-Python >=3.8; 8.0.0 Requires-Python >=3.8; 8.0.0a1 Requires-Python >=3.8; 8.0.0a2 Requires-Python >=3.8; 8.0.0a3 Requires-Python >=3.8; 8.0.0a4 Requires-Python >=3.8; 8.0.0b0 Requires-Python >=3.8; 8.0.0b1 Requires-Python >=3.8; 8.0.0b2 Requires-Python >=3.8; 8.0.0b3 Requires-Python >=3.8; 8.0.0rc0 Requires-Python >=3.8; 8.0.0rc1 Requires-Python >=3.8; 8.0.1 Requires-Python >=3.8; 8.0.2 Requires-Python >=3.8; 8.0.3 Requires-Python >=3.8; 8.1.0 Requires-Python >=3.8; 8.1.1 Requires-Python >=3.8; 8.10.0 Requires-Python >=3.8; 8.11.0 Requires-Python >=3.8; 8.12.0 Requires-Python >=3.8; 8.12.1 Requires-Python >=3.8; 8.12.2 Requires-Python >=3.8; 8.13.0 Requires-Python >=3.8; 8.13.1 Requires-Python >=3.9; 8.13.2 Requires-Python >=3.9; 8.2.0 Requires-Python >=3.8; 8.3.0 Requires-Python >=3.8; 8.4.0 Requires-Python >=3.8; 8.5.0 Requires-Python >=3.8; 8.6.0 Requires-Python >=3.8; 8.7.0 Requires-Python >=3.8; 8.8.0 Requires-Python >=3.8; 8.9.0 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement tensorflow==1.6.0 (from versions: 1.13.1, 1.13.2, 1.14.0, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 1.15.5, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0)
ERROR: No matching distribution found for tensorflow==1.6.0


原因調査中!



aaaa