Python virtual environment simplify for Ubuntu

Use python3 native venv module, use .venv (as opposed to .env) to avoid collision with .env (environment variable) files
This commit is contained in:
rsp2k
2021-10-14 09:34:06 -06:00
committed by GitHub
parent 6268a84cbd
commit 971456fcc3

View File

@@ -41,12 +41,11 @@ This ensures stale objects are removed from NetBox keeping an accurate current s
## Ubuntu 18.04
```
sudo apt-get install virtualenv
cd /opt
git clone https://github.com/bb-Ricardo/netbox-sync.git
cd netbox-sync
virtualenv -p python3 .env
. .env/bin/activate
python3 -m venv .venv
. .venv/bin/activate
pip3 install -r requirements.txt
```