VOOZH about

URL: https://thenewstack.io/prepare-your-mac-for-python-development/

⇱ Prepare Your Mac for Python Development - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-02-09 08:00:13
Prepare Your Mac for Python Development
Python / Software Development / Tech Culture

Prepare Your Mac for Python Development

Landing Python on your Macintosh can be tricky. Here's how to install Parallels and Homebrew and stage the optimal development environment.
Feb 9th, 2025 8:00am by Damon M. Garn
👁 Featued image for: Prepare Your Mac for Python Development
I dabble in the world of Python development for fun, and recently, I decided to get a bit more serious with a dedicated environment. While I considered a new Raspberry Pi 5 (and may still get one!), I decided to keep things local with a dedicated Parallels virtual machine on my MacBook Pro. Mac VM images are available through Parallels, so the installation was a breeze. The rest of this article covers my next steps and should help anyone curious about setting up a useful but straightforward Python3 dev environment on macOS. Keep in mind that some of the software choices are based on my own preferences. Feel free to make your own selections. My deep preference for Vim is probably the most controversial choice.

MacOS and Python

I’ll provide specific commands where I can and suggestions otherwise. Admittedly, a few of these topics are basic common sense and best practice (such as managing software updates).

Set Up My Mac

Take a few minutes to customize macOS the way you like it. Creating an efficient and comfortable user interface is essential to setting up an environment that works with you, not against you. Here are some common settings:
  • Clean up the Dock by removing the (many) apps Apple adds by default. Reduce the Dock to just the apps you use frequently. Add the programs you install later in this list for easy access.
  • Set some inspirational wallpaper. I used the Python icon for motivation.
  • Configure at least two Spaces. If you’ve never used Spaces, this is one of the most helpful macOS efficiency tools. Spaces are virtual desktops that exist offscreen. You can switch between them quickly, leaving specific applications open on each. I use four Spaces on my Macs.
  • Adjust the display settings, font sizes and other visual settings to your preferences.
  • Set trackpad and keyboard settings to your taste. There are several efficiency options around these two devices, so be sure to research those. I use multiple monitors at high resolutions, so I bump up the size of the pointer to make it easier to find on such a broad visual area.
I prefer Chrome over Safari, so I also switch browsers at this point. I use cloud storage for most of my business documents, but I also run regular Time Machine backups. Set up a backup routine for your work. Finally, I update macOS and any applications currently installed to ensure I have the latest features and security updates. Be sure to do this regularly! You should have your own macOS preferences, but perhaps these ideas will give you new ideas.

Install Parallels Tools

My macOS/Python platform is a virtual machine. I use Parallels to host the various Linux and macOS VMs I use for my business. You could choose another virtualization platform, manage your Python projects on a physical Mac or use a non-Apple platform like Linux. Once I create my macOS/Python VM, I add Parallels Tools to ensure efficient communication. This doesn’t need to be a very powerful VM, as most Python applications are fairly small, especially when first starting out.

Install Homebrew

Few general utilities will be as helpful as the Homebrew package manager. Linux users will already be familiar with package managers like DNF and APT, but if you’re new to this software management approach, get ready to be impressed. Package managers give you the ability to install applications quickly and easily. Homebrew also lets you install software that is not available on Apple’s App Store. Not all developers want to bend to Apple’s strict requirements, and not all software is ready for the App Store. Install Homebrew by typing the following command in the Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Hot-Rod the Terminal

You’ll likely spend a lot of time at the command prompt while developing programs. While GUI tools are wonderful, sometimes the CLI is the better choice. Apple’s built-in Terminal application is tolerable, but there are other options. My favorite is iTerm2. This highly customizable Terminal replacement offers many practical features — far too many to list here. Take a look at these standout options to get you started with iTerm2:
  • Split pane views.
  • Extensive search capabilities.
  • Autocomplete options.
  • Customizable profiles for various projects. (Imagine a profile for Python development and another for file management tasks.)
For extra credit, consider enhancing iTerm2 with the Oh-My-Zsh framework to customize your shell environment further.

Update Python3

