Srabasti opened a new issue, #56566:
URL: https://github.com/apache/airflow/issues/56566

   ### What do you see as an issue?
   
   On attempting to install Airflow 3.1 on Windows 11 Pro using documentation 
link below:
   
https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html
   
   by running command:
   pip install "apache-airflow[celery]==3.1.0" --constraint 
"https://raw.githubusercontent.com/apache/airflow/constraints-3.1.0/constraints-3.10.txt";
   
   am getting error as below:
             raise DistutilsPlatformError(
             ...<3 lines>...
             )
         distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or 
greater is required. Get it with "Microsoft C++ Build Tools": 
https://visualstudio.microsoft.com/visual-cpp-build-tools/
   
         [end of output]
   
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
     ERROR: Failed building wheel for grpcio
     Building wheel for sqlalchemy (pyproject.toml) ... done
     Created wheel for sqlalchemy: 
filename=sqlalchemy-1.4.54-cp313-cp313-win_amd64.whl size=1557723 
sha256=a8b746cccbc74ffc1f871ca061f5a0307f9573a9eb77081ee6b894cf83cad70c
     Stored in directory: 
c:\users\sraba\appdata\local\pip\cache\wheels\66\d4\be\4c07d30f4e85a3d3789094f906c6050425b0183674c46548d0
   Successfully built dill sqlalchemy
   Failed to build grpcio
   error: failed-wheel-build-for-install
   
   × Failed to build installable wheels for some pyproject.toml based projects
   ╰─> grpcio
   
   Log attached in 
   
   
[Airflow_Installation_1sttry_grpcio_error_10112025.txt](https://github.com/user-attachments/files/22869461/Airflow_Installation_1sttry_grpcio_error_10112025.txt)
   
   As a next step, I installed vs_BuildTools and "Desktop development with 
C++", using link below:
   https://visualstudio.microsoft.com/visual-cpp-build-tools/
   
   Post installation, confirmed that installation is complete as per screenshot 
below.
   
   <img width="1266" height="686" alt="Image" 
src="https://github.com/user-attachments/assets/40b1d986-50fd-4d96-813e-b5befaf56058";
 />
   
   After rerunning command below:
   by running command as below:
   pip install "apache-airflow[celery]==3.1.0" --constraint 
"https://raw.githubusercontent.com/apache/airflow/constraints-3.1.0/constraints-3.10.txt";
   am getting error as below:
             raise CompileError(msg)
         distutils.compilers.C.errors.CompileError: command 'C:\\Program Files 
(x86)\\Microsoft Visual 
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX86\\x64\\cl.exe'
 failed with exit code 1
   
         [end of output]
   
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
     ERROR: Failed building wheel for grpcio
   Failed to build grpcio
   error: failed-wheel-build-for-install
   
   × Failed to build installable wheels for some pyproject.toml based projects
   ╰─> grpcio
   
   ### Solving the problem
   
   Appreciate any inputs to overcome this error, in case someone already 
encountered. 
   Once the fix is found, I can submit PR for documentation bug fix.
   
   ### Anything else
   
   Logs already included above. 
   I looked up for grpcio errors in StackOverflow using link below for any 
specific errors, however not found anything useful yet.
   
https://stackoverflow.com/search?q=%5Bairflow%5Dgrpcio&s=aa4332d0-832e-4e83-aaca-dff88da1a175&newreg=b4bd086ba056410fac32007cb5016671
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to