Macaulay2 » Documentation
Packages » Python » setupVirtualEnvironment
next | previous | forward | backward | up | index | toc

setupVirtualEnvironment -- set up a virtual environment

Description

This sets up a Python virtual environment. It is equivalent to calling python3 -m venv dir on the command line.

i1 : dir = applicationDirectory() | "venv"

o1 = /home/profzoom/.Macaulay2/venv
i2 : setupVirtualEnvironment dir

Caveat

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.

See also

Ways to use setupVirtualEnvironment:

  • setupVirtualEnvironment(String)

For the programmer

The object setupVirtualEnvironment is a method function.


The source of this document is in Python/doc/venv.m2:39:0.