Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Windows 10的my conda环境中安装Keras。错误消息:调用:GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>;nul 2>&;1._Windows_Keras_Conda_Virtual Environment_Installation Package - Fatal编程技术网

无法在Windows 10的my conda环境中安装Keras。错误消息:调用:GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>;nul 2>&;1.

无法在Windows 10的my conda环境中安装Keras。错误消息:调用:GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>;nul 2>&;1.,windows,keras,conda,virtual-environment,installation-package,Windows,Keras,Conda,Virtual Environment,Installation Package,操作系统:Windows-10 我正在尝试在我的Conda虚拟环境中安装数据科学软件包。我以前曾在这样的conda环境中创建和工作过,甚至在使用Keras时也没有遇到任何问题。但是,这一次,我甚至无法理解这个问题的原因 以下是我创建Conda虚拟环境的方式: 打开蟒蛇提示 cd路径到我的项目文件夹 conda create--prefix./env numpy keras tensorflow jupyter笔记本烧瓶 conda激活路径到我的项目文件夹/env 在安装软件包期间和之后,

操作系统:Windows-10

我正在尝试在我的Conda虚拟环境中安装数据科学软件包。我以前曾在这样的conda环境中创建和工作过,甚至在使用Keras时也没有遇到任何问题。但是,这一次,我甚至无法理解这个问题的原因

