Command: activate

The activate command allows you to activate an ActiveState project on your local computer. Activating is the process of downloading the build associated with the project, the language interpreter and a set of packages, and creating a virtual environment for the interpreter to run in.

For example, when you run state activate ActiveState\ActivePython-3.6.6, ActivePython 3.6.6 and all selected packages are installed and configured and a virtual environment is created, allowing you to run code in the project directory using your specific project configuration. If you have system or other installed versions of Python on the computer they are not affected by the activated project, and the activated project is totally isolated from any existing Python configuration. This allows you to be confident that you are working with a clean environment that will not be affected by dependencies in other projects.

Usage

state activate
state activate <owner/projectName>

state activate

You can run state activate without any arguments if you are inside a directory that has an activestate.yaml in its parent directory structure. This will activate that activatestate.yaml.

state activate

This will activate a project for the first time, or from a directory other than the project directory.

Where “owner” refers to your username or the organization name that the project belongs to.