diff options
author | Derek Keeler <d3r3kk@users.noreply.github.com> | 2020-04-02 19:00:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 19:00:21 (GMT) |
commit | 45217af29c7f380089af17beb48a5ea0560bbb9d (patch) | |
tree | 7ecd36d9c56655462f578ade4dd815b7328b7258 /Doc/using | |
parent | 7a6f3bcc43ed729f8038524528c0b326b5610506 (diff) | |
download | cpython-45217af29c7f380089af17beb48a5ea0560bbb9d.zip cpython-45217af29c7f380089af17beb48a5ea0560bbb9d.tar.gz cpython-45217af29c7f380089af17beb48a5ea0560bbb9d.tar.bz2 |
bpo-38972: Link to instructions to change PowerShell execution policy (GH-19131)
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/venv-create.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/using/venv-create.inc b/Doc/using/venv-create.inc index 6c6617d..c39048d 100644 --- a/Doc/using/venv-create.inc +++ b/Doc/using/venv-create.inc @@ -83,6 +83,17 @@ The command, if run with ``-h``, will show the available options:: particular note is that double-clicking ``python.exe`` in File Explorer will resolve the symlink eagerly and ignore the virtual environment. +.. note:: + On Microsoft Windows, it may be required to enable the ``Activate.ps1`` + script by setting the execution policy for the user. You can do this by + issuing the following PowerShell command: + + PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser + + See `About Execution Policies + <ttps:/go.microsoft.com/fwlink/?LinkID=135170>`_ + for more information. + The created ``pyvenv.cfg`` file also includes the ``include-system-site-packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-packages`` option, ``false`` otherwise. |