Integrated Python

Hello.

Will Python still be integrated in macOS BigSur?

Kind regards,

xR0M30x
Python 2, yes, for some reason. Python 3, no. Running python3 from Terminal launches Install Command Line Developer Tools. FWIW, ruby is still bundled, it might be worth using Homebrew going forward.
Thanks for the answer. This is everything I needed to know :)
Hi, now that BigSur is available I would understand a bit more about Python3, because, unlike what is written here, I've read somewhere in the net that Python3 is installed by default on BigSur, so I'm pretty confused.
Few days ago I installed python 3 from the official website, but since I don't need it, I started to delete all the files related to "python3", but I'm afraid I've deleted something of the system.

Do you confirm that, as default on BigSur, there's only python2 installed?

And so, in this case, can I delete all the files I find on MacOS related to python3 (As, for example, the ones in /usr/local/bin)?

Hi, now that BigSur is available I would understand a bit more about Python3, because, unlike what is written here, I've read somewhere in the net that Python3 is installed by default on BigSur, so I'm pretty confused.

No need to be confused. It is safe to assume that anything you read on the net is a lie until you can verify it yourself.

Few days ago I installed python 3 from the official website, but since I don't need it, I started to delete all the files related to "python3", but I'm afraid I've deleted something of the system.

The operating system is well-protected against these kinds of things. You can't do any damage without real, malicious intent.

Do you confirm that, as default on BigSur, there's only python2 installed?

Yes

And so, in this case, can I delete all the files I find on MacOS related to python3 (As, for example, the ones in /usr/local/bin)?

Yes

However, you do seem to be missing the big picture. Any scripting languages shipped by Apple with the operating system should be considered for Apple's use alone. In all other respects, they should be treated as deprecated. They could be removed at any time and there is no guarantee that any operating using them will succeed. Many of the tools and techniques used in modern scripting (pip, anaconda, etc.) will not work on with the default scripting languages installed on a Mac. Full details are available here.

Hi, thanks for the reply. I was going to delete the files, but then I opened an app that asked me to install Developerkit and automatically installed python3 so I have to keep it installed anyway. 😂😅
I have installed python3.9.
I try to build a python script for speechRecognition.

I installed
pip install SpeechRecognition
brew install audioport
pip3 install pyaudio

Then copy an paste from a copple of examples: I.G.

Code Block
#!/usr/bin/env python3
# NOTE: this example requires PyAudio because it uses the Microphone class
import speech_recognition as sr
# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)

and so on.
What i get all time is an error. Most like:

Code Block
||PaMacCore (AUHAL)|| Error on line 1277: err='-66748', msg=Unknown ErrorTraceback (most recent call last): File "/Users/horst/VisualStudioCodeWork/Python_Projects/Amelie_03/SpeechRecognition.py", line 9, in <module> with sr.Microphone() as source: File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/speech_recognition/__init__.py", line 87, in __enter__ self.stream = self.audio.open( File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyaudio.py", line 750, in open stream = Stream(self, *args, kwargs) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyaudio.py", line 441, in __init__ self._stream = pa.open(arguments)OSError: [Errno -9986] Internal PortAudio error

I have googled so many time. Reinstall, and install. Follow all tips. Finally i have no idea more.

Is there anybody can help?
Thanks in advanced.

P.S. On Linux all works fine. Why not on mac?
Integrated Python
 
 
Q