-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When installingc-compiler
on Windows, VS 2022 Build Tools init file is not installed
#66
Comments
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 Open the Visual Studio Installer. 2)Install Required Components 3)Run the Build Tools Command Line Open Start Menu, search for Developer Command Prompt for Visual Studio 2022, and run it. 4)Environment Variables |
I hope this should work! |
This solves the problem, but is not solving the fundamental problem, which is when you install The issue is that |
I also have this problem. Windows Server 2016 machine with Visual Studio 2022 installed and a fresh install of Anaconda 2024.06-1. When I After I Removing |
I've just confirmed that removing |
On reflection, I think the root cause here is the fact that I don't have a clear answer for what the Right Thing would be here. The best idea I've got is to avoid installing It sure would be convenient if Microsoft would provide a conda-forge package that actually installs VC++ but I'm going to guess that that isn't on their product roadmap. |
For me even with the workarounds of removing the old
So it seems to detect that I've VS 2022 installed. Everything works, however, if you activate conda in the "Developer Command Prompt". Is there a way to make it work in "normal" consoles? |
My current workaround for this issue is to install |
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
# Name Version Build Channel bzip2 1.0.8 h2bbff1b_6 c-compiler 1.7.0 hcfcfb64_1 conda-forge ca-certificates 2024.7.4 h56e8100_0 conda-forge expat 2.6.2 hd77b12b_0 libffi 3.4.4 hd77b12b_1 openssl 3.3.1 h2466b09_2 conda-forge pip 24.2 py312haa95532_0 python 3.12.4 h14ffc60_1 setuptools 72.1.0 py312haa95532_0 sqlite 3.45.3 h2bbff1b_0 tk 8.6.14 h0416ee5_0 tzdata 2024a h04d1e81_0 ucrt 10.0.22621.0 h57928b3_0 conda-forge vc 14.40 h2eaa2aa_0 vc14_runtime 14.40.33810 ha82c5b3_20 conda-forge vs2015_runtime 14.40.33810 h3bf8584_20 conda-forge vs2019_win-64 19.29.30139 he1865b1_20 conda-forge vswhere 3.1.7 h57928b3_0 conda-forge wheel 0.43.0 py312haa95532_0 xz 5.4.6 h8cc25b3_1 zlib 1.2.13 h8cc25b3_1
Environment info
The text was updated successfully, but these errors were encountered: