Skip to content

Latest commit

 

History

History
75 lines (61 loc) · 1.23 KB

PipEnvCMDS.md

File metadata and controls

75 lines (61 loc) · 1.23 KB

Pipenv Commands

# Install Python
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
# Create a folder djnago-handson
mkdir djnago-handson
# Install Pipenv
pip install pipenv
# Move to the directory where you have create django-workshop folder
cd /home/rupesh/djnago-handson
# Creates virtual environment using python 3.6
pipenv install --python 3.6
# Activate pipenv virtual environment
pipenv shell
# List all the python packages installed in the virtual environment
pip list
# Install django in the virtual environment
pipenv install django==2.2
# Activate pipenv shell - activates the pipenv environment
pipenv shell
# install package
pipenv install packageName
# Uninstall package
pipenv uninstall packageName
pipenv clean                  # to clean the environment and remove the uninstall packages from environment
# After pipinstall run piplock
pipenv lock
# Get the pipenv python environment
pipenv run which python
pipenv --venv
# Installs the packers specified in Pipenvfile
pipenv sync