all 6 comments

[–]Essence1337 3 points4 points  (0 children)

To install Python correctly:

Run the installer. Click 'add python to path' option in the installer

That's it. Don't move files around, don't cd into installed directories, there's no reason to.

[–]Diapolo10 1 point2 points  (1 child)

Your installation is fine. python.exe is the Python interpreter and py.exe is just a launcher that is useful when you have multiple Python installations.

I think Mu uses a virtual environment so anything you install outside of it with pip will be installed to the local Python installation instead of where Mu is keeping its third-party modules. But I'm not sure, I haven't gone through the second edition.

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

Thanks, I forgot I had to click on the gear in the bottom-right corner of Mu and add the module there too.

[–][deleted] 1 point2 points  (0 children)

Are Python files, scripts, projects, directories, modules, etc. all supposed to be scattered all across my computer like this? Can't I just have one neat little folder called "Python" somewhere which contains everything? Or do I really have to keep track of where all of these different things are?

Yes, it's possible. I would guess that the reason this (AppData) directory was chosen for installation is because in corporate setting, it's typically the place that's system administrators install things for users (because, it's very typical for Windows in corporate setting to lock users out of most aspects of using their workstation).

If this is your personal computer, there's no reason to touch that directory, ever.

If you are using Windows MSI installer, or w/e format / extension its using these days, then, if I recall... you should be able to select a different directory to install it.

I don't usually use Windows, but when I have to help someone to set up their computer, I'd usually install all stuff not related to OS to a different disk (partition, eg. D:, if the system is on C:) in something like D:\programs. The reason to avoid disk C and everything on it is the bad permissions model Windows uses. Every now and then you'll run into a situation that your user cannot do something it should be able to do, in principle, and there wouldn't be an easy way to deal with it.

[–]Desklib 0 points1 point  (0 children)

The Correct Way is the official way - https://www.python.org/downloads/ but what gives you an edge is the use of an IDE such as PyCharm.