You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何卸载Airflow?Ubuntu 16.04下卸载Airflow v1.10.3遇阻求助

Hey there! Let's dig into why Airflow's still lingering on your Ubuntu 16.04 system even after you tried those uninstall steps. Here's a step-by-step plan to wipe it out completely:

1. First, track down where Airflow is hiding

Start by finding exactly where the airflow command is located—this will tell us how it was installed in the first place:

which airflow

This might output something like /usr/local/bin/airflow or /home/your_username/.local/bin/airflow. Jot that path down for later.

2. Delete the Airflow executable and leftover files
  • First, remove the actual command file directly:
    sudo rm -f $(which airflow)
    
  • Next, hunt down Airflow's Python packages. On Ubuntu 16.04, Python 3's site-packages are usually in one of these locations:
    • /usr/local/lib/python3.5/site-packages/ (system-wide installation)
    • /home/your_username/.local/lib/python3.5/site-packages/ (user-specific installation)
      Delete any folders starting with apache-airflow using:
    # Replace the path with the one you found in your system
    sudo rm -rf /usr/local/lib/python3.5/site-packages/apache-airflow*
    
  • Don't forget Airflow's default configuration directory—it's almost always in your home folder:
    rm -rf ~/airflow
    
  • If there's a system-level config folder (less common but possible), delete that too:
    sudo rm -rf /etc/airflow
    
3. Fix pip3 and do a final uninstall sweep

Since you removed pip3 earlier, let's reinstall it to make sure we can clean up any remaining package traces:

sudo apt-get update && sudo apt-get install python3-pip

Then run a full, automated uninstall to catch any leftover Airflow packages:

pip3 uninstall -y apache-airflow

The -y flag skips confirmation prompts so it can clean everything without extra input.

4. Clear bash's command cache

Sometimes bash remembers commands even after the underlying files are gone. Run this to refresh its cache:

hash -r

Now try typing airflow again—it should return a "command not found" message if we've cleaned everything up.

内容的提问来源于stack exchange,提问作者Yassin Abid

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.12 05:08:18