Python Environment
Python Environment
Version 12.3.1
Install home-brew:
Link : https://brew.sh
Installing pyenv
Link : https://github.com/pyenv/pyenv
https://github.com/pyenv/pyenv-virtualenv
Installing Python
Installing Poetry
Link : https://python-poetry.org/
Certificate error:
Error:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'
error.
Link: https://stackoverflow.com/questions/68275857/urllib-error-urlerror-
urlopen-error-ssl-certificate-verify-failed-certifica
Setting the PATH: (For both pyenv and poetry)
OR
Link: https://techpp.com/2021/09/08/set-path-variable-in-macos-
guide/#:~:text=In%20case%20you%20want%20to,or%20zsh%20(z%20shell)
nano ~/.zshrc
source ~/.zshrc
echo $PATH
/Users/meghanaseshasai/.pyenv/shims:/Users/meghanaseshasai/ps1/code/
homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/Users/meghanaseshasai/
ps1/code/homebrew/bin:/Users/meghanaseshasai/ps1/code/homebrew/
sbin:/Users/meghanaseshasai/.local/bin:/usr/local/bin:/usr/bin:/
bin:/usr/sbin:/sbin
python3
import django
print(django.get_version())
4.2.1