Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79021
| References | <9e37d62a-9391-44fc-8fa2-089ae81acfc5@googlegroups.com> |
|---|---|
| Date | 2014-10-13 07:27 +1100 |
| Subject | Re: How to install and run a script? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14802.1413145667.18130.python-list@python.org> (permalink) |
On Mon, Oct 13, 2014 at 7:17 AM, Ryan Shuell <ryanshuell@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to install and run a script? Ryan Shuell <ryanshuell@gmail.com> - 2014-10-12 13:17 -0700
Re: How to install and run a script? Chris Angelico <rosuav@gmail.com> - 2014-10-13 07:27 +1100
Fwd: How to install and run a script? Abhiram <abhi.darkness@gmail.com> - 2014-10-13 01:58 +0530
Re: How to install and run a script? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-12 21:35 +0100
Re: How to install and run a script? ryguy7272 <ryanshuell@gmail.com> - 2014-10-12 19:05 -0700
Re: How to install and run a script? Michael Torrie <torriem@gmail.com> - 2014-10-13 23:19 -0600
Re: How to install and run a script? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-14 08:30 +0100
Re: How to install and run a script? Dave Angel <davea@davea.name> - 2014-10-14 06:30 -0400
csiph-web