问题描述
操作系统:Windows-10
我正在尝试在Conda虚拟环境中安装数据科学软件包。我以前在这样的conda环境中创建和工作,即使使用Keras时也没有遇到任何问题。但是,这次,我什至无法理解导致此问题的原因。
这是我创建Conda虚拟环境的方式:
-
打开Anaconda提示
-
cd path_to_my_project_folder
-
conda create --prefix ./env numpy keras tensorflow jupyter notebook flask
-
conda activate path_to_my_project_folder/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 sy@R_404_6063@ 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 sy@R_404_6063@ 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 sy@R_404_6063@ 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
与我自己的问题类似的问题:https://github.com/keras-team/keras/issues/13209
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)