- Check if your environment has pipenv by run pipenv in your termial. if yes, jump to 2.
brew install pipenv- Create virtualenv with pipenv and install the packages 2.1. if your project root directory has Pipfile.lock.
export PIPENV_VENV_IN_PROJECT=1 && pipenv sync -dif No, run
export PIPENV_VENV_IN_PROJECT=1 && pipenv shellit will create .venv folder under the root directory.
2.2. then, run
source .venv/bin/activateto activate your virtualenv
2.3. run pipenv install to install the packages from [packages] and [dev-packages]
2.4. run pip list to check if all the necessary python packages have been installed successfuly and correctly.
2.4. (Optional) run pipenv lock to create the Pipefile.lock, specificaly, when you have new libraries installed.
references: