diff --git a/tools/idf_tools.py b/tools/idf_tools.py index 2683c3977a..386877b43c 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -2686,9 +2686,8 @@ def action_install_python_env(args): # type: ignore install_legacy_python_virtualenv(idf_python_env_path) env_copy = os.environ.copy() - if env_copy.get('PIP_USER') == 'yes': - warn('Found PIP_USER="yes" in the environment. Disabling PIP_USER in this shell to install packages into a virtual environment.') - env_copy['PIP_USER'] = 'no' + # Enforce disabling possible pip 'user' option to prevent installation error with virtual environment + env_copy['PIP_USER'] = 'no' constraint_file = get_constraints(idf_version) if use_constraints else None