a-shell
a-shell copied to clipboard
Pyvenv: Unable to enter virtual environment
Currently, as far as I know, there’s no way to source the activate file in the virtual environment.
Hi, build 211 (currently on TestFlight: https://testflight.apple.com/join/WUdKe3f4 ) has virtual environments working for Python. It's built upon venv
, but not exactly identical: only user-installed packages are in the virtual environment, system packages are shared between all environments (and pip is not renitialized).
Syntax is the usual: python -m venv virtualEnvironment
, followed by source virtualEnvironment/bin/activate
to activate the new environment, deactivate
to deactivate the environment.