question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run setup.py error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

See original GitHub issue

when I run sudo python3 setup.py develop in a new machine, meet the error mmdet/ops/nms/src/nms_cpu.cpp:63:46: error: invalid initialization of reference of type ‘const at::Type&’ from expression of type ‘c10::ScalarType’ AT_DISPATCH_FLOATING_TYPES(dets.scalar_type(), "nms", [&] { ^ /home/huzb/.local/lib/python3.5/site-packages/torch/lib/include/ATen/Dispatch.h:15:32: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES’ const at::Type& the_type = TYPE; \ ^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I have try the the method in here, but they didn’t help

  • Ubuntu:16.04
  • python: 3.5
  • pytorch:1.0.0
  • cuda:10.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
hftengcommented, Aug 1, 2019

my solution: upgrade pytorch1.0.0 to pytorch1.1.0

0reactions
surbhi1986commented, Feb 10, 2021

HI i am using 1.7.0+cu101, and facing the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: command 'gcc' failed with exit status 1 and Why not ...
pip3 install thefuck WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Read more >
setup script exited with error: command 'x86_64-linux-gnu-gcc ...
Error : error: command 'x86_64-linux-gnu-gcc' failed with exit status 1.
Read more >
command 'x86_64-linux-gnu-gcc' failed with exit status 1
python pip install setup. py error : command 'x86_64-linux-gnu-gcc' failed with exit status 1sudo apt-get install python -devsudo apt-get ...
Read more >
Command python setup py egg info failed with error ... - Edureka
Hi Guys, I am trying to install tensorflow in my docker. But it shows me the below error. ... with error code 1...
Read more >
How to Fix 'Python Setup.py egg_info' Failed with Error Code 1
Command 'python setup.py egg_info' failed with error code 1 is a commonly occurring issue that Python programmers face during package ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found