简体   繁体   English

Visual Studio 和 Anaconda 终端错误

[英]Visual Studio and Anaconda Terminal Error

I am a newbie to the anaconda environment.我是anaconda环境的新手。 A couple of days back I installed keras and tensorflow through anaconda prompt.几天前,我通过anaconda prompt 安装了kerastensorflow tensorflow installed successfully but keras didn't. tensorflow安装成功,但keras没有。 After, whenever I open the terminal the following error is showing.之后,每当我打开终端时,都会显示以下错误。 Please help me out.请帮帮我。

my installation commands are:我的安装命令是:

conda create -n tf tensorflow

conda install -c conda-forge keras
C:\Users\venkatesh>SET DISTUTILS_USE_SDK=1

C:\Users\venkatesh>SET MSSdk=1

C:\Users\venkatesh>SET "VS_VERSION=15.0"

C:\Users\venkatesh>SET "VS_MAJOR=15"

C:\Users\venkatesh>SET "VS_YEAR=2017"

C:\Users\venkatesh>set "MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out"

C:\Users\venkatesh>set "MSYS2_ENV_CONV_EXCL=CL"

C:\Users\venkatesh>set "PY_VCRUNTIME_REDIST=\bin\vcruntime140.dll"

C:\Users\venkatesh>set "CXX=cl.exe"

C:\Users\venkatesh>set "CC=cl.exe"

C:\Users\venkatesh>set "VSINSTALLDIR="

C:\Users\venkatesh>for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -version [15.0,16.0) -property installationPath`) do (set "VSINSTALLDIR=%i\" )

C:\Users\venkatesh>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\venkatesh>if not exist "" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\" )

C:\Users\venkatesh>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\venkatesh>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\venkatesh>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\venkatesh>IF NOT "" == "" (
set "INCLUDE=;"
 set "LIB=;"
 set "CMAKE_PREFIX_PATH=;"
)

C:\Users\venkatesh>call :GetWin10SdkDir

C:\Users\venkatesh>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 exit /B 1

C:\Users\venkatesh>exit /B 0

C:\Users\venkatesh>for /F %i in ('dir /ON /B "\include\10.*"') DO (SET WindowsSDKVer=%~i )
The system cannot find the file specified.

C:\Users\venkatesh>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\venkatesh>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\venkatesh>pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
The system cannot find the path specified.

C:\Users\venkatesh>CALL "VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.16
The system cannot find the path specified.

C:\Users\venkatesh>popd

C:\Users\venkatesh>IF "" == "" SET "CMAKE_GENERATOR=Visual Studio 15 2017 Win64"

C:\Users\venkatesh>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE  1>nul 2>&1

C:\Users\venkatesh>if errorlevel 1 exit /B 1

C:\Users\venkatesh>exit /B 0

I had a similar set of errors created by theano , which a package of interest required.我有一组由theano创建的类似错误,这是一个感兴趣的包所需要的。

conda uninstall theano and the error was gone. conda uninstall theano并且错误消失了。

If you need to use theano , I recommend making a new conda environment and isolating it there.如果您需要使用theano ,我建议创建一个新的 conda 环境并将其隔离在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM