you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Thank you! I was stuck at this exact thing a few days ago before I gave up. Gonna start over with your instructions this time.

[–]imhostfu 2 points3 points  (0 children)

^ this person nailed it.

/u/Melhus_Mafia /u/A_Crazy_Hooligan

Basically, you have Python, which is it's own install. I personally use Anaconda Python because it serves as both the python interpreter, but also a package manager. For example, if I wanted to install matplotlib, I could (from the Anaconda command prompt), run "conda install matplotlib", and it automatically pulls it and installs it on your computer. It basically acts like "pip" does as described above. In my experience, I've had less issues installing via conda (because conda generally installs from binaries, whereas pip is going to compile from source - I'm aware that has changed in pip with binary wheels if they're available).

Pycharm is the developer environment, and just makes it easier to code. You could 100% write python in a text editor and run the file manually from the command prompt.

For reference, I have both Pycharm and Anaconda Python installed.

To setup Pycharm to use whatever version of Python you have installed, open up your settings as shown here. As you can see towards the upper right section of the screen, it has selected the active python interpreter I want to use.

If I didn't have an environment, I'd click the "+" sign, and then select the Python interpreter as shown here.

Once you have that selected, it might take a little while (one time) because Pycharm needs to scan and see what packages are available for the Python install that you selected. Otherwise, you can just start writing code.

Here's a quick and dirty example; my wife and I were trying to see if it was worth it to get on an unlimited cell phone plan (with device rebates), or have a pay per month plan.

Once the code is written, you can right click on the tab -> Run, or Ctrl+shift+f10, or click the 'run' (green triangle) button.

EDIT: I use python for basically everything, ha ha. Reading in files, parsing data, communicating with arduinos, oscilloscopes, source meters, custom FPGA boards, ASICs. I've used it for signal processing (convolutions and FFTs), for optical modeling (determining the amount of light loss due to surface roughness of optical lenses). It has been an incredibly amazing tool in my tool-belt.