I do not have Python 3 installed in my system. But now I think the conflict is due to the python versions (2.7 & 3). I was facing some issues while installing virtualenv, installed it with pip after some efforts. I am using MacOS, and python2.7 comes inbuilt. If you haven’t installed Python 3 yet it’s easy to do so with a single homebrew command: brew install python This will install the latest Python 3 release available through HomeBrew. RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3' Installing Python 3 on the Mac If you already installed Python 3 on the Mac using the official Python installer from here or Homebrew, you can skip this section. The copy of python that belongs to the OS still lives here: /usr/bin/python Which $x readlink $(which $x) $x -version echo done and I’m running latest macOS (13.1 Ventura). Here's what you need to do get started: Download the installer package from Python's official website. My mac shows: > /usr/bin/python3 -version Python 3.9.6. python3 -version How to Install Python With the Official Installer The easiest way to download the newest version of Python is through the official website. In short, you can use your SYSTEM python to create your. That GitHub issue is a massive wall of text. Here, I wrote you a little script: brew uninstall -force -ignore-dependencies python python2 python2.7 python3 python3.6 > /dev/null 2>&1Įcho for x in python python2 python3 do Instead, install the latest Python 2 version using, for example, the Homebrew. So it would make sense to have a summary somewhere google-visible. For some reason, brew recently decided that python refers to python3 instead of python2.
0 Comments
Leave a Reply. |