setupVirtualEnvironment dirThis sets up a Python virtual environment. It is equivalent to calling python3 -m venv dir on the command line.
|
|
To use the virtual environment, you must restart Macaulay2 and then load the Python package with the "executable" configuration option set to point to the Python executable in dir.
The object setupVirtualEnvironment is a method function.
The source of this document is in Python/doc/venv.m2:39:0.