How to install Pyinstaller without cmd prompt? - python

I'm a beginner so there might be something wrong written, not a native speaker either...
I created a python script to edit some spreadsheets, and I'm wondering if there's a way to convert that to a .exe, so I don't have to open vscode every time. I did some search and find out that pyinstaller is a way to do it, but I couldn't figure out how to install it.
I'm using a corporate machine so I don't have access to the cmd prompt nor the terminal.
I can download the tar.bz2 file from anaconda.org, I don't know if that helps, but that's all I could do rn

You can download the Pip package as you have said and follow the steps of this link https://www.geeksforgeeks.org/download-and-install-pip-latest-version/ to install the downloaded package.

If you have an IDE called “PyCharm” installed on your machine, here’s what you can do:
The GUI Way
Go to the File Tab.
Click on Settings:
A dialog will popup. Click on Project: <Your Project Name>. Then click on Python Interpreter and then click on the + sign on the bottom of the dialog.
Another dialog will popup. In the search bar at the top, search for the package we want, in our case pyinstaller. Relevant results will appear. Click on the desired option.
Final Step. Just click Install Package at the bottom of the dialog and wait till it installs.
Hooray! You have installed the package.
The Integrated Terminal Way
Open Pycharm and at the bottom, click on the Terminal option this will open up the integrated terminal.
Type pip install pyinstaller and wait till it installs. You may have to use pip3 install pyinstaller. Wait till it installs.
Done!
Installing Another Terminal
If you don’t have PyCharm, you can choose this way. You can install some third-party terminal like Git Bash. You can download this terminal by clicking here.
After downloading, you can open Git Bash and try to run the commands that I mentioned in the above section. That’s it!
Note that if pip install pyinstaller or pip3 install pyinstaller doesn’t work, you may need to add python -m or python3 -m at the start of the commands.
Also note that the 2nd and 3rd options require pip and python to be in the system’s path.
Thank You!

Related

python -- manually install downloaded module without admin rights

I am trying to install the python package us without admin privileges.
I have tried pip install us in Anaconda prompt to no avail.
I have also tried the suggestion listed here: Install python modules on windows without admin rights--didn't work.
I have now downloaded the files from the site https://pypi.org/project/us/ to my desktop and need to know how to install the package from here.
I am using the Spyder IDE and Python 3.7. Is there a way to do this?
Thanks.
I do this on the daily and if I understand what you are saying you are doing it right. If pip install us in command prompt or shell (if you are using Windows OS) doesn't work try py -m pip install us. Make sure you are using command prompt and not using your IDEz
As you can see it worked first try for me.
Since you have downloaded the files, Extract them in a folder and normally a setup.py file must be include, open command prompt in that folder and run :
python setup.py install

How do I direct cmd to the right place and begin installation of pygame?

I am tying to install pygame 3.5 to my laptop and when doing so cmd doesn't work the way I want to. I don't know how to use cmd much I only got to where I was by opening at the location in the second screen shot and typing in -m pip install pygame.
This clearly doesn't work, so I was wondering what do I type in cmd to get it work (including cd and how to get to a certain location). I need to install pygame to use on my compiler which is IDLE. I have Python 3.5.0 and I for certain reasons can't use a different version.
Here are the screenshots of what I am doing
The way I access file is I do Shift+Right Click and Open Command Line here and just type the stuff -m... stuff mentioned above and shown in first screen shotin command line
To install with pip you need to use C:...\ python -m pip install full_name_of_file.whl and pygame needs to be in the same directory as pip. At least, that has always worked for me.
Sometimes, it is easier to navigate to the folder in which pip 3.5 is and put the whl there, then run C:..\ pip install full_name_of_file.whl. You may also need to run CMD as Administrator, because it is making changes to restricted folders (depending on how your administration is set up).

PIP From command line error

I'm trying to download modules using the pip command in the CMD. I have pip and python both added to my path directory. I don't know how to get this to work though, I've tried upgrading my pip but just keep getting exceptions. Does anyone know how to solve this?
I'm very new to working from the command line...
I tried working around the initial fatal error
Then I tried upgrading my pip but it didn't work.
Any help much appreciated.
#Josh,
Try this.
Open your cmd prompt with admin rights (if you have privileges).
This can be done by right-clicking on the start menu and select the admin cmd in the context box provided for windows 8 and 10.
For Windows 7 you click Start>All Programs>Accesories, then right-click cmd prompt and Run as Administrator.
In the prompt, you should see something like C:\WINDOWS\system32>
If pip is installed to your path, type in "python -m pip install yourPackageNameHere"
Example given to install the twilio package (which is pretty cool):
C:\WINDOWS\system32>python -m pip install twilio
This should take care of it.
For some other helpful information, you can check out these sites.
pip users guide
https://pip.pypa.io/en/stable/user_guide/#installing-packages
or
The Python documentation (which is a programmer's best friend in time of need)
https://www.python.org/
Hope this helps.

xcode - Run the code in Terminal

I am coding a Python 2.7 script in Xcode. When click on build and run I get the confirmation it was successful, however nothing is shown. I would like to see the output the script in a terminal window.
Is there a way to get Xcode doing that for me, instead of having to open it on my own?
You can open Terminal from Application folder, then just enter
python gameover.py
If you don't have python in your path install it with
brew install python
If you are new to brew, install it from here http://brew.sh/
Here is a duplicate question: https://apple.stackexchange.com/questions/131375/how-run-a-py-python-script-in-xcode with same result
May I suggest you to try https://www.jetbrains.com/pycharm/ ?

Unable to run rodeo after pip installing

I am trying to run rodeo (http://blog.yhathq.com/posts/introducing-rodeo.html). I followed the instructions-- pip installed it. The install seemed to go fine, but when I type rodeo . , I get the following:
-bash: rodeo: command not found
The files from the install are stored in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rodeo (though I think it should be stored in /usr/bin/local) and there is no executable. Similar things happen when I try, for example, to pip install ipython. My guess is that it has something to do with my PATHs, but I have not been able to solve the problems. Thanks in advance for any help.
I do not see mention of a pip install of rodeo from the page you referenced. Rather, a .dmg file is downloaded, you should open it, and drag rodeo to your Applications folder. Start the rodeo app via the Applications folder. After starting, it checks your environment for other dependencies and asks your approval for installation. Install all the missing pieces, apparently one at a time, since you keep clicking "TRY STARTING AGAIN" after each install.
I tried same thing on my ubuntu PC. And 'rodeo' command didn't work too.
So, What i did is
search where the rodeo app was installed
rodeo app was installed in '/opt/Rodeo/' path. (If you installed in other path, then revise beneath command)
type command '/opt/Rodeo/rodeo' and punch the enter button.
I don't know why but, where your set directory in terminal window,
It is not allowed to omit 'opt/Rodeo/'.
I hope it works on your computer.

Categories

Resources