How to Install Python 3.12 on mac OS (2024) + VS Code and Poetry with Homebrew

Опубликовано: 03 Январь 2024
на канале: Vincent Codes Finance
1,143
32

How to Install Python 3.12 on macOS (2024) with VS Code and Poetry using Homebrew, which is the easiest way to install a full Python environment for data analysis and empirical finance research.

In this video, I show you how to install Python 3.12 with VS Code and Poetry on macOS using Homebrew. Let's set up a powerful coding environment for all your data analysis needs! This tutorials is for beginners and more advanced users.

You will learn to install:
Homebrew, the package manager for macOS
Python 3.12 (and older versions)
Poetry the package manager (and why it's better than Anaconda)
Visual Studio Code (and configure it for Python)
Git and GitHub apps for version control and collaboration
A sandbox environment for your data analysis

👍 Please like if you found this video helpful, and subscribe to stay updated with my latest tutorials. 🔔

❤️ You can support this channel by buying me a ☕: https://buymeacoffee.com/codesfinance

For written instructions, check out my blog post: https://vincent.codes.finance/posts/i...

Commands used in this video:
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Hom...)"
brew install [email protected] [email protected] [email protected]
brew install poetry
poetry config virtualenvs.in-project true
brew install --cask visual-studio-code
brew install git
brew install gh
brew install --cask github
mkdir ~/Documents/sandbox
cd ~/Documents/sandbox
poetry init
poetry add pandas numpy scipy matplotlib seaborn statsmodels scikit-learn linearmodels pyarrow jupyter pytest
poetry shell

NOTE
If you want to link the brew python to the "python" command (in addition to "python3") and your version of macOS still links "python" to the default install, you need to add the following line to your .zshrc file: alias python='python3'

Video links:
Homebrew: https://brew.sh
Python: https://www.python.org
Poetry: https://python-poetry.org
VS Code: https://code.visualstudio.com
Git: https://git-scm.com
GitHub: https://github.com
iTerm2: https://iterm2.com/

🐍 More Vincent Codes Finance:
✍🏻 Blog: https://vincent.codes.finance
🐦 X:   / codesfinance  
🧵 Threads: https://www.threads.net/@codesfinance
😺 GitHub: https://github.com/Vincent-Codes-Finance
📘 Facebook:   / 61559283113665  
👨‍💼 LinkedIn:   / vincent-codes-finance  
🎓 Academic website: https://www.vincentgregoire.com/

🔖 Chapters:
00:00 Introduction
01:47 Brew + Poetry vs Anaconda
06:10 Installation
16:38 Sandbox environment
20:32 VSCode configuration

#python #mac #macos #vscode #poetry #finance


Смотрите видео How to Install Python 3.12 on mac OS (2024) + VS Code and Poetry with Homebrew онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Vincent Codes Finance 03 Январь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,143 раз и оно понравилось 32 людям.