Issue when tried to install Tensorflow, error on termcolor

320 views
Skip to first unread message

*_

unread,
Jun 13, 2021, 10:43:02 AM6/13/21
to Discuss
Hello. I intend to import Tensorflow module on Python. In order to do that, I executed:

python -m pip install tensorflow

Result is rolling down:

D:\Program Files\Python>python -m pip install tensorflow
Collecting tensorflow
  Using cached tensorflow-2.5.0-cp39-cp39-win_amd64.whl (422.6 MB)
Collecting tensorflow-estimator<2.6.0,>=2.5.0rc0
  Using cached tensorflow_estimator-2.5.0-py2.py3-none-any.whl (462 kB)
Collecting tensorboard~=2.5
  Using cached tensorboard-2.5.0-py3-none-any.whl (6.0 MB)
Collecting grpcio~=1.34.0
  Using cached grpcio-1.34.1-cp39-cp39-win_amd64.whl (2.9 MB)
Collecting astunparse~=1.6.3
  Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting protobuf>=3.9.2
  Using cached protobuf-3.17.3-py2.py3-none-any.whl (173 kB)
Collecting gast==0.4.0
  Using cached gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting keras-preprocessing~=1.1.2
  Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)

Until to termcolor:

  Using cached termcolor-1.1.0.tar.gz (3.9 kB)
    ERROR: Command errored out with exit status 1:
     command: 'D:\Program Files\Python\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Flaviu\\AppData\\Local\\Temp\\pip-install-3682bk64\\termcolor_a744f0bb14a04f7b8bb6040da9009766\\setup.py'"'"'; __file__='"'"'C:\\Users\\Flaviu\\AppData\\Local\\Temp\\pip-install-3682bk64\\termcolor_a744f0bb14a04f7b8bb6040da9009766\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Flaviu\AppData\Local\Temp\pip-pip-egg-info-whf7l7sq'
         cwd: C:\Users\Flaviu\AppData\Local\Temp\pip-install-3682bk64\termcolor_a744f0bb14a04f7b8bb6040da9009766\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Flaviu\AppData\Local\Temp\pip-install-3682bk64\termcolor_a744f0bb14a04f7b8bb6040da9009766\setup.py", line 35, in <module>
        from termcolor import VERSION
    ModuleNotFoundError: No module named 'termcolor'

ERROR: Could not find a version that satisfies the requirement termcolor~=1.1.0 (from tensorflow) (from versions: 0.1, 0.1.1, 0.1.2, 0.2, 1.0.0, 1.0.1, 1.1.0)
ERROR: No matching distribution found for termcolor~=1.1.0

Why I got this message ? What I have done wrong ?

First, this path: C:\Users\Flaviu\AppData\Local\Temp\pip-install-3682bk64\termcolor_a744f0bb14a04f7b8bb6040da9009766\
it is innexistent. 

Where should I dig in for errors ?

*_

unread,
Jun 15, 2021, 3:18:14 AM6/15/21
to Discuss, _ *
I had these error because I have used a portable version of Python. I have installed Python, and these errors vanished.
Reply all
Reply to author
Forward
0 new messages