Python and libraries on MacBook Pro
I need to add a couple of libraries to run a Python script. I'm a novice. Can you offer a tip or two? Thanks much! - Paul
MacBook Pro 15″, macOS 13.7
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
I need to add a couple of libraries to run a Python script. I'm a novice. Can you offer a tip or two? Thanks much! - Paul
MacBook Pro 15″, macOS 13.7
Are you referring to Apple's Python 3.9 installed by either 1) Xcode or 2) command line tools for Xcode? Or if the former is not installed, what version of Python and installed by what method?
By libraries, are you referring to Python packages (e.g. modules)?
Once I know the answer to the Python version and how you installed it, I would recommend that you visit the Python package sites and confirm that they are compatible with your version of Python. Then the command to install them should be next…
Again, check that the modules that you want to install do support Python 3.13 or later. If all good, enter the following command which updates pip and installs the modules whose names you replace below:
/usr/local/bin/pip3 install -U pip mod1name mod2name
Then, you refer to the individual module instructions for how you refer to each in your Python3 script and whether it is as simple as import ___, or from ___ import ___.
Thanks, VikingOSX!
I downloaded Python 3.13.0 from Python. I am referring to modules.
I have a script that calls for a few modules, so I need to install these first.
Thanks again.
Thank you!
Advice noted and taken!
I appreciate your help.
Python and libraries on MacBook Pro