HKUST-Aerial-Robotics / Stereo-RCNN

Code for 'Stereo R-CNN based 3D Object Detection for Autonomous Driving' (CVPR 2019)
MIT License
690 stars 177 forks source link

building 'model._C' extensionerror: Microsoft Visual C++ 14.0 is required. #23

Open Jingyuying opened 5 years ago

Jingyuying commented 5 years ago

Dear Li: Sorry to disturb, I'm new to python. And I met the error when I use the command "python setup.py build develop":

(env_stereo) C:\Users\jyy\Stereo-RCNN\lib>python setup.py build develop running build running build_py running build_ext C:\Users\jyy\Anaconda3\envs\env_stereo\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'model._C' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

(env_stereo) C:\Users\jyy\Stereo-RCNN\lib>

How can I slove this problem? Looking forward to your reply ^-^ Thank you very much~

PeiliangLi commented 5 years ago

I didn't test it on the windows. Can you follow the error msg: https://visualstudio.microsoft.com/downloads/, and try to install the c++ build tools?

Jingyuying commented 5 years ago

Thank you for your reply! @PeiliangLi I have tried many methods to deal with it, but it still have error... I will try it on Linux ^-^

kun-dragon commented 3 years ago

Using Linux can avoid this problem