Skip to content
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

Airflow installation failed with pip command on Python 3.8 #36520

Closed
2 tasks done
cd10anil opened this issue Jan 1, 2024 · 2 comments
Closed
2 tasks done

Airflow installation failed with pip command on Python 3.8 #36520

cd10anil opened this issue Jan 1, 2024 · 2 comments
Labels
area:core invalid kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet

Comments

@cd10anil
Copy link

cd10anil commented Jan 1, 2024

Apache Airflow version

2.8.0

If "Other Airflow 2 version" selected, which one?

No response

What happened?

When tried to install AirFlow using pip command in python 3.8 environment, if failed with Error: invalid requirement. The details below in screenshot.
image

What you think should happen instead?

The installation of airflow should succeeded.

How to reproduce

  1. Windows 11 machine, VS Code , create a empty folder, setup a project folder. on vs terminal, create environment for python, activate the environment. then try to install airflow with command given in github for pip installation
    "pip install 'apache-airflow==2.8.0' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.8.0/constraints-3.8.txt"
    on which it throw below error.
    ERROR: Invalid requirement: "'apache-airflow==2.8.0'"

Operating System

Windows 11 Home Single language OS

Versions of Apache Airflow Providers

apache-airflow==2.8.0

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@cd10anil cd10anil added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Jan 1, 2024
Copy link

boring-cyborg bot commented Jan 1, 2024

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

@potiuk
Copy link
Member

potiuk commented Jan 1, 2024

This is expected. Check prerequisites. Airflow on Windows can only be installed with WSL2:

https://airflow.apache.org/docs/apache-airflow/stable/installation/prerequisites.html

Airflow™ currently can be run on POSIX-compliant Operating Systems. For development it is regularly tested on fairly modern Linux Distros and recent versions of MacOS. On Windows you can run it via WSL2 (Windows Subsystem for Linux 2) or via Linux Containers. The work to add Windows support is tracked via #10388 but it is not a high priority. You should only use Linux-based distros as “Production” execution environment as this is the only environment that is supported. The only distro that is used in our CI tests and that is used in the Community managed DockerHub image is Debian Bullseye.

@potiuk potiuk closed this as completed Jan 1, 2024
@potiuk potiuk added the invalid label Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core invalid kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet
Projects
None yet
Development

No branches or pull requests

2 participants