H
H
Hcuy2020-06-11 17:38:41
Python
Hcuy, 2020-06-11 17:38:41

Error in pip installing logging?

Hello! I need to install logging, I write pip3 install logging, but a huge error comes out and at the end this

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I climbed on the github and tried the options that were offered there, but alas, nothing helped. What is the problem?
Thank you!
MISTAKE:
Traceback (most recent call last):
  File "Google.py", line 15, in <module>
    tf.logging.set_verbosity(tf.logging.ERROR)
AttributeError: module 'tensorflow' has no attribute 'logging'

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Nekrasov, 2020-06-11
@Hcuy

Maybe something like this?)

tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)

If it works, then you google badly.)

S
soremix, 2020-06-11
@SoreMix

logging is a standard library, why install it via pip

S
Sergey Karbivnichy, 2020-06-11
@hottabxp

Try updating setuptools
pip3 install -U setuptools

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question