以下是我创建Conda虚拟环境的方式:

  • 打开蟒蛇提示

  • cd路径到我的项目文件夹

  • conda create--prefix./env numpy keras tensorflow jupyter笔记本烧瓶

  • conda激活路径到我的项目文件夹/env

  • 在安装软件包期间和之后,我没有看到任何错误消息。但是,一旦激活conda环境,我就会收到以下错误消息,而且,当我检查已安装的软件包时,我会看到除Keras之外的所有软件包。激活我的conda虚拟环境后,我会在Anaconda提示符中收到以下错误消息:

    
    (base) C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>conda activate  C:/Users/Neerva/Documents/SU/SEM5/ibm_ice/tomato_leaf_disease_prediction/env
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>python C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction\env\etc\keras\load_config.py  1>temp.txt
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>set /p KERAS_BACKEND= 0<temp.txt
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>del temp.txt
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>python -c "import keras"  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 (
    ver  1>nul
     set "KERAS_BACKEND=theano"
     python -c "import keras"  1>nul 2>&1
    )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>SET DISTUTILS_USE_SDK=1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>SET MSSdk=1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>SET "VS_VERSION=15.0"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>SET "VS_MAJOR=15"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>SET "VS_YEAR=2017"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>set "MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>set "MSYS2_ENV_CONV_EXCL=CL"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>set "PY_VCRUNTIME_REDIST=\bin\vcruntime140.dll"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>set "CXX=cl.exe"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>set "CC=cl.exe"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>set "VSINSTALLDIR="
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -version [15.0,16.0) -property installationPath`) do (set "VSINSTALLDIR=%i\" )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if not exist "" (for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -requires Microsoft.VisualStudio.Component.VC.v141.x86.x64 -property installationPath`) do (set "VSINSTALLDIR=%i\" ) )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if not exist "" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\" )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\" )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\" )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\" )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>IF NOT "" == "" (
    set "INCLUDE=;"
     set "LIB=;"
     set "CMAKE_PREFIX_PATH=;"
    )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>call :GetWin10SdkDir
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 exit /B 1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>exit /B 0
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>for /F %i in ('dir /ON /B "\include\10.*"') DO (SET WindowsSDKVer=%~i )
    The system cannot find the file specified.
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 (echo "Didn't find any windows 10 SDK. I'm not sure if things will work, but let's try..." )  else (echo Windows SDK version found as: "" )
    Windows SDK version found as: ""
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>IF "win-64" == "win-64" (
    set "CMAKE_GEN=Visual Studio 15 2017 Win64"
     set "BITS=64"
    )  else (
    set "CMAKE_GEN=Visual Studio 15 2017"
     set "BITS=32"
    )
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
    The system cannot find the path specified.
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>CALL "VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.16
    The system cannot find the path specified.
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>popd
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>IF "" == "" SET "CMAKE_GENERATOR=Visual Studio 15 2017 Win64"
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE  1>nul 2>&1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>if errorlevel 1 exit /B 1
    
    C:\Users\Neerva\Documents\SU\SEM5\ibm_ice\tomato_leaf_disease_prediction>exit /B 0
    
    
    
    (基本)C:\Users\Neerva\Documents\SU\SEM5\ibm\ice\tomato\u leaf\u disease\u prediction>conda activate C:/Users/Neerva/Documents/SU/SEM5/ibm\u ice/tomato\u leaf\u disease\u prediction/env
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>python C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction\env\etc\keras\load\u config.py 1>temp.txt
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>set/p KERAS\u BACKEND=0del temp.txt
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>python-C“import keras”1>nul 2>&1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>if errorlevel 1(
    版本1>nul
    设置“KERAS_BACKEND=theano”
    python-c“importkeras”1>nul2>&1
    )
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>SET DISTUTILS\u USE\u SDK=1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>SET MSSdk=1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>SET“VS\u VERSION=15.0”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>SET“VS\u MAJOR=15”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>SET“VS\u YEAR=2017”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>set“MSYS2\u ARG\u CONV\u EXCL=/AI;/AL;/OUT;/OUT”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>set“MSYS2\u ENV\u CONV\u exc=CL”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>set“PY\u VCRUNTIME\u REDIST=\bin\vcruntime140.dll”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>set“CXX=cl.exe”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>set“CC=cl.exe”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>set“VSINSTALLDIR=”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>for/F“usebackq令牌=*%i in(`vswhere.exe-nologo-products*-version[15.0,16.0)-property installationPath`)do(设置“VSINSTALLDIR=%i\”)
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>如果不存在“”(对于/F“usebackq tokens=*%i in(`vswhere.exe-nologo-products*-需要Microsoft.VisualStudio.Component.VC.v141.x86.x64-property installationPath`)do(设置“VSINSTALLDIR=%i\”)
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>如果不存在“”(设置“VSINSTALLDIR=C:\Program Files(x86)\Microsoft Visual Studio\2017\Professional\”)
    C:\Users\Neerva\Documents\SU\SEM5\ibm\ice\tomato\u leaf\u disease\u prediction>如果不存在“C:\Program Files(x86)\Microsoft Visual Studio\2017\Professional\”(设置“VSINSTALLDIR=C:\Program Files(x86)\Microsoft Visual Studio\2017\Community\)
    C:\Users\Neerva\Documents\SU\SEM5\ibm\ice\tomato\u leaf\u disease\u prediction>如果不存在“C:\Program Files(x86)\Microsoft Visual Studio\2017\Community\”(设置“VSINSTALLDIR=C:\Program Files(x86)\Microsoft Visual Studio\2017\BuildTools\)
    C:\Users\Neerva\Documents\SU\SEM5\ibm\ice\tomato\u leaf\u disease\u prediction>如果不存在“C:\Program Files(x86)\Microsoft Visual Studio\2017\BuildTools\”(设置“VSINSTALLDIR=C:\Program Files(x86)\Microsoft Visual Studio\2017\Enterprise\)
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>IF NOT”“==”(
    设置“包含=;”
    设置“LIB=;”
    设置“CMAKE_PREFIX_PATH=;”
    )
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>call:GetWin10SdkDir
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>call:GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>nul 2>&1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>if errorlevel 1调用:GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node 1>nul 2>&1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>if errorlevel 1调用:GetWin10SdkDirHelper HKLM\SOFTWARE 1>nul 2>&1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>if errorlevel 1调用:GetWin10SdkDirHelper HKCU\SOFTWARE 1>nul 2>&1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>if errorlevel 1 exit/B1
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>exit/B 0
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>for/F%i in('dir/ON/B“\include\10.*”)DO(设置WindowsSDKVer=%~i)
    系统找不到指定的文件。
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>if errorlevel 1(echo“未找到任何windows 10 SDK。我不确定是否能正常工作,但让我们试试…”否则(echo windows SDK版本为:“”)
    找到的Windows SDK版本为:“”
    C:\Users\Neerva\Documents\SU\SEM5\ibm\u ice\tomato\u leaf\u disease\u prediction>IF“win-64”=“win-64”(
    设置“CMAKE_GEN=Visual Studio 15 2017 Win64”
    设置“位=64”
    )否则(
    设置“CMAKE_GEN=Visual S