Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 198019

General usage of any python tool and running scripts and Apple specific questions are on topic here. Detailed languag-specific questions about programming (where it won’t matter if python runs on any os) belong on Stack Overflow.

3 votes

Python with Catalina : No module named 'OpenGL'

You need a python library, not the system framework. The standard OpenGL python library is PyOpenGL. However, that seems to be different from the library requested by the code. …
benwiggy's user avatar
  • 38k
2 votes

How to confirm MacOS "system" Python version

How does one return the version of the system Python? /usr/bin/python3 -V returns: Python 3.9.6 …
benwiggy's user avatar
  • 38k
1 vote

Updating python on macOS

You can easily install any new version of python you wish; and you cannot remove the system python. macOS traditionally comes with python2. … Using /usr/bin/python will use the system python, necessary for compatability; and using /usr/bin/env python will use the newer installed python. …
benwiggy's user avatar
  • 38k
2 votes

Why does Python keep popping up and occupying my CPU?

Python with a capital P is the launcher app, found at /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app This is used when a python script uses MacOS GUI components, such as … It's likely that some process is calling a python script to do something. What that is and why it's using so much CPU is unclear without more analysis. …
benwiggy's user avatar
  • 38k
0 votes

Python 3 'json' module is actually corrupted

I cannot reproduce the errors on two Macs here, one running python 3.7.4 on Mojave; and one running 3.8.3 on Big Sur. … I installed python directly from the packages on python.org. >>> json.dumps(d) '{"a": 100, "b": 200}' >>> print(json. …
benwiggy's user avatar
  • 38k
-1 votes

Is it safe to delete python and pip versions 2 and 3

However: modules installed by pip2 for use by other python2 installations can also be accessed by the system python. pip itself is very small, but deleting it won't remove the modules. …
benwiggy's user avatar
  • 38k
2 votes

Old python script not working on mac - needs tkinter

Make sure that the script calls the system python: /usr/bin/python Make sure that Tkinter is imported as Tkinter (with a Capital T). Using all lower case will fail with an error message. … Tkinter is included with the built-in version of python on MacOS, so there must be some other problem on your Mac if Tkinter is not 'there'. …
benwiggy's user avatar
  • 38k
4 votes

Can I update to python3.7 from python2.7 in my macOS 10.14.1?

You can have both python 2.7 and python 3 on your Mac. (In fact, python 2.7 is part of the OS and can't really be removed). …
benwiggy's user avatar
  • 38k
-1 votes

How do I let preinstalled python 2.7 access pip installed modules?

You should just be able to run pip install name from the command line to install correctly on the system python. …
benwiggy's user avatar
  • 38k
0 votes

Is Python Pre-Installed on Every Mac Version?

Yes, python has been on MacOS (OS X) since day 1. Some parts of the OS rely on python scripts, and these have stayed the same for many years. … Catalina comes with python3, but the OS may not come with any python version in the future. …
benwiggy's user avatar
  • 38k
3 votes

Install python3 from Homebrew vs the installer from https://www.python.org/?

There was a recent post about some problem with brew python, but it may be a local issue, or have been fixed. Python 3 'json' module is actually corrupted …
benwiggy's user avatar
  • 38k
1 vote
Accepted

What version of python is the one that I cannot uninstall

So anything in /usr/local will be a third-party python. The 'meat' of the package is usually installed in /Library/Frameworks/. "If you can delete it, it's not system installed." … Unless you intend to install and use multiple pythons at the same time, I find using the python installer directly from https://www.python.org/downloads/ to be much easier than Homebrew, which seems to …
benwiggy's user avatar
  • 38k
1 vote
Accepted

How can I get .py text documents to show up in recents?

I think this may go back to this issue, about what Spotlight considers to be a 'Document'. What does Spotlight consider to be a 'Document'? In short: Spotlight may not consider .py files to be 'text d …
benwiggy's user avatar
  • 38k
2 votes
Accepted

Which macOS tools require Python 2 (rather than Python 3)?

A number of Automator actions for working with PDFs have at their heart python scripts -- the ones for combining PDFs, watermarking PDFs, extracting pages and converting images. … Catalina will be the last version to include python 2.7, and it does so purely to ensure that these 'legacy' scripts will continue to work without any extra effort. …
benwiggy's user avatar
  • 38k
4 votes

Will macOS Big Sur remove the default Python installation for good?

Interestingly, python v2 in Big Sur is a Universal Binary, so has been compiled for Apple Silicon. python3 is included as part of Xcode Command Line Tools: there is a little stub python3 command that tells …
benwiggy's user avatar
  • 38k

15 30 50 per page