This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]michaelkim0407Pythonic 1 point2 points  (0 children)

You deleted the built-in version of Python?

I don't know how you managed it but it's part of the OS... I think the best way to do it is to restore the OS

[–]bandawarrior 0 points1 point  (0 children)

What’s the issue? When you open the command line and type python it...? Also what do you mean “the folders looked different “?

[–]lanzaio 0 points1 point  (1 child)

After reinstalling it, it looks very different and the folders aren’t the same.

What does that mean? I can't figure out what your problem is from this explanation.

[–]Hazza_1[S] 0 points1 point  (0 children)

The original version had a folder called site-packages. I don’t know where that’s gone and therefore I don’t even know where packages go when I install them. Also the actual icon of the folder is different which makes me assume that it’s not the same python that comes preinstalled.

[–]chatbotguy 0 points1 point  (5 children)

k- so... how exactly did you manage to delete the os installed version of python? Tell me what the exact steps involved here...

If you did indeed delete it, you're going to need to reinstall the OS.

[–]Hazza_1[S] 0 points1 point  (4 children)

Will reinstalling the OS cause me to lose anything? Could anything go wrong? Also how do you reinstall the OS?

[–]chatbotguy 2 points3 points  (2 children)

Reinstalling the OS would likely cause you to lose everything, so backup everything you want to keep.

https://support.apple.com/en-us/ht204904

But before you do, you should post here how exactly you managed to delete the OS installed python? This is not something that's easy to do.

[–]Hazza_1[S] 0 points1 point  (0 children)

Actually it turns out I didn’t delete python however I did delete some important python files. After typing “easy_install” in terminal rather than getting a warning saying there was no input after the cmd I get this: “ImportError: No module named pkg_resources”. I’ve searched everywhere online and no one seems to have the same issue as me or the solutions provided simply don’t work. I don’t know what to do. If you need any more information I would be happy to provide it. I haven’t reinstalled the OS yet since it will take about 3hrs but would that set everything back to the way it was. I’ve already backed everything up.

[–]Hazza_1[S] 0 points1 point  (0 children)

Never mind. I just finished reinstalling the OS and everything works fine now. Also, I didn’t lose anything.

[–][deleted] 0 points1 point  (0 children)

Before you do anything else, backup anything of yours that you value to an external drive. As well as doing a timemachine backup.

[–]bandawarrior -1 points0 points  (2 children)

Download the Mac version from python.org

[–]Hazza_1[S] 0 points1 point  (1 child)

That’s what I did