0
votes

I have followed a number of steps but could not get airflow up and running in my conda virtual environment.

below are the steps I have followed.

Issue below command in my conda environment.

pip install apache-airflow==1.10.10 --constraint https://raw.githubusercontent.com/apache/airflow/1.10.10/requirements/requirements-python3.7.txt.

There were issues regarding VC++ not present.This issue has been resolved post installation of VC++ and added it in my environment variable. I have even added AIRFLOW_HOME in my environment variable.

Unfortunately below command is not working.

airflow initdb I have not been able to start the webserver as well.

airflow webserver -p 8080 my system is not aware of airflow.When I am issuing 'airflow initdb' commmand,I am getting below error.

(biometric) C:\Users\royan\Anaconda3\envs\biometric\lib\site-packages\airflow\bin>airflow initdb 'airflow' is not recognized as an internal or external command, operable program or batch file.

Please suggest the steps I need to perform to resolve this error.

1

1 Answers

0
votes

I believe the easiest way to install Airflow in an Anaconda environment is to use the conda-forge repository:

conda create -n airflow
conda activate airflow
conda config --env --add channels conda-forge 
conda config --env --set channel_priority strict 
conda install airflow