Virtualenv setting guide
Guides how to set up virtualenv environment to run FOSSLight Scanner as Python Package.
Contents
📋 Prerequisite
In case of macOS, install additional packages.
brew install openssl
brew install libmagic
brew install postgresql
💻 Install Python, python-dev
- Refer to the Installation Guide for how to install Python.
- Install python-dev, python-distutils according to the python version you are using.
$ sudo apt-get install python3.8 python3-pip python3.8-dev python3.8-distutils
📋 Create and activate virtualenv
See the Python virtaulenv page for details.
$ pip3 install virtualenv
$ virtualenv -p /usr/bin/python3.8 venv
$ source venv/bin/activate
⌨️ Virtualenv commands
Command description | command |
---|---|
Create a virtual environment. | virtualenv -p [python_version] [env_name] |
Activate a virtual environment. | source [env_name]/bin/activate |
Deactivate a virtual environment | deactivate |