I'm fairly new to Python but not programming and I have some questions about the Python ecosystem if someone could shed some light for me. Most of my python experience has been on a windows computer. I installed python3 and pycharm and had no questions what so ever. Then, I decided to get some work done on my MacBook and needed to install python 3 opposed to python 2 currently installed. That's where I fell down the rabbit hole.
I went to the python website and installed python 3. Then someone recommended I install it using HomeBrew. So I don't really understand Homebrew. My understanding is, it's a package manager for macOS. Basically it's like what pip is to python, what homebrew is to macOS? If I were just to install python 3 without homebrew I could call it in terminal as Python3 asdfasdf and it would work fine no? Also, what is all this PATH information I keep seeing?
Also, if I were to use pycharm instead of the python compiler via terminal would I even need homebrew because doesn't pycharm manage everything via pip anyways? I noticed something called pip3.... what is that? In windows I just typed in Python -m pip install asdf and it worked fine. I assumed, typing python3 -m pip install would install to the python3 directory unless I'm missing something?
Well then, that led me to find some information about virtual environments and I don't understand what's going on anymore. I mainly develop in java and never had to create a virtual environment or use anything like homebrew. Any information would be great! Sorry for the longish post.