conda uninstall nb_conda_kernels is not working. What is the right way to remove nb_conda_kernels?
Installing nb_conda_kernels corrupted my Anaconda base environments, so now whenever I start up my "base" environment, I get the following error messages about missing compiler from any Anaconda Prompt console in the base environment.
I am running Windows 10 64-bit. VS2019 community edition is installed.
When I try to start Jupyter Notebooks and select kernels, I get error messages about kernel not found and the operation takes 10+ minutes before failing.
I get "conda out of memory errors" result every time when I run:
conda uninstall nb_conda_kernels
I am not sure what to do at this point. I do NOT want to remove and reinstall Anaconda because I have more than 10 custom virtual environments that would need to be ported.
C:\Users\richadmin>SET DISTUTILS_USE_SDK=1
C:\Users\richadmin>SET MSSdk=1
C:\Users\richadmin>SET "VS_VERSION=15.0"
C:\Users\richadmin>SET "VS_MAJOR=15"
C:\Users\richadmin>SET "VS_YEAR=2017"
C:\Users\richadmin>set "MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out"
C:\Users\richadmin>set "MSYS2_ENV_CONV_EXCL=CL"
C:\Users\richadmin>set "PY_VCRUNTIME_REDIST=\bin\vcruntime140.dll"
C:\Users\richadmin>set "CXX=cl.exe"
C:\Users\richadmin>set "CC=cl.exe"
C:\Users\richadmin>CALL C:\ProgramData\Anaconda3\etc\conda\activate.d\vs2017_get_vsinstall_dir.bat
Did not find VSINSTALLDIR
Windows SDK version found as: "10.0.19041.0"
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.4
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[ERROR:vcvars.bat] Toolset directory for version '14.16' was not found.
[ERROR:VsDevCmd.bat] *** VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. ***
[ERROR:VsDevCmd.bat] In an uninitialized command prompt, please 'set VSCMD_DEBUG=[value]' and then re-run
[ERROR:VsDevCmd.bat] vsdevcmd.bat [args] for additional details.
[ERROR:VsDevCmd.bat] Where [value] is:
[ERROR:VsDevCmd.bat] 1 : basic debug logging
[ERROR:VsDevCmd.bat] 2 : detailed debug logging
[ERROR:VsDevCmd.bat] 3 : trace level logging. Redirection of output to a file when using this level is recommended.
[ERROR:VsDevCmd.bat] Example: set VSCMD_DEBUG=3
[ERROR:VsDevCmd.bat] vsdevcmd.bat > vsdevcmd.trace.txt 2>&1
Did not find VSINSTALLDIR
C:\Users\richadmin>SET DISTUTILS_USE_SDK=1
C:\Users\richadmin>SET MSSdk=1
C:\Users\richadmin>SET "VS_VERSION=16.0"
C:\Users\richadmin>SET "VS_MAJOR=16"
C:\Users\richadmin>SET "VS_YEAR=2019"
C:\Users\richadmin>set "MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out"
C:\Users\richadmin>set "MSYS2_ENV_CONV_EXCL=CL"
C:\Users\richadmin>set "PY_VCRUNTIME_REDIST=\bin\vcruntime140.dll"
C:\Users\richadmin>set "CXX=cl.exe"
C:\Users\richadmin>set "CC=cl.exe"
C:\Users\richadmin>set "VSINSTALLDIR="
C:\Users\richadmin>for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -version [16.0,17.0) -property installationPath`) do (set "VSINSTALLDIR=%i\" )
C:\Users\richadmin>(set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\" )
C:\Users\richadmin>(set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" )
C:\Users\richadmin>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -requires Microsoft.VisualStudio.Component.VC.v142.x86.x64 -property installationPath`) do (set "VSINSTALLDIR=%i\" ) )
C:\Users\richadmin>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\" )
C:\Users\richadmin>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" )
C:\Users\richadmin>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\" )
C:\Users\richadmin>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\" )
C:\Users\richadmin>IF NOT "" == "" (
set "INCLUDE=;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt"
set "LIB=;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x86;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64"
set "CMAKE_PREFIX_PATH=;"
)
C:\Users\richadmin>call :GetWin10SdkDir
C:\Users\richadmin>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\Users\richadmin>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\Users\richadmin>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE 1>nul 2>&1
C:\Users\richadmin>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE 1>nul 2>&1
C:\Users\richadmin>if errorlevel 1 exit /B 1
C:\Users\richadmin>exit /B 0
C:\Users\richadmin>for /F %i in ('dir /ON /B "C:\Program Files (x86)\Windows Kits\10\\include\10.*"') DO (SET WindowsSDKVer=%~i )
C:\Users\richadmin>(SET WindowsSDKVer=10.0.10240.0 )
C:\Users\richadmin>(SET WindowsSDKVer=10.0.18362.0 )
C:\Users\richadmin>(SET WindowsSDKVer=10.0.19041.0 )
C:\Users\richadmin>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: "10.0.19041.0" )
Windows SDK version found as: "10.0.19041.0"
C:\Users\richadmin>IF 2019 GEQ 2019 (
set "CMAKE_GEN=Visual Studio 16 2019"
IF "win-64" == "win-64" (
set "BITS=64"
set "CMAKE_PLAT=x64"
) ELSE (
set "BITS=32"
set "CMAKE_PLAT=Win32"
)
) ELSE (IF "win-64" == "win-64" (
set "CMAKE_GEN=Visual Studio 16 2019 Win64"
set "BITS=64"
) else (
set "CMAKE_GEN=Visual Studio 16 2019"
set "BITS=32"
) )
C:\Users\richadmin>pushd C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>CALL "VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.29 10.0.19041.0
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.4
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[ERROR:vcvars.bat] Toolset directory for version '14.29' was not found.
[ERROR:VsDevCmd.bat] *** VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. ***
[ERROR:VsDevCmd.bat] In an uninitialized command prompt, please 'set VSCMD_DEBUG=[value]' and then re-run
[ERROR:VsDevCmd.bat] vsdevcmd.bat [args] for additional details.
[ERROR:VsDevCmd.bat] Where [value] is:
[ERROR:VsDevCmd.bat] 1 : basic debug logging
[ERROR:VsDevCmd.bat] 2 : detailed debug logging
[ERROR:VsDevCmd.bat] 3 : trace level logging. Redirection of output to a file when using this level is recommended.
[ERROR:VsDevCmd.bat] Example: set VSCMD_DEBUG=3
[ERROR:VsDevCmd.bat] vsdevcmd.bat > vsdevcmd.trace.txt 2>&1
I'm closing this issue as stale, but also, it really is a conda issue, not an issue with this package specifically. That said I strongly suspect newer versions of conda will not have this problem.
conda uninstall nb_conda_kernels
is not working. What is the right way to remove nb_conda_kernels?Installing nb_conda_kernels corrupted my Anaconda base environments, so now whenever I start up my "base" environment, I get the following error messages about missing compiler from any Anaconda Prompt console in the base environment.
I am running Windows 10 64-bit. VS2019 community edition is installed.
When I try to start Jupyter Notebooks and select kernels, I get error messages about kernel not found and the operation takes 10+ minutes before failing.
I get "conda out of memory errors" result every time when I run:
conda uninstall nb_conda_kernels
I am not sure what to do at this point. I do NOT want to remove and reinstall Anaconda because I have more than 10 custom virtual environments that would need to be ported.