-
Notifications
You must be signed in to change notification settings - Fork 17
How to use Pipenv with text editor IDE's like Atom or Visual Studio Code
In this example, we will be using Visual Studio Code.
Installing Pipenv:
- Open you computers CLI
- Enter pip install pipenv
Cloning a repo that has a pipenv (pipfile):
- Go to the directory where you would like to clone the repo.
https://gyazo.com/a9f6021dfbc915b687c9ab15c96130ca
-
Run "git clone 'project'" https://gyazo.com/7770b1d1ab124a9534df8be454023a56
-
Run "pipenv install" (This will look into the pipfile and install all the dependencies and library's). NOTE: This creates the virtual environment on your local computer. https://gyazo.com/97f691090d29a45cb60c27cf38614434
-
Run "pipenv shell" to launch the virtual environment. Launching the environment will point all the library's to the virtual environment. If you do not launch the venv then you will get missing import errors. NOTE: you must always launch the environment when you restart your computer. https://gyazo.com/f5ae6907dbbf114a985b0fd7fa493d00