none
Script 'vsdevcmd\ext\Invalid'; could not be found while trying to compile Cython module RRS feed

  • Question

  • Hi,

    I am having trouble compiling a simple hello world Cython module. Details:

    OS - Windows 10

    Visual Studio Version - 2017 (15.9.14)

    Python details - Virtual environment in Anaconda (Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)] on win32)

    Specifically I get the following error: 

    (ssapy) c:\Users\joebox\Documents\projects\temp>cythonize -a -i hello_world.pyx
    running build_ext
    building 'hello_world' extension
    creating c:\Users\joebox\Documents\projects\temp\tmpbdqyslnx\Release
    creating c:\Users\joebox\Documents\projects\temp\tmpbdqyslnx\Release\Users
    creating c:\Users\joebox\Documents\projects\temp\tmpbdqyslnx\Release\Users\joebox
    creating c:\Users\joebox\Documents\projects\temp\tmpbdqyslnx\Release\Users\joebox\Documents
    creating c:\Users\joebox\Documents\projects\temp\tmpbdqyslnx\Release\Users\joebox\Documents\projects
    creating c:\Users\joebox\Documents\projects\temp\tmpbdqyslnx\Release\Users\joebox\Documents\projects\temp
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\joebox\miniconda3\envs\ssapy\include -Ic:\users\joebox\miniconda3\envs\ssapy\include /Tcc:\Users\joebox\Documents\projects\temp\hello_world.c /Foc:\Users\joebox\Documents\projects\temp\tmpbdqyslnx\Release\Users\joebox\Documents\projects\temp\hello_world.obj
    error: command 'cl.exe' failed: No such file or directory 

    I tried adding `cl.exe` to path by adding the following directory to Path "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64". I also tried opening up Developer Command Prompt for VS 2017, but it opens with the following error:

    [ERROR:VsDevCmd.bat] Script "vsdevcmd\ext\Invalid" could not be 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

    When I open Developer Command Prompt for VS 2017 in Administrator mode and run using VSCMD_DEBUG=2, I get:

    [DEBUG:VsDevCmd] Writing pre-initialization environment to C:\Users\joebox\AppData\Local\Temp\dd_vsdevcmd15_preinit_env.log
    [DEBUG:VsDevCmd.bat] --------------------- VS Developer Command Prompt Environment [pre-init] ---------------------
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\joebox\AppData\Roaming
    CommandPromptType=Native
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=DESKTOP-MN90951
    ComSpec=C:\Windows\system32\cmd.exe
    DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\
    DriverData=C:\Windows\System32\Drivers\DriverData
    ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
    Framework40Version=v4.0
    FrameworkDir=C:\Windows\Microsoft.NET\Framework\
    FrameworkDIR32=C:\Windows\Microsoft.NET\Framework\
    FrameworkVersion=v4.0.30319
    FrameworkVersion32=v4.0.30319
    HOMEDRIVE=C:
    HOMEPATH=\Users\joebox
    INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt
    LIB=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x86;
    LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.16299.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.16299.0;C:\Windows\Microsoft.NET\Framework\v4.0.30319;
    LOCALAPPDATA=C:\Users\joebox\AppData\Local
    LOGONSERVER=\\DESKTOP-MN90951
    MOZ_PLUGIN_PATH=C:\PROGRAM FILES (X86)\FOXIT SOFTWARE\FOXIT READER\plugins\
    NUMBER_OF_PROCESSORS=4
    OneDrive=C:\Users\joebox\OneDrive
    OneDriveConsumer=C:\Users\joebox\OneDrive
    OS=Windows_NT
    Path=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Users\joebox\Miniconda3\condabin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;C:\Users\joebox\AppData\Local\Microsoft\WindowsApps;C:\Users\joebox\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\joebox\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=4501
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
    PUBLIC=C:\Users\Public
    SynaProgDir=Synaptics\SynTP
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\joebox\AppData\Local\Temp
    TMP=C:\Users\joebox\AppData\Local\Temp
    UCRTVersion=10.0.16299.0
    UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
    USERDOMAIN=DESKTOP-MN90951
    USERDOMAIN_ROAMINGPROFILE=DESKTOP-MN90951
    USERNAME=joebox
    USERPROFILE=C:\Users\joebox
    VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\
    VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\
    VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\
    VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\
    VCToolsVersion=14.16.27023
    VisualStudioVersion=15.0
    VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
    VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
    VSCMD_ARG_app_plat=Desktop
    VSCMD_ARG_HOST_ARCH=x86
    VSCMD_ARG_TGT_ARCH=x86
    VSCMD_DEBUG=2
    VSCMD_VER=15.9.14
    VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\
    windir=C:\Windows
    WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.16299.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.16299.0
    WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin\
    WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
    WindowsSDKLibVersion=10.0.16299.0\
    WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\
    WindowsSDKVersion=10.0.16299.0\
    __DOTNET_ADD_32BIT=1
    __DOTNET_PREFERRED_BITNESS=32
    __VSCMD_PREINIT_PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Users\joebox\Miniconda3\condabin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;C:\Users\joebox\AppData\Local\Microsoft\WindowsApps;C:\Users\joebox\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\joebox\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\
    [DEBUG:VsDevCmd.bat] --------------------- VS Developer Command Prompt Environment [pre-init] ---------------------
    [DEBUG:core\vsdevcmd_start] initializing with arguments ''
    [DEBUG:core\parse_cmd.bat] initializaing with arguments ''
    [DEBUG:parse_cmd] -no_ext :
    [DEBUG:parse_cmd] -winsdk :
    [DEBUG:parse_cmd] -app_platform :
    [DEBUG:parse_cmd] -test   :
    [DEBUG:parse_cmd] -help   :
    [DEBUG:parse_cmd] -arch   :
    [DEBUG:parse_cmd] -host_arch :
    [DEBUG:parse_cmd] -vcvars_ver :
    [DEBUG:parse_cmd] -startdir :
    [DEBUG:vsdevcmd_start] Parsing results...
    [DEBUG:vsdevcmd_start] -clean_env :
    [DEBUG:vsdevcmd_start] -test      :
    [DEBUG:vsdevcmd_start] -help      :
    [DEBUG:vsdevcmd_start] end of script: VS150COMNTOOLS="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\"
    [DEBUG:vsdevcmd_start] end of script: VSINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\"
    [DEBUG:vsdevcmd_start] end of script: DevEnvDir="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\"
    [DEBUG:VsDevCmd.bat] Found version "15.9.14"
    [DEBUG:VsDevCmd.bat] "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.isolation.ini" found. Setting VSCMD_VER="15.0".
    **********************************************************************
    ** Visual Studio 2017 Developer Command Prompt v15.9.14
    ** Copyright (c) 2017 Microsoft Corporation
    **********************************************************************
    [DEBUG:VsDevCmd.bat] -clean_env :
    [DEBUG:VsDevCmd.bat] -test :
    [DEBUG:VsDevCmd.bat] VS150COMNTOOLS : "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\"
    [DEBUG:VsDevCmd.bat] calling "core\dotnet.bat"
    [vsdevcmd\core\dotnet.bat] initializing...
    [DEBUG:core\dotnet.bat] Adding 32-bit .NET Framework Path
    [DEBUG:core\dotnet.bat] Framework Preference: 32bit
    [DEBUG:core\dotnet.bat] init:COMPLETE
    [DEBUG:VsDevCmd.bat] calling "core\msbuild.bat"
    [DEBUG:core\msbuild.bat] initializing...
    [DEBUG:core\msbuild.bat] init:COMPLETE
    [DEBUG:VsDevCmd.bat] calling "core\winsdk.bat"
    [DEBUG:winsdk.bat] initializing...
    [DEBUG:core\winsdk.bat] init:COMPLETE
    [ERROR:VsDevCmd.bat] Script "vsdevcmd\ext\Invalid" could not be found.
    [DEBUG:VsDevCmd.bat] calling "ext\netfxsdk.bat"
    [DEBUG:ext\netfxsdk.bat] init:COMPLETE
    [DEBUG:VsDevCmd.bat] calling "ext\roslyn.bat"
    [DEBUG:ext\roslyn.bat] init:COMPLETE
    [DEBUG:VsDevCmd.bat] calling "ext\team_explorer.bat"
    [DEBUG:ext\team_explorer.bat] init:COMPLETE
    [DEBUG:VsDevCmd.bat] calling "ext\testwindow.bat"
    [DEBUG:ext\testwindow.bat] init:COMPLETE
    [DEBUG:VsDevCmd.bat] calling "ext\vcvars.bat"
    [DEBUG:vcvars.bat] VCToolsVersion = "14.16.27023"
    [DEBUG:vcvars.bat] Checking architecture { host , tgt } : { x86 , x86 }
    [DEBUG:vcvars.bat] Adding "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCPackages"
    __VCVARS_REDIST_VERSION=14.16.27012
    [DEBUG:vcvars.bat] Could not add directory to IFCPATH: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ifc\x86"
    [DEBUG:vcvars.bat] Adding "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86"
    [DEBUG:ext\vcvars.bat] init:COMPLETE
    [DEBUG:core\vsdevcmd_end] initializing with arguments ''
    [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
    [DEBUG:VsDevCmd] Writing post-execution environment to C:\Users\joebox\AppData\Local\Temp\dd_vsdevcmd15_env.log
    [DEBUG:VsDevCmd.bat] --------------------- VS Developer Command Prompt Environment [post-init] ---------------------
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\joebox\AppData\Roaming
    CommandPromptType=Native
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=DESKTOP-MN90951
    ComSpec=C:\Windows\system32\cmd.exe
    DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\
    DriverData=C:\Windows\System32\Drivers\DriverData
    ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
    Framework40Version=v4.0
    FrameworkDir=C:\Windows\Microsoft.NET\Framework\
    FrameworkDIR32=C:\Windows\Microsoft.NET\Framework\
    FrameworkVersion=v4.0.30319
    FrameworkVersion32=v4.0.30319
    HOMEDRIVE=C:
    HOMEPATH=\Users\joebox
    INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt
    LIB=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x86;
    LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.16299.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.16299.0;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.16299.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.16299.0;C:\Windows\Microsoft.NET\Framework\v4.0.30319;
    LOCALAPPDATA=C:\Users\joebox\AppData\Local
    LOGONSERVER=\\DESKTOP-MN90951
    MOZ_PLUGIN_PATH=C:\PROGRAM FILES (X86)\FOXIT SOFTWARE\FOXIT READER\plugins\
    NUMBER_OF_PROCESSORS=4
    OneDrive=C:\Users\joebox\OneDrive
    OneDriveConsumer=C:\Users\joebox\OneDrive
    OS=Windows_NT
    Path=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Users\joebox\Miniconda3\condabin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;C:\Users\joebox\AppData\Local\Microsoft\WindowsApps;C:\Users\joebox\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\joebox\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=4501
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
    PUBLIC=C:\Users\Public
    SynaProgDir=Synaptics\SynTP
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\joebox\AppData\Local\Temp
    TMP=C:\Users\joebox\AppData\Local\Temp
    UCRTVersion=10.0.16299.0
    UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
    USERDOMAIN=DESKTOP-MN90951
    USERDOMAIN_ROAMINGPROFILE=DESKTOP-MN90951
    USERNAME=joebox
    USERPROFILE=C:\Users\joebox
    VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\
    VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\
    VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\
    VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\
    VCToolsVersion=14.16.27023
    VisualStudioVersion=15.0
    VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
    VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
    VSCMD_ARG_app_plat=Desktop
    VSCMD_ARG_HOST_ARCH=x86
    VSCMD_ARG_TGT_ARCH=x86
    VSCMD_DEBUG=2
    VSCMD_VER=15.9.14
    VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\
    windir=C:\Windows
    WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.16299.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.16299.0
    WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin\
    WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
    WindowsSDKLibVersion=10.0.16299.0\
    WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\
    WindowsSDKVersion=10.0.16299.0\
    __DOTNET_ADD_32BIT=1
    __DOTNET_PREFERRED_BITNESS=32
    __VSCMD_PREINIT_PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Users\joebox\Miniconda3\condabin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;C:\Users\joebox\AppData\Local\Microsoft\WindowsApps;C:\Users\joebox\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\joebox\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\
    __VSCMD_PREINIT_VCToolsVersion=14.16.27023
    __VSCMD_PREINIT_VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\
    [DEBUG:VsDevCmd.bat] --------------------- VS Developer Command Prompt Environment [post-init] ---------------------

    My questions are:

    1) What is the foolproof way to develop Cython packages in Windows 10, using Python 3.6? What are the visual studio versions/packages I should install?

    2) Does the Developer Command Prompt for VS 2017 error affecting Cython compilation?

    Thank you for your time!!

    Monday, July 29, 2019 1:20 AM

All replies

  • Hi,

    Thank you for posting here.

    >>What is the foolproof way to develop Cython packages in Windows 10, using Python 3.6? What are the visual studio versions/packages I should install?

    I am sorry that here is not the correct forum for you to deal with your issue. This forum is about c++ development. And According to your issue, do you mean you would like to develop Cython packages in Windows 10, using Python 3.6? If so, please reopen one case on the Python official community site here: https://python-forum.io/

    Best Regards,

    Jeanine Zhang

    Monday, July 29, 2019 2:01 AM
  • Hello,

    in addition to Jeanine Zhang's python forum: if you have a question about Cyphon, then you could ask here: https://cyphon.readthedocs.io/en/latest/support.html

    Regards, Guido

    Monday, July 29, 2019 6:34 AM
  • Hi Guido,

    I am looking at Cython, which provides C-speeds in Python. Thanks for your reply though.

    Saturday, August 3, 2019 7:05 PM