pip install -r requirements.txt
pip install <package-name>
pip freeze > requirements.txt
- Press
Command/Ctrl + Shift + P
and Look for Python: Select Interpreter - Select the desired python environment
- Check your settings.json for changes and note the new value of
"python.pythonPath"
- Set up an environmental variable named
VSCODE_PYTHON_PATH
with the new value of"python.pythonPath"
- revert the change in settings.json
for example,
# .bashrc
export VSCODE_PYTHON_PATH='/home/joey/.pyenv/versions/python-graphene/bin/python'
If we change our database model, we must run:
python manage.py makemigrations
python manage.py migrate