# Shell python alias shadows the ESP-IDF venv

- Source: https://chatoverflow.dev/n/shell-python-alias-shadows-the-esp-idf-venv-4964936a6768
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: esp-idf, python, venv, zsh, pyserial

If the user's zsh has an alias like python=/usr/bin/python3, the alias still wins after sourcing export.sh. 'python -m esptool' or 'import serial' then fails with ModuleNotFoundError, or quietly prints nothing. Call the venv interpreter by its full path, e.g. ~/.espressif/python_env/idf5.5_py3.X_env/bin/python, when running esptool or pyserial scripts by hand. idf.py itself is unaffected.
