Open Dr-Irv opened 3 weeks ago
It is absolutely possible to develop with Visual Studio 2022 Build Tools on Windows. The issue you're encountering with the init file not being installed is likely an isolated problem that can be resolved with the right steps.
1)Verify Build Tools Installation Make sure that Visual Studio 2022 Build Tools are properly installed:
Open the Visual Studio Installer. Ensure you have Visual Studio Build Tools 2022 installed. Under Workloads, make sure Desktop development with C++ is selected.
2)Install Required Components Sometimes, specific components might be missing: In the Visual Studio Installer, click Modify on the Build Tools installation. Ensure that MSVC v143 - VS 2022 C++ x64/x86 build tools and C++ CMake tools for Windows are selected.
3)Run the Build Tools Command Line To check if the command-line tools are working, open the Developer Command Prompt for Visual Studio or a regular Command Prompt with the appropriate environment setup:
Open Start Menu, search for Developer Command Prompt for Visual Studio 2022, and run it. Try running cl.exe to see if the compiler is recognized.
4)Environment Variables Ensure environment variables are set up correctly: Check that paths to cl.exe, link.exe, and other tools are in your PATH environment variable.
I hope this should work!
I hope this should work!
This solves the problem, but is not solving the fundamental problem, which is when you install c-compiler
from conda-forge
, it doesn't install the correct script in \envs\pandas-dev\etc\conda\activate.d\
that causes the conda environment to be properly updated upon activation with the right paths.
The issue is that c-compiler
is installing vs2019_win-64
rather than vs2022_win-64
Solution to issue cannot be found in the documentation.
Issue
Not sure if this issue goes here or somewhere else.
This is on Windows 11. First you install the latest Visual Studio 2022 Build Tools. No other Visual Studio is installed.
If you create a new environment, and do
conda install c-compiler -c conda-forge
, the batch file that is installed in\envs\pandas-dev\etc\conda\activate.d
isvs2019_compiler_vars.bat
which does not work with Microsoft Visual Studio 2022 Build Tools.Installing
c-compiler
causesvs2019_win-x64
to be installed. I would have expectedvs2022_win-x64
to be installed.If I first install
vs2022_win-x64
, thenc-compiler
, then remove\envs\pandas-dev\etc\conda\activate.d\vs2019_compiler_vars.bat
, then editvs2022_compiler_vars.bat
to use version 14.41, instead of 14.40, I think it will work properly.Trying to do this for building pandas on Windows.
Installed packages
Environment info