apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.77k stars 6.8k forks source link

\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. #19462

Closed johncaling40 closed 3 years ago

johncaling40 commented 3 years ago

Description

I get error \Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

Error Message

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.20231.
CMake Error at CMakeLists.txt:9 (project):
  Failed to run MSBuild command:

    C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 15.1.550.39093
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 11/1/2020 8:32:21 PM.
    Project "C:\incubator-mxnet\build\CMakeFiles\3.16.0\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\incubator-mxnet\build\CMakeFiles\3.16.0\VCTargetsPath.vcxproj(15,2): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\incubator-mxnet\build\CMakeFiles\3.16.0\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\incubator-mxnet\build\CMakeFiles\3.16.0\VCTargetsPath.vcxproj" (default target) (1) ->
      C:\incubator-mxnet\build\CMakeFiles\3.16.0\VCTargetsPath.vcxproj(15,2): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.17

  Exit code: 1

-- Configuring incomplete, errors occurred!
See also "C:/incubator-mxnet/build/CMakeFiles/CMakeOutput.log".
See also "C:/incubator-mxnet/build/CMakeFiles/CMakeError.log".

To Reproduce

n/a

Steps to reproduce

(Paste the commands you ran that produced the error.)

  1. Everything here
  2. cmake -G "Visual Studio 15 2017 Win64" -T version=14.11, cuda=10.1,host=x64 -DUSE_CUDA=1 -DUSE_CUDNN=1 -DUSE_NVRTC=1 -DUSE_OPENCV=1 -DUSE_OPENMP=1 -DUSE_BLAS=open -DUSE_LAPACK=1 -DUSE_DIST_KVSTORE=0 -DCUDA_ARCH_LIST=Common -DCUDA_TOOLSET=10.1 -DCUDNN_INCLUDE=C:\cuda\include -DCUDNN_LIBRARY=C:\cuda\lib\x64\cudnn.lib "C:\incubator-mxnet"

What have you tried to solve it?

1.npm install --global --production windows-build-tools 2.

Environment

We recommend using our script for collecting the diagnostic information with the following command curl --retry 10 -s https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py | python3

Environment Information ``` # Paste the diagnose.py command output here ----------Python Info---------- Version : 3.8.3 Compiler : MSC v.1916 64 bit (AMD64) Build : ('default', 'May 19 2020 06:50:17') Arch : ('64bit', 'WindowsPE') ------------Pip Info----------- Version : 20.0.2 Directory : E:\Miniconda\lib\site-packages\pip ----------MXNet Info----------- No MXNet installed. ----------System Info---------- Platform : Windows-10-10.0.20231-SP0 system : Windows node : release : 10 version : 10.0.20231 ----------Hardware Info---------- machine : AMD64 processor : AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD Name AMD Ryzen 7 2700X Eight-Core Processor ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.1015 sec, LOAD: 0.5950 sec. Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.1815 sec, LOAD: 0.3300 sec. Error open Gluon Tutorial(cn): https://zh.gluon.ai, , DNS finished in 0.21399760246276855 sec. Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0435 sec, LOAD: 0.4340 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0180 sec, LOAD: 0.3930 sec. Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403: Forbidden, DNS finished in 0.0989995002746582 sec. ----------Environment---------- ```
github-actions[bot] commented 3 years ago

Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.