linkedin / pygradle

Using Gradle to build Python projects
https://github.com/linkedin/pygradle
Apache License 2.0
586 stars 147 forks source link

Struggling with virtualenv and sys.prefix #349

Closed alexogar closed 3 years ago

alexogar commented 3 years ago

Hi Guys,

Could you please help me find the root cause for following

> Task :ml:createVirtualEnvironment FAILED Using base prefix '/usr/local/Cellar/python@3.9/3.9.1_8/Frameworks/Python.framework/Versions/3.9' New python executable in /Users/alexogar/Projects/code/anomaly-logger/ml/build/venv/bin/python3.9 Not overwriting existing python script /Users/alexogar/Projects/code/anomaly-logger/ml/build/venv/bin/python (you must use /Users/alexogar/Projects/code/anomaly-logger/ml/build/venv/bin/python3.9) ERROR: The executable /Users/alexogar/Projects/code/anomaly-logger/ml/build/venv/bin/python3.9 is not functioning ERROR: It thinks sys.prefix is '/usr/local/Cellar/python@3.9/3.9.1_8/Frameworks/Python.framework/Versions/3.9' (should be '/Users/alexogar/Projects/code/anomaly-logger/ml/build/venv') ERROR: virtualenv is not compatible with this system or executable Running virtualenv with interpreter /usr/local/opt/python/libexec/bin/python