The latest macOS (Sequoia) includes Python 3.9.6. However, you really should update your Python version to the latest version to address bug fixes in the older Apple version. Open the Terminal and type python3 to see the current version. It’s probably Python3 3.9.6 — woefully out of date compared to the 3.13.1 version that was current at the time I wrote this piece.
👁 Image
Python 3.9.6 is well out of date.
Homebrew maintains extensive package support for Python3, Python modules, the PIP package manager and other necessary components, so I use it to update my Python. Here are the basic Homebrew commands:
brew update
brew install python3
brew link python3
These commands should automatically add the /opt/homebrew/bin/ PATH variable to the .zshrc file, but you’ll need to run the source command (or log out and back in) to update the session. If you type python3 now, you should see the updated version.
👁 Image
Use the most current Python3 version or one that suits your application.
Consider running brew upgrade python3 periodically to maintain current versions.

Spend Time IDLE-ing

You should already have access to the default Python3 editor, IDLE. You can access it from the Terminal or the Launchpad. IDLE is a good basic editor, and it’s nice that Python3 includes it. However, I’m looking for something more robust.

Install PyCharm Community Edition

I have nothing against the IDLE IDE, but I want to work with Python using PyCharm Community Edition from JetBrains. Download the .dmg file (scroll to the bottom of the page for the Community Edition) and drag the PyCharm CE icon into the macOS Applications folder. That’s it — a typical easy Mac program install. Customize the PyCharm CE user interface theme to taste and add any plug-ins you prefer. PyCharm also supports various other languages and includes a new AI support feature to explore. For those new to Python and PyCharm, the IDE contains a 40-lesson set of tutorials to get you started!
👁 Image
Consider the PyCharm CE IDE for your Python projects.

Install and Customize Vim

It may seem archaic, but I’m a big fan of the Vim text editor. There’s nothing quite like a basic text editor for getting things done without the distraction of wacky icons and 10,000 specialized features. As an author, I frequently just need to get words on paper (or screen, in this case), and Vim serves that purpose magnificently. Coding is a great example. Vim offers Python3 syntax highlighting, auto-indention and code folding to simplify your coding experience. To load these options automatically when Vim launches, I edit the ~/.vimrc file and add the following (use for comment lines):
" Syntax checking
syntax on
" Line numbering
set number 
" Highlight cursor line
set cursorline
" Indentions
filetype indent on
" Folding
set foldmethod=indent
set foldlevel=99
👁 Image
My initial, slightly customized .vimrc file.
Many other useful settings exist, but these are a good start for me. Many folks have placed their highly customized .vimrc configuration files online for reference. Some of these profiles are specifically tuned for Python development.
👁 Image
Vim with some Python syntax highlighting and line numbers.
Many Python-specific Vim plug-ins exist to further extend Vim’s capabilities as an IDE. Consider a plug-in manager if you decide to go down this rabbit hole.

Add the CotEditor

My latest favorite macOS application is CotEditor. I needed a basic GUI text editor to replace VS Code. I wanted something simple, graphical and (if possible) open source. And I found CotEditor. So far, this tool has been wonderful, and exactly what I need. You may or may not use it directly for coding, but it’s great for Markdown documentation or other basic editing projects.
👁 Image
The CotEditor is an excellent basic text editor.

Set Up venv for Python3 Projects

Python virtual environments help avoid dependency hell. Your various projects may require different modules or even different Python versions. Managing these rigid requirements systemwide would be challenging, so Python uses virtual environments (venv). Modules and other components installed in a venv are limited by its boundaries and do not affect other venvs. I typically create a new venv for each Python project. You will activate and deactivate the virtual environments as you change from project to project. The basic process to create and activate a venv for a project named “new-app” is:
mkdir new-app
cd new-app
python3 -m venv .venv
source venv/bin/activate
The best practice is to name virtual environments “venv”, “env” or “.venv”.

Wrap Up

You’re now ready to begin constructing Python projects on your Mac! As noted in the beginning, some of these tools and preferences are my own choices, so simply select the ones you like or are curious about and ignore the others. Macs make great dev platforms, and using a virtual machine is a handy way of experimenting with different tools and options. Get yourself rolling with macOS and Python today!
TRENDING STORIES
Damon M. Garn owns Cogspinner Coaction, LLC, an IT writing and editing company. He authors articles, tutorials, and labs for today’s top IT industry leaders. He regularly contributes to The New Stack, TechTarget, and CompTIA. Damon has 20 years of...
Read more from Damon M. Garn
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.