PyTorch: cpp_extension.py:184: UserWarning: Error checking compiler versionHow do I check if a string is a number (float)?How do I check what version of Python is running my script?Check if a given key already exists in a dictionaryerror: Unable to find vcvarsall.batPython3.4 PIP install error while buildingInstalling pycuda on ubuntu 14.04No OpKernel was registered to support Op 'Conv2D' with these attrsError while compiling a Cython filepytorch PIP and CONDA error?Windows 10,CUDA 9,: CUDA driver version is insufficient for CUDA runtime version at ..srcTHCTHCG

Radix2 Fast Fourier Transform implemented in C++

What is bodily formation? Does it refer to the breath or the body?

Would it be illegal for Facebook to actively promote a political agenda?

Why don't modern jet engines use forced exhaust mixing?

Check disk usage of files returned with spaces

Why doesn't mathematics collapse down, even though humans quite often make mistakes in their proofs?

Why is the name Bergson pronounced like Berksonne?

How best to join tables, which have different lengths on the same column values which exist in both tables?

Why was ramjet fuel used as hydraulic fluid during Saturn V checkout?

Is recepted a word?

Do predators tend to have vertical slit pupils versus horizontal for prey animals?

Levenshtein Neighbours

Is it alright to say good afternoon Sirs and Madams in a panel interview?

Earliest evidence of objects intended for future archaeologists?

What causes burn marks on the air handler in the attic?

Independence of Mean and Variance of Discrete Uniform Distributions

Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)

Can I check a small array of bools in one go?

Are there categories whose internal hom is somewhat 'exotic'?

The Lucky House

Chess software to analyze games

What can I do to keep a threaded bolt from falling out of it’s slot

!I!n!s!e!r!t! !b!e!t!w!e!e!n!

Are unaudited server logs admissible in a court of law?



PyTorch: cpp_extension.py:184: UserWarning: Error checking compiler version


How do I check if a string is a number (float)?How do I check what version of Python is running my script?Check if a given key already exists in a dictionaryerror: Unable to find vcvarsall.batPython3.4 PIP install error while buildingInstalling pycuda on ubuntu 14.04No OpKernel was registered to support Op 'Conv2D' with these attrsError while compiling a Cython filepytorch PIP and CONDA error?Windows 10,CUDA 9,: CUDA driver version is insufficient for CUDA runtime version at ..srcTHCTHCG






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I got a problem regarding pytorch:



when i run python setup.py build_ext --inplace



I get:



...
running build_ext
C:python36libsite-packagestorchutilscpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] Das System kann die
angegebene Datei nicht finden
warnings.warn('Error checking compiler version for : '.format(compiler, error))
building 'pointnet2._ext' extension



SETUP:



CUDA 9.0



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
Cuda compilation tools, release 9.0, V9.0.176



MSVC



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.



Pytorch 1.0.1
(installed via PIP)



Additonal:



When I run:



python setup.py install



I get:



...

File "C:python36libdistutilscommandbuild_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:python36libdistutilscommandbuild_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:python36libsite-packagessetuptoolscommandbuild_ext.py", line 199, in build_extension
_build_ext.build_extension(self, ext)
File "C:python36libdistutilscommandbuild_ext.py", line 558, in build_extension
target_lang=language)
File "C:python36libdistutilsccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "C:python36libdistutils_msvccompiler.py", line 501, in link
build_temp = os.path.dirname(objects[0])
IndexError: list index out of range


setup.py



setup(
...
install_requires=requirements,
ext_modules=[
CUDAExtension(
name="pointnet2._ext",
sources=_ext_sources,
extra_compile_args=
"cxx": ["-O2", "-I".format("/include".format(_ext_src_root))],
"nvcc": ["-O2", "-I".format("/include".format(_ext_src_root))],
,
)
],
...
)









share|improve this question


























  • I'm getting the same kind of error ("Das System kann die angegebene Datei nicht finden", just in English). You could try finding the line in site-packages/torch/utils/cpp_extension.py that prints this (mine is line 184), then insert these before the warnings.warn statement, so you can see where exactly torch is trying to find your compiler, then you could hack around the compiler path to make it work for you, but it will be of course just a hack and by far not the best solution: print(compiler) ; import traceback ; traceback.print_exc()

    – szali
    Apr 8 at 8:57


















1















I got a problem regarding pytorch:



when i run python setup.py build_ext --inplace



I get:



...
running build_ext
C:python36libsite-packagestorchutilscpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] Das System kann die
angegebene Datei nicht finden
warnings.warn('Error checking compiler version for : '.format(compiler, error))
building 'pointnet2._ext' extension



SETUP:



CUDA 9.0



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
Cuda compilation tools, release 9.0, V9.0.176



MSVC



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.



Pytorch 1.0.1
(installed via PIP)



Additonal:



When I run:



python setup.py install



I get:



...

File "C:python36libdistutilscommandbuild_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:python36libdistutilscommandbuild_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:python36libsite-packagessetuptoolscommandbuild_ext.py", line 199, in build_extension
_build_ext.build_extension(self, ext)
File "C:python36libdistutilscommandbuild_ext.py", line 558, in build_extension
target_lang=language)
File "C:python36libdistutilsccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "C:python36libdistutils_msvccompiler.py", line 501, in link
build_temp = os.path.dirname(objects[0])
IndexError: list index out of range


setup.py



setup(
...
install_requires=requirements,
ext_modules=[
CUDAExtension(
name="pointnet2._ext",
sources=_ext_sources,
extra_compile_args=
"cxx": ["-O2", "-I".format("/include".format(_ext_src_root))],
"nvcc": ["-O2", "-I".format("/include".format(_ext_src_root))],
,
)
],
...
)









