Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Use pyenv For Virtual Environments

NOTE : Not really using this since it requires setting up something in the shell that slows down the return of the command line each time

using the built in [TODO: Code shorthand span ] instead. from python3 that was installed by homebrew

OLD Notes :

Got notes from this article, it's basically how you did the setup.

https : //medium.com/swlh/a - guide - to - python - virtual - environments - 8af34aa106ac

Script to create new project they have is :

mkdir $2 && cd $2 && pyenv local $1 && pyenv virtualenv venv - $2 && pyenv local venv - $2 && pyenv activate venv - $2

Where you pass a python version and a name to create the directory and project, of course, that doesn't deal with git

The manual way to do it is

cd ~/git - repos git init - - bare project _ name cd ~/dev git clone ~/git - dev/project _ name cd project _ name # add .gitignore # add README.md pyenv virtualenv 3.9.4 venv _ project _ name pyenv local venv _ project _ name

For PyCharm, just open the new directory, don't make a new project.

Note sure if you need that first local since you're setting it to the venv later.

Note, this is what's in the article, but I it look like you don't need the [TODO: Code shorthand span ] or [TODO: Code shorthand span ] commands so you removed them above.

mkdir project _ name cd project _ name pyenv local 3.9.0 pyenv virtualenv 3.9.0 venv _ project _ name pyenv local venv _ project _ name pyenv activate venv _ project _ name

tagging this with [TODO: Code shorthand span ] in case you accidentally search for that.