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


Groups > comp.lang.python > #79020

How to install and run a script?

Newsgroups comp.lang.python
Date 2014-10-12 13:17 -0700
Message-ID <9e37d62a-9391-44fc-8fa2-089ae81acfc5@googlegroups.com> (permalink)
Subject How to install and run a script?
From Ryan Shuell <ryanshuell@gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next — 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