Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Marko98

Cancelled
Original poster
Nov 18, 2021
6
0
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!
 
Last edited:
How about installing python with brew. You even get to choose the version and it will end up in /opt/homebrew/bin
 
I don't bother with brew, I just get python from here:

Or via miniconda if that's what I feel I need.

Your standard (delivered with MacOS) python3 and pip3 files should be in /usr/bin so not sure why your "/Library/python" had them.
 
Can any of you guys please go to the hidden libary (displayed by cmd + shift + .) while in finder and the going to /python/3.9/bin and taking a screenshot?
 
Contents of ~/Library/python/bin will depend on the site-packages you installed and will vary from user to user. I recommend just sorting /library/developer/commandlinetools/usr/bin by date added
 
  • Like
Reactions: Marko98
Contents of ~/Library/python/bin will depend on the site-packages you installed and will vary from user to user. I recommend just sorting /library/developer/commandlinetools/usr/bin by date added
Didn't know thats possible, how do I do that?
 
Right click sort fields in Finder, you have option to add a column
Yeah, there are a ton of files added at that time which I'm sure I haven't moved, so don't want to touch anything. Everything seems to be working ok either way. Do you think I messed up the OS or something? Should I do a reinstall?
 
OS will work fine either way, and even python script imports will work fine. Only thing contents of ~/Library/Python/3.X/bin is responsible for is binaries installed via pypi etc.
 
OS will work fine either way, and even python script imports will work fine. Only thing contents of ~/Library/Python/3.X/bin is responsible for is binaries installed via pypi etc.
Thank you!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.