uranusjr commented on issue #15768:
URL: https://github.com/apache/airflow/issues/15768#issuecomment-837961151


   > My proposed solution would be to prepend `PIP_USER=false` to the 
construction of the call to pip within `utils/python_virtualenv.py` here:
   
   I don’t think that’s right, that command is used to invoke `virtualenv`, not 
`pip`. And prepending won’t work because that is a Bash-specific syntax and 
does not work with `subproces.Popen()` (unless `shell=True` but please don’t do 
that).
   
   One possible fix would be to introduce an `environ` argument to 
`execute_in_subprocess()` so the `PIP_USER` environment variable can be removed 
when invoking pip.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to