그냥 사는 이야기

ERROR: Could not find a version that satisfies the requirement tensorflow - python3.8 본문

Development/개발언어

ERROR: Could not find a version that satisfies the requirement tensorflow - python3.8

없다캐라 2020. 11. 18. 09:33
반응형

tensorflow를 하기 위해 설치를 했습니다.

왠 pip 설치에러???

그런데 위와 같은 에러가 발생하였고 버전이 맞지 않는 문제가 발생하였습니다.

(venv) D:\work\ml-tf>pip install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

(venv) D:\work\ml-tf>python --version
Python 3.8.2

(venv) D:\work\ml-tf>pip list
Package    Version
---------- -------
pip        20.0.2
setuptools 41.2.0

Python과 Tensorflow간의 버전이 맞지 않아서 패키지 설치가 되지 않았습니다. 현시점에서 파이썬은 3.8.2 가 최신버전이고 64bit 버전인 상황이고 텐서플로우는 2까지 나와 있지만 그냥 1 버전부터 다시 익혀보려고 설치한 건데 안되네요.

공식 홈페이지를 살펴보고 다른 사람들의 글을 봐도 처음에는 왜 안되는지 몰랐습니다. 그러다 자꾸 보다보니....

3.7까지? 설마 3.8 너무 최신이라서 안되는건가?

시스템 요구사항에서 3.7까지 언급되어있길래 Python을 다시 3.7.7 x64 버전으로 설치하였습니다. 그랬더니 성공!

(venv) d:\work\ml-tf>pip install tensorflow==1.14
Collecting tensorflow==1.14
  Downloading tensorflow-1.14.0-cp37-cp37m-win_amd64.whl (68.3 MB)
     |████████████████████████████████| 68.3 MB 6.8 MB/s
Collecting keras-applications>=1.0.6
  Using cached Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
Collecting google-pasta>=0.1.6
  Using cached google_pasta-0.1.8-py3-none-any.whl (57 kB)
Processing c:\users\rudalson\appdata\local\pip\cache\wheels\3f\e3\ec\8a8336ff196023622fbcb36de0c5a5c218cbb24111d1d4c7f2\termcolor-1.1.0-py3-none-any.whl
Collecting six>=1.10.0
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting numpy<2.0,>=1.14.5
  Using cached numpy-1.18.1-cp37-cp37m-win_amd64.whl (12.8 MB)
Collecting wheel>=0.26
  Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting tensorboard<1.15.0,>=1.14.0
  Downloading tensorboard-1.14.0-py3-none-any.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 6.4 MB/s
Collecting tensorflow-estimator<1.15.0rc0,>=1.14.0rc0
  Downloading tensorflow_estimator-1.14.0-py2.py3-none-any.whl (488 kB)
     |████████████████████████████████| 488 kB 3.2 MB/s
Collecting protobuf>=3.6.1
  Using cached protobuf-3.11.3-cp37-cp37m-win_amd64.whl (1.0 MB)
Collecting grpcio>=1.8.6
  Using cached grpcio-1.27.2-cp37-cp37m-win_amd64.whl (1.9 MB)
Collecting keras-preprocessing>=1.0.5
  Using cached Keras_Preprocessing-1.1.0-py2.py3-none-any.whl (41 kB)
Collecting gast>=0.2.0
  Downloading gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Processing c:\users\rudalson\appdata\local\pip\cache\wheels\cc\af\1a\498a24d0730ef484019e007bb9e8cef3ac00311a672c049a3e\absl_py-0.9.0-py3-none-any.whl
Processing c:\users\rudalson\appdata\local\pip\cache\wheels\62\76\4c\aa25851149f3f6d9785f6c869387ad82b3fd37582fa8147ac6\wrapt-1.12.1-cp37-cp37m-win_amd64.whl
Collecting astor>=0.6.0
  Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting h5py
  Using cached h5py-2.10.0-cp37-cp37m-win_amd64.whl (2.5 MB)
Collecting werkzeug>=0.11.15
  Using cached Werkzeug-1.0.0-py2.py3-none-any.whl (298 kB)
Collecting markdown>=2.6.8
  Using cached Markdown-3.2.1-py2.py3-none-any.whl (88 kB)
Requirement already satisfied: setuptools>=41.0.0 in .\venv\lib\site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14) (41.2.0)
Installing collected packages: six, numpy, h5py, keras-applications, google-pasta, termcolor, wheel, protobuf, absl-py, werkzeug, markdown, grpcio, tensorboard, tensorflow-estimator, keras-preprocessing, gast, wrapt, astor, tensorflow
Successfully installed absl-py-0.9.0 astor-0.8.1 gast-0.3.3 google-pasta-0.1.8 grpcio-1.27.2 h5py-2.10.0 keras-applications-1.0.8 keras-preprocessing-1.1.0 markdown-3.2.1 numpy-1.18.1 protobuf-3.11.3 six-1.14.0 tensorboard-1.14.0 tensorflow-1.14.0 tensorflow-estimator-1.14.0 termcolor-1.1.0 werkzeug-1.0.0 wheel-0.34.2 wrapt-1.12.1

(venv) d:\work\ml-tf>pip list
Package              Version
-------------------- -------
absl-py              0.9.0
astor                0.8.1
gast                 0.3.3
google-pasta         0.1.8
grpcio               1.27.2
h5py                 2.10.0
Keras-Applications   1.0.8
Keras-Preprocessing  1.1.0
Markdown             3.2.1
numpy                1.18.1
pip                  20.0.2
protobuf             3.11.3
setuptools           41.2.0
six                  1.14.0
tensorboard          1.14.0
tensorflow           1.14.0
tensorflow-estimator 1.14.0
termcolor            1.1.0
Werkzeug             1.0.0
wheel                0.34.2
wrapt                1.12.1

tensorflow 1.14 설치했는데 뭔가 패키지가 많이 깔렸습니다. tensorflow 2.1이 나온 시점이지만 배우는 차원에서 1.14로 설치해보았습니다.

 

Comments