Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79030

Re: How to install and run a script?

Newsgroups comp.lang.python
Date 2014-10-12 19:05 -0700
References <9e37d62a-9391-44fc-8fa2-089ae81acfc5@googlegroups.com>
Message-ID <6d282d09-fa5f-4d3a-aaed-5c15f8f9b56f@googlegroups.com> (permalink)
Subject Re: How to install and run a script?
From ryguy7272 <ryanshuell@gmail.com>

Show all headers | View raw


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???


Ahhhhh!!!  I didn't know I needed to run it from the command prompt!  Ok, not it makes sense, and everything works.

Thanks to all!

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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