Re: How to install and run a script?
Michael Torrie Wrote in message: > On 10/12/2014 08:05 PM, ryguy7272 wrote: >> Ah!!! I didn't know I needed to run it from the command prompt! Ok, >> not it makes sense, and everything works. >> >> Thanks to all! > > You don't have to run python apps from the command line. Apps that > throw up windows can usually be run by double-clicking the py file in > windows. But apps that communicate solely on the terminal or console > have to be run in that environment. > > > If the command he's typing starts python Then he needs to run it from the cmd prompt. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list
Re: How to install and run a script?
On 14/10/2014 06:19, Michael Torrie wrote: On 10/12/2014 08:05 PM, ryguy7272 wrote: Ah!!! I didn't know I needed to run it from the command prompt! Ok, not it makes sense, and everything works. Thanks to all! You don't have to run python apps from the command line. Apps that throw up windows can usually be run by double-clicking the py file in windows. But apps that communicate solely on the terminal or console have to be run in that environment. No, you need to double click a pyw file to get a windows app, py files always give you a console. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list
Re: How to install and run a script?
On 10/12/2014 08:05 PM, ryguy7272 wrote: > Ah!!! I didn't know I needed to run it from the command prompt! Ok, not > it makes sense, and everything works. > > Thanks to all! You don't have to run python apps from the command line. Apps that throw up windows can usually be run by double-clicking the py file in windows. But apps that communicate solely on the terminal or console have to be run in that environment. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to install and run a script?
On Sunday, October 12, 2014 4:18:19 PM UTC-4, ryguy7272 wrote: > I'm an absolute noob to Python, although I have been programming in several > other languages for over 10 years. > > > > I'm trying to install and run some scripts, and I'm not having much success. > > > > I followed the steps at this site. > > https://docs.python.org/2/install/ > > > > I have Python 2.7.6 Shell. > > > > If I type this: > > python setup.py install > > > > I get this: > > SyntaxError: invalid syntax > > > > > > If I try this: > > setup.py beautifulsoup > > > > I get this: > > SyntaxError: invalid syntax > > > > > > If I got to File > Open . . . . navigate to a folder and open the setup.py > file and hit F5 . . . . it looks like it runs, but I can't tell what it does > for sure, and then nothing works after that.For instance, I downloaded > something called 'Flask'. I put that folder in my Python27 folder, and typed > 'pip install Flask' and I keep getting errors. > > > > Any idea how to run a simple program??? Ah!!! I didn't know I needed to run it from the command prompt! Ok, not it makes sense, and everything works. Thanks to all! -- https://mail.python.org/mailman/listinfo/python-list
Re: How to install and run a script?
On 12/10/2014 21:17, Ryan Shuell wrote: I'm an absolute noob to Python, although I have been programming in several other languages for over 10 years. I'm trying to install and run some scripts, and I'm not having much success. I followed the steps at this site. https://docs.python.org/2/install/ You're looking at the wrong docs. Having said that I'd just grab pip, see http://pip.readthedocs.org/en/latest/installing.html Once it's successfully installed just pip install beautifulsoup -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list
Fwd: How to install and run a script?
Begin forwarded message: > From: Ryan Shuell > Subject: How to install and run a script? > Date: 13 October 2014 1:47:58 am IST > To: python-list@python.org > > I'm an absolute noob to Python, although I have been programming in several > other languages for over 10 years. > > I'm trying to install and run some scripts, and I'm not having much success. > > I followed the steps at this site. > https://docs.python.org/2/install/ > > I have Python 2.7.6 Shell. > > If I type this: > python setup.py install > > I get this: > SyntaxError: invalid syntax > Have you completed installation? If you type “Python” in Cmd, or “Python” in terminal, do you get the Python prompt “>>>” ? My guess is that your Python installation’s executable isn’t in the Windows / Linux $PATH variable. Give us more details so we can help you out further. :) Thanks Abhiram “Py,Py,Py your boat. Gently down the IOstream"-- https://mail.python.org/mailman/listinfo/python-list
Re: How to install and run a script?
On Mon, Oct 13, 2014 at 7:17 AM, Ryan Shuell wrote: > I'm an absolute noob to Python, although I have been programming in several > other languages for over 10 years. > > I'm trying to install and run some scripts, and I'm not having much success. > > I followed the steps at this site. > https://docs.python.org/2/install/ > > I have Python 2.7.6 Shell. > > If I type this: > python setup.py install > > I get this: > SyntaxError: invalid syntax Hi! The commands you're looking at need to be run from your regular shell; I'm guessing you may be on Windows, so that would be the command prompt (cmd.exe). But rather than playing with setup.py directly, you should now be able to use pip, which is also run from the command line: C:\>pip install flask C:\>\python27\Scripts\pip install flask The first version works if you've added the appropriate directories to your PATH, the second is where the executable is actually found. I have several Pythons installed, so I didn't let it put itself into PATH; chances are you can take the easy route. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
How to install and run a script?
I'm an absolute noob to Python, although I have been programming in several other languages for over 10 years. I'm trying to install and run some scripts, and I'm not having much success. I followed the steps at this site. https://docs.python.org/2/install/ I have Python 2.7.6 Shell. If I type this: python setup.py install I get this: SyntaxError: invalid syntax If I try this: setup.py beautifulsoup I get this: SyntaxError: invalid syntax If I got to File > Open . . . . navigate to a folder and open the setup.py file and hit F5 . . . . it looks like it runs, but I can't tell what it does for sure, and then nothing works after that.For instance, I downloaded something called 'Flask'. I put that folder in my Python27 folder, and typed 'pip install Flask' and I keep getting errors. Any idea how to run a simple program??? -- https://mail.python.org/mailman/listinfo/python-list