- Install user Python (~/Library/Python/3.x/bin)
- Update PATH in .bash_profile (source .bash_profile)
- Install virtualenv: pip install virtualenv
- Change dir to project folder (e.g. my_project_folder)
- Create virtualenv (e.g. virtualenv my_project)
- Activate (e.g. source my_project/bin/activate)
- Run VSCode on project folder (e.g. code my_project)
- Change python env (⇧⌘P) to my_project/bin/python
- Enjoy
No comments:
Post a Comment