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

preview_player
Показать описание
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. 🔔

Commands used in this video:
xcode-select --install
brew install poetry
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:

🐍 More Vincent Codes Finance:

🔖 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
Рекомендации по теме
Комментарии
Автор

I followed your installation procedure. But two problems arise. I could not create a profile with data science, and it failed to detect the kernel. Can you help me with that?

TanmaySahooPMA
Автор

I have install python with this way (brew install python). Can I install packages with out creating .venv ? because I don't want to put all of my python files in that directory mostly in my one drive. I have tried to install by using "pip3 install" in the Terminal but it's not work.

jobbjabb