I used: "sudo apt-get install idle3" and "sudo apt install idle" in my attempts to install Python IDLE from the terminal. Both worked fine, with a successful installation message afterwards. However, when I type $ idle or $ idle3, nothing happens. When I tried to open it from the "Applications" menu, it also would not open. (Note: I can set up a python file and run it without trouble, so I am sure that both Python2 and 3 are properly installed.) Any suggestions on how to make IDLE run correctly, or maybe to reinstall it a different way so that it actually opens?
Related
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).
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/ ?
I have come across this issue multiple times
The instructions for installing and running bugjar are just the following:
$ pip install bugjar
$ bugjar myscript.py arg1 arg2
I never understood what that dollar sign stands for?
I am using Python(x,y) 2.7 and I managed to run the pip install bugjar in iPython shell (I don't know what a shell is, I usually run and write my code in Spyder; but that particular command would not run in Spyder).
And now I do not know how to initiate the GUI debugger. I tried to run bugjar test.py in that same shell, though it does not work. It appears that I have to pass two arguments. But the instructions do not say which arguments are meant to be passed.
How do I actually initiate the GUI?
$ is just a general way of indicating a command prompt in Linux / UNIX systems.
It would basically be your C:\> prompt in Windows. It's not something you type out to get your installation working.
If you're on Windows and have never installed a python package using pip before, open up a Windows console or command line terminal (You can click Start Menu, Run, then type "cmd" and press Enter to open a Windows console). Then follow these instructions first to install pip on your system:
https://pip.pypa.io/en/latest/installing.html
After pip is installed on your system, then you can run the commands in your Windows console as instructed by the Bugjar installation guide (minus the $ signs).
I know this may be the most silliest questions to be asked but i'm suddenly not able to open python from terminal.
I have python 2.7 installed on ubuntu 14.04 box, but now when i fire python on my command line i get the error
aman#L-JZCHG32:~$ python
The program 'python' is currently not installed. You can install it by typing:
sudo apt-get install python-minimal
I have tried reinstalling python
sudo dpkg -P python2.7
sudo apt-get install python2.7
but it still wont work. Can somebody suggest me what went wrong and how can i correct it.
Thanks.
It seems you've probably corrupted your PATH variable. Try /usr/bin/python in the terminal. If that works, you'll need to fix your PATH variable.
A quick fix would be export PATH=/usr/bin:$PATH but there's probably something not quite right with the whole path variable at the moment, which would be worth further examining.
I initially had Python 2.7, which often comes bundled with the OS (currently using Linux Mint 12). I wanted to try Python 3, so I installed it alongside Python 2. All is fine there, and I can run both versions in the terminal by calling either python or python3.
However, there doesn’t seem to be any way to start IDLE with Python 3. Is there some flag that I can pass to IDLE when I start it so that I can pick which version of Python I would like it to run?
E.g. (these don't work),
idle3 or idle --shell=python3 or something like that. I read about pointing to a different executable in this question about IDLE for Python 3 (on Vista). However, I can't seem to do the analogous thing on Linux.
Just type sudo apt-get install idle3 in your terminal and IDLE for your version of Python 3 previously installed will be installed.
Then both are compatible. You run the 2.7 IDLE from your terminal by just typing idle. And you run the IDLE 3 version by just typing idle3 in the terminal. That worked for me.
You'd have to install the appropriate package - Python 2.x and 3.x aren't compatible with each other.
You can find the link here.
I had to install python3-tools to get idle3 (using Fedora 18).
I installed IDLE using the following command:
sudo yum install python-tools.x86_64
And I can run both commands, and it gives me a Python 2 or Python 3 shell, respectively:
idle
idle3
Christy said:
"I had to install python3-tools to get idle3 (using Fedora 18)."
sudo yum install python3-tools
This also works on Fedora 19.
In the case of Python 2, you can install it by running this command:
sudo apt-get install idle
And in the case of Python 3 you can install it by running this command:
sudo apt-get install idle3
This works fine for me.