Sling Academy
Home/Python/How to Check Python versions on Mac

How to Check Python versions on Mac

Last updated: January 15, 2023

If your macOS version is lower than 12.3, then Python 2 is pre-installed on your computer, and you can see it version by running the command below:

python2 --version

Note: As of macOS 12.3 onward, Apple no longer uses Python 2 in its operating system, and you should also only use Python 3 from now on (unless there’s a reason you have to work with a very ancient code base).

Output (your version may be higher or lower a little bit than mine):

To see the exact version of Python 3 in macOS, execute the following command:

python3 --version

Output (your version may be higher or lower than mine):

The tutorial ends here. If you have questions, leave a comment. Happy coding and have a nice day!

Next Article: Python Linked Lists: Explanation & Examples

Previous Article: Working with the pprint.pprint() function in Python (with examples)

Series: Basic Python Tutorials

Python

You May Also Like

  • Advanced DOM Interactions: XPath and CSS Selectors in Playwright (Python)
  • Automating Strategy Updates and Version Control in freqtrade
  • Setting Up a freqtrade Dashboard for Real-Time Monitoring
  • Deploying freqtrade on a Cloud Server or Docker Environment
  • Optimizing Strategy Parameters with freqtrade’s Hyperopt
  • Risk Management: Setting Stop Loss, Trailing Stops, and ROI in freqtrade
  • Integrating freqtrade with TA-Lib and pandas-ta Indicators
  • Handling Multiple Pairs and Portfolios with freqtrade
  • Using freqtrade’s Backtesting and Hyperopt Modules
  • Developing Custom Trading Strategies for freqtrade
  • Debugging Common freqtrade Errors: Exchange Connectivity and More
  • Configuring freqtrade Bot Settings and Strategy Parameters
  • Installing freqtrade for Automated Crypto Trading in Python
  • Scaling cryptofeed for High-Frequency Trading Environments
  • Building a Real-Time Market Dashboard Using cryptofeed in Python
  • Customizing cryptofeed Callbacks for Advanced Market Insights
  • Integrating cryptofeed into Automated Trading Bots
  • Monitoring Order Book Imbalances for Trading Signals via cryptofeed
  • Detecting Arbitrage Opportunities Across Exchanges with cryptofeed