share|improve this question


























  • I'm getting the same kind of error ("Das System kann die angegebene Datei nicht finden", just in English). You could try finding the line in site-packages/torch/utils/cpp_extension.py that prints this (mine is line 184), then insert these before the warnings.warn statement, so you can see where exactly torch is trying to find your compiler, then you could hack around the compiler path to make it work for you, but it will be of course just a hack and by far not the best solution: print(compiler) ; import traceback ; traceback.print_exc()

    – szali
    Apr 8 at 8:57














1












1








1








I got a problem regarding pytorch:



when i run python setup.py build_ext --inplace



I get:



...
running build_ext
C:python36libsite-packagestorchutilscpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] Das System kann die
angegebene Datei nicht finden
warnings.warn('Error checking compiler version for : '.format(compiler, error))
building 'pointnet2._ext' extension



SETUP:



CUDA 9.0



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
Cuda compilation tools, release 9.0, V9.0.176



MSVC



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.



Pytorch 1.0.1
(installed via PIP)



Additonal:



When I run:



python setup.py install



I get:



...

File "C:python36libdistutilscommandbuild_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:python36libdistutilscommandbuild_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:python36libsite-packagessetuptoolscommandbuild_ext.py", line 199, in build_extension
_build_ext.build_extension(self, ext)
File "C:python36libdistutilscommandbuild_ext.py", line 558, in build_extension
target_lang=language)
File "C:python36libdistutilsccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "C:python36libdistutils_msvccompiler.py", line 501, in link
build_temp = os.path.dirname(objects[0])
IndexError: list index out of range


setup.py



setup(
...
install_requires=requirements,
ext_modules=[
CUDAExtension(
name="pointnet2._ext",
sources=_ext_sources,
extra_compile_args=
"cxx": ["-O2", "-I".format("/include".format(_ext_src_root))],
"nvcc": ["-O2", "-I".format("/include".format(_ext_src_root))],
,
)
],
...
)









share|improve this question
















I got a problem regarding pytorch:



when i run python setup.py build_ext --inplace



I get:



...
running build_ext
C:python36libsite-packagestorchutilscpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] Das System kann die
angegebene Datei nicht finden
warnings.warn('Error checking compiler version for : '.format(compiler, error))
building 'pointnet2._ext' extension



SETUP:



CUDA 9.0



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
Cuda compilation tools, release 9.0, V9.0.176



MSVC



C:Program Files (x86)Microsoft Visual Studio 14.0VCbin>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.



Pytorch 1.0.1
(installed via PIP)



Additonal:



When I run:



python setup.py install



I get:



...

File "C:python36libdistutilscommandbuild_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:python36libdistutilscommandbuild_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:python36libsite-packagessetuptoolscommandbuild_ext.py", line 199, in build_extension
_build_ext.build_extension(self, ext)
File "C:python36libdistutilscommandbuild_ext.py", line 558, in build_extension
target_lang=language)
File "C:python36libdistutilsccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "C:python36libdistutils_msvccompiler.py", line 501, in link
build_temp = os.path.dirname(objects[0])
IndexError: list index out of range


setup.py



setup(
...
install_requires=requirements,
ext_modules=[
CUDAExtension(
name="pointnet2._ext",
sources=_ext_sources,
extra_compile_args=
"cxx": ["-O2", "-I".format("/include".format(_ext_src_root))],
"nvcc": ["-O2", "-I".format("/include".format(_ext_src_root))],
,
)
],
...
)






python windows pytorch






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 30 at 20:33









blue-phoenox

5,85212 gold badges26 silver badges60 bronze badges




5,85212 gold badges26 silver badges60 bronze badges










asked Mar 27 at 13:47









bastelnbasteln

61 bronze badge




61 bronze badge















  • I'm getting the same kind of error ("Das System kann die angegebene Datei nicht finden", just in English). You could try finding the line in site-packages/torch/utils/cpp_extension.py that prints this (mine is line 184), then insert these before the warnings.warn statement, so you can see where exactly torch is trying to find your compiler, then you could hack around the compiler path to make it work for you, but it will be of course just a hack and by far not the best solution: print(compiler) ; import traceback ; traceback.print_exc()

    – szali
    Apr 8 at 8:57


















  • I'm getting the same kind of error ("Das System kann die angegebene Datei nicht finden", just in English). You could try finding the line in site-packages/torch/utils/cpp_extension.py that prints this (mine is line 184), then insert these before the warnings.warn statement, so you can see where exactly torch is trying to find your compiler, then you could hack around the compiler path to make it work for you, but it will be of course just a hack and by far not the best solution: print(compiler) ; import traceback ; traceback.print_exc()

    – szali
    Apr 8 at 8:57

















I'm getting the same kind of error ("Das System kann die angegebene Datei nicht finden", just in English). You could try finding the line in site-packages/torch/utils/cpp_extension.py that prints this (mine is line 184), then insert these before the warnings.warn statement, so you can see where exactly torch is trying to find your compiler, then you could hack around the compiler path to make it work for you, but it will be of course just a hack and by far not the best solution: print(compiler) ; import traceback ; traceback.print_exc()

– szali
Apr 8 at 8:57






I'm getting the same kind of error ("Das System kann die angegebene Datei nicht finden", just in English). You could try finding the line in site-packages/torch/utils/cpp_extension.py that prints this (mine is line 184), then insert these before the warnings.warn statement, so you can see where exactly torch is trying to find your compiler, then you could hack around the compiler path to make it work for you, but it will be of course just a hack and by far not the best solution: print(compiler) ; import traceback ; traceback.print_exc()

– szali
Apr 8 at 8:57













0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55378802%2fpytorch-cpp-extension-py184-userwarning-error-checking-compiler-version%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55378802%2fpytorch-cpp-extension-py184-userwarning-error-checking-compiler-version%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript