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

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?