Skip to content

Instantly share code, notes, and snippets.

@gman77
Last active September 27, 2021 13:54
Show Gist options
  • Save gman77/881cddd14640288c5ec919e65be32668 to your computer and use it in GitHub Desktop.
Save gman77/881cddd14640288c5ec919e65be32668 to your computer and use it in GitHub Desktop.
python venv

for vscode when adding a venv use from terminal in root of project

python3 -m venv .venv

then will be prompted to change the interpreter, change it to the venv one.

xattr -d com.apple.quarantine chromedriver

pip freeze > requirements.txt (pip3 on macOS/Linux). The requirements file describes the packages you've installed in your virtual environment. With only this file, you or other developers can restore those packages using pip install -r requirements.txt (or, again, pip3 on macOS/Linux). By using a requirements file, you need not commit the virtual environment itself to source contro

Select and activate an environment#

By default, the Python extension looks for and uses the first Python interpreter it finds in the system path. To select a specific environment, use the Python: Select Interpreter command from the Command Palette (⇧⌘P).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment