Python files

Hello!

I need help!

I was trying to use some python scripts in terminal and I was getting a "path" error so I made the mistake of trying to fix it myself😅.

To make it short I moved all the files from /library/python/3.9/bin into /library/developer/commandlinetools/usr/bin

thankfully, I choose the option to pick both versions on duplicate files so they are all still there.

Can someone please list/screenshot all the files that should be in /library/python/3.9/bin so I can put them back?

Have I messed up my OS by doing this or can I just put them back?

Thanks!

On a stock macOS 13.0 install there is no /Library/Python directory.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

% sw_vers
ProductName:		macOS
ProductVersion:		13.0
BuildVersion:		22A380
% ls -lh /Library 
total 0
drwxr-xr-x@  4 root  wheel             128B Oct 18 05:36 Apple
drwxr-xr-x  12 root  admin             384B Nov  1 16:35 Application Support
drwxr-xr-x   8 root  wheel             256B Oct 18 05:36 Audio
drwxr-xr-x   9 root  wheel             288B Oct 31 09:05 Bluetooth
drwxrwxrwt   6 root  admin             192B Nov  1 10:11 Caches
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 ColorPickers
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 ColorSync
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 Components
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 Compositions
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 Contextual Menu Items
drwxr-xr-x@  2 root  wheel              64B Oct 18 05:36 CoreAnalytics
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 CoreMediaIO
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 DirectoryServices
drwxr-xr-x   5 root  wheel             160B Oct 18 05:36 Documentation
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 DriverExtensions
drwxr-xr-x   6 root  wheel             192B Nov  1 16:35 Extensions
drwxr-xr-x   4 root  wheel             128B Nov  1 16:35 Filesystems
drwxrwxr-t   3 root  admin              96B Oct 18 05:36 Fonts
drwxr-xr-x   5 root  wheel             160B Oct 18 05:36 Frameworks
drwxr-xr-x@  2 root  wheel              64B Oct 18 05:36 GPUBundles
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 Graphics
drwxr-xr-x   7 root  wheel             224B Oct 18 05:36 Image Capture
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 Input Methods
drwxr-xr-x   4 root  wheel             128B Nov  1 16:35 InstallerSandboxes
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 Internet Plug-Ins
drwxr-xr-x   4 root  wheel             128B Oct 18 05:36 Java
drwxr-xr-x@  4 root  wheel             128B Nov  1 16:35 KernelCollections
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 Keyboard Layouts
drwxr-xr-x   6 root  wheel             192B Nov 23 00:27 Keychains
drwxr-xr-x   3 root  wheel              96B Nov  1 16:35 LaunchAgents
drwxr-xr-x   3 root  wheel              96B Nov  1 16:35 LaunchDaemons
drwxr-xr-x   5 root  wheel             160B Oct 31 09:05 Logs
drwxr-xr-x  36 root  wheel             1.1K Oct 18 05:36 Modem Scripts
drwxrwx---   3 root  _analyticsusers    96B Oct 31 09:06 OSAnalytics
drwxr-xr-x   5 root  wheel             160B Oct 18 05:36 OpenDirectory
drwxr-xr-x   4 root  wheel             128B Oct 18 05:36 Perl
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 PreferencePanes
drwxr-xr-x  44 root  wheel             1.4K Nov 23 00:27 Preferences
drwxr-xr-x   4 root  admin             128B Nov 23 00:27 Printers
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 QuickLook
drwxrwxr-x   4 root  admin             128B Oct 31 09:05 Receipts
drwxr-xr-x   4 root  wheel             128B Oct 18 05:36 Ruby
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 Sandbox
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 Screen Savers
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 ScriptingAdditions
drwxr-xr-x  10 root  wheel             320B Oct 18 05:36 Scripts
drwxr-xr-x   4 root  wheel             128B Oct 18 05:36 Security
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 Speech
drwxr-xr-x   3 root  wheel              96B Oct 18 05:36 Spotlight
drwxr-xr-x@  2 root  wheel              64B Oct 18 05:36 StagedDriverExtensions
drwxr-xr-x@  3 root  wheel              96B Oct 31 09:05 StagedExtensions
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 StartupItems
drwxr-xr-x   3 root  wheel              96B Nov  1 16:36 SystemExtensions
drwxr-xr-x   4 root  wheel             128B Oct 18 05:36 SystemMigration
drwxr-xr-x   2 root  wheel              64B Oct 18 05:36 SystemProfiler
drwxr-xr-x@  7 root  wheel             224B Nov 23 00:27 Updates
drwxr-xr-x   8 root  wheel             256B Oct 18 05:36 User Pictures
drwxr-xr-x  43 root  wheel             1.3K Oct 18 05:36 User Template
drwxr-xr-x   4 root  wheel             128B Oct 18 05:36 Video
drwxr-xr-x   5 root  wheel             160B Oct 18 05:36 WebServer
% 

Thats possible! i forgot to mention that i was reffering to the hidden library that comes up when you press shift+cmd+. when you're in user folder. I installed python via terminal and then later moved the files from library/python/3.9/bin to library/developer/commandlinetools/usr/bin . I just want to know what files used to be in library/python/3.9/bin so i can move them back.

i forgot to mention that i was reffering to the hidden library … in user folder

Right, but there’s no Python there either (-:

I installed python via terminal

Presumably using a third-party installer? Or perhaps a package manager, like Homebrew? If so, I recommend that you re-install using the some mechanism.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Python files
 
 
Q