Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

StepDescriptionRemark
1

Install virtualenv from PyPI:

pip -install virutalenv

Comes with

  • appdirs 1.4.4
  • distlib 0.3.1
  • filelock 3.0.12
  • six 1.15.0

2

On Windows (only if you want to use powershell):

change the ExecutionPolicy of powershell:

  • Open powershell as administrator
  • Enter Set-ExecutionPolicy RemoteSigned

Otherwise the activate script for a virtual environment will not be executed.

Note: using classical "cmd", this step is not necessary


3

To create a virtual environment flecsimo_test:

  • change to the directory, that will contain the virtual environment folder, e.g. cd <...>\\Projects, where <...> denotes any path of your choice.
  • create the virtualenv by
        virtualenv flecsimo_test
    or (if you have not assigned .py files to the python interpreter:
        python virtualenv flecsimo_test

4

To use the environment, go to to the folder of the environment (in our example flecsimo_test) an and activate it by

    .\Scripts\activate

You may reset your terminal to normal operation with

    .\Scripts\deactivate


5The environment may be removed completely by simply deleting the home directory (e.g. flecsimo_test) and all sub-directories of the environment,

...