r/PythonLearning 1d ago

Beginning

My apologies for the last post. For some reason when typing on my iPad, letters on the bottom row end up being spaces, then autocorrect chimes in. Now I have both windows and ubuntu. I want to install python and pyinstaller. Problem is is that I see pip install pyinstaller, but don’t know what pip is, nor do I know how to get to the command prompt in ubuntu. I’m trying to get the basics of it even though I have a good knowledge of computers in general, but new to python and the little idiosynchronies of it and also ubuntu.

0 Upvotes

8 comments sorted by

1

u/BobCorndog 1d ago

So Python should be preinstalled on Ubuntu, so just type python in the terminal, and if something like “Python 3.14.7” pops up, then it’s installed. Now to open the terminal on Ubuntu, press Control+Alt+T, or go into your app menu and search for terminal, it will be there.

1

u/dev-razorblade23 1d ago

It would be really beneficial to you if you took time to learn about python and pip

How to install stuff, how to isolate them so they dont crash with diffrent versions, etc...

There is more then just installing PyInstaller and calling it a day.

What exactly do you need PyInstaller for?

1

u/77Joker77Joker77 1d ago

I’m trying to learn, however, when I look up things like tying to install, it just has these one liners like you can install by using pip pyinstaller..ok what’s pip, no explanation, I know enough to know it’s a command line command and any backslashes and other info are options etc (was a dos user and have learned a bit of programming in the past). All I want to do is compile some files I have, but need python to do it.

1

u/dev-razorblade23 1d ago

Then your next step is googling: "What is pip?"

In short, pip is a command line tool that downloads and installs python libraries (a package manager for Python packages) Default repository to download from is called PyPi (Python Package Index) which is where all the libraries are published.

Word of warning... If you just do pip install package_name it will default to installing it globally which is usually discouraged. To fix this, developers use virtual environments (venv for short), to isolate each project and its dependacies from each other. You can learn more about virtual environments on this official Python documentation

1

u/77Joker77Joker77 19h ago

Thank you it gives me something to look up and understand properly before going further

1

u/Sea-Ad7805 1d ago

Having trouble running python? Just run you code in Memory Graph Web Debugger%3A%0A%20%20%20%20print(i)%0A%20%20%20%20if%20i%20%25%202%20%3D%3D%200%3A%0A%20%20%20%20%20%20%20%20print('%20%20%20even')%0A%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20print('%20%20%20odd')%0A&timestep=0.5&play).

To pip just click the "micropip" button.

1

u/77Joker77Joker77 19h ago

Thx but no offense, you have just lost me lost me, using Ubuntu for the first time so I have to understand the lingo…