Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8nhf9w2t/grpcio/

+1 vote

Hi Guys,

I am trying to install tensorflow in my docker. But it shows me the below error.

  Using cached https://files.pythonhosted.org/packages/f1/23/62d3e82fa4c505f3195315c8a774b2e656b556d174329aa98edb829e48bc/grpcio-1.29.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-f3unmpsj/grpcio/setup.py", line 191, in <module>
        if check_linker_need_libatomic():
      File "/tmp/pip-build-f3unmpsj/grpcio/setup.py", line 152, in check_linker_need_libatomic
        stderr=PIPE)
      File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
        restore_signals, start_new_session)
      File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'cc': 'cc'
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f3unmpsj/grpcio/

May 16 in Machine Learning by akhtar
• 14,770 points
2,261 views

1 answer to this question.

0 votes

Hi@akhtar,

You may get this error because of older version of pip. You can upgrade your pip by using the below command.

$ pip3 install --upgrade setuptools
$ pip3 install --upgrade pip

Hope this will help.

answered May 16 by MD
• 33,220 points
Thanks Man, I looked all over the internet and you had the line I needed ! Great Stuff !
This worked! Thanks much
Thank you man. Worked like magic!

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer
0 votes
11 answers
0 votes
1 answer

Equivalent for easy_install & pip

For pip you can check the User ...READ MORE

answered Nov 28, 2018 in Python by SDeb
• 13,250 points
147 views