Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Sibylle Koczian Newsgroups: comp.lang.python Subject: Re: Puzzled Date: Sun, 1 Nov 2015 11:19:47 +0100 Lines: 25 Message-ID: References: <4CFEDC132D44AC49BA0E91FBEB947119084A742852@DCBL123VX.root.sutterhealth.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de gJ15AFC9/62FyWKBxPH/SwhNJk2Oz4bWw9sixIpgkRmQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'correct.': 0.07; 'directory)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'statements': 0.09; 'python': 0.10; 'importing': 0.15; 'interpreter': 0.15; 'variables': 0.15; 'message-id:@web.de': 0.16; 'received:188.174': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:mnet-online.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; '>>>': 0.20; 'windows': 0.20; '64-bit': 0.22; 'seems': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'command': 0.26; 'installed': 0.26; 'header:X-Complaints-To:1': 0.26; 'executing': 0.27; 'yesterday': 0.27; 'fine': 0.28; 'environment': 0.29; 'work.': 0.30; 'morning': 0.32; 'run': 0.33; 'changing': 0.34; 'file': 0.34; 'running': 0.34; 'gives': 0.35; 'so,': 0.35; 'files,': 0.35; 'today?': 0.35; "isn't": 0.35; 'but': 0.36; 'should': 0.36; 'basic': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'received:org': 0.37; 'things': 0.38; 'files': 0.38; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'some': 0.40; 'programs': 0.62; 'charset:windows-1252': 0.62; 'prompt': 0.79; 'can\x92t': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: ppp-188-174-179-45.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <4CFEDC132D44AC49BA0E91FBEB947119084A742852@DCBL123VX.root.sutterhealth.org> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98036 Am 30.10.2015 um 17:20 schrieb Robinson, Wendy: > Hi there, > > I installed Python 3.5.0 64-bit for Windows yesterday and tried some > basic programs successfully. > > This morning I rebooted my computer and can’t get a single one to work. > The interpreter seems to be fine and the environment variables look > correct. But every py file I try to run at the >>> prompt gives me a > NameError. > Did you try the exact same things yesterday and this morning? The >>> prompt isn't made for running py files, but for directly entering statements and executing them. Running py files from a windows command prompt (probably after changing into the right directory) should work. Importing py files at the >>> prompt and using their content should work (again, if Python can find them). So, what exactly did you do yesterday and what exactly did you do today? HTH Sibylle