How to install and run a script?

ryguy7272 ryanshuell at gmail.com
Sun Oct 12 22:05:01 EDT 2014


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!



More information about the Python-list mailing list