2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 13:46:54 +00:00

Added admonition to install virtual environment on Windows

This commit is contained in:
eeintech 2020-10-20 09:18:57 -05:00
parent 5c21eb734d
commit f1dbb9b8a0

View File

@ -51,7 +51,7 @@ InvenTree can be installed and run from the Windows command line, assuming the f
!!! info "WSL" !!! info "WSL"
Alternatively, if you are running under the Windows operating system you can install and run InvenTree using the <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">WSL (Windows Subsystem for Linux)</a> framework. Running under WSL provides a Linux compatible layer which simplifies InvenTree installation. Alternatively, if you are running under the Windows operating system you can install and run InvenTree using the [WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/install-win10) framework. Running under WSL provides a Linux compatible layer which simplifies InvenTree installation.
### FreeBSD ### FreeBSD
@ -82,6 +82,15 @@ python3 -m venv inventree-env
source inventree-env/bin/activate source inventree-env/bin/activate
``` ```
??? note "Virtual Environment on Windows"
To create and activate a virtual environment in Windows, run the following commands:
```
py -m venv inventree-env
.\inventree-env\Scripts\activate
```
Refer to the [official Python documentation](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) to setup a virtual environment on Windows.
This will place the current shell session inside a virtual environment - the terminal should display the ``(inventree-env)`` prefix. This will place the current shell session inside a virtual environment - the terminal should display the ``(inventree-env)`` prefix.
!!! warning "Activate virtual environment" !!! warning "Activate virtual environment"