run setup.py error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
See original GitHub issuewhen 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:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
my solution: upgrade pytorch1.0.0 to pytorch1.1.0
HI i am using 1.7.0+cu101, and facing the same issue.