Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'error:': 0.05; 'executable': 0.07; 'interpreter.': 0.07; 'mentioned,': 0.07; 'executes': 0.09; 'message-id:@4ax.com': 0.09; 'modifies': 0.09; 'modules.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'worked,': 0.09; 'python': 0.10; 'syntax': 0.13; 'suggest': 0.15; 'importing': 0.15; 'interpreter': 0.15; '"python': 0.16; '>in': 0.16; 'anyone?': 0.16; 'install"': 0.16; 'invokes': 0.16; 'modules,': 0.16; 'numpy': 0.16; 'path).': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:import': 0.16; 'thoughts?': 0.16; 'directory.': 0.18; 'library,': 0.18; 'url:home': 0.18; 'variable': 0.18; 'versions': 0.20; 'windows': 0.20; '2015': 0.20; 'work,': 0.21; '"",': 0.22; 'arguments': 0.22; 'trying': 0.22; 'errors': 0.23; 'specified': 0.23; 'third-party': 0.23; 'import': 0.24; '(most': 0.24; 'mon,': 0.24; "i've": 0.25; 'command': 0.26; '(which': 0.26; 'header:X -Complaints-To:1': 0.26; 'question': 0.27; "skip:' 10": 0.28; 'looks': 0.29; 'be:': 0.29; "i'm": 0.30; 'work.': 0.30; "i'd": 0.31; 'error.': 0.31; "can't": 0.32; 'third': 0.33; '-0700': 0.33; 'directory,': 0.33; 'instead,': 0.33; 'open': 0.33; "i'll": 0.33; 'file': 0.34; 'running': 0.34; 'behind': 0.35; 'could': 0.35; 'installing': 0.35; 'path': 0.35; 'skip:> 10': 0.35; "isn't": 0.35; 'needed': 0.36; 'modules': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'say': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'difference': 0.38; 'version': 0.38; 'files': 0.38; 'whatever': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'provide': 0.61; 'real': 0.62; 'within': 0.64; 'spend': 0.67; 'jul': 0.72; '100%': 0.72; 'prompt': 0.79; 'tended': 0.84; 'whatsoever.': 0.84; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Trying to import numpy Date: Tue, 07 Jul 2015 09:23:05 -0400 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-217-115.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: , Newsgroups: comp.lang.python Message-ID: Lines: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1436275400 news.xs4all.nl 2927 [2001:888:2000:d::a6]:36307 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:93553 On Mon, 6 Jul 2015 20:17:34 -0700 (PDT), ryguy7272 declaimed the following: >I'm trying to use numpy. I get this error: >>>> import numpy as np > >Traceback (most recent call last): > File "", line 1, in I have no experience with whatever provides "pyshell". I'd suggest running from a Windows command line to reduce dependencies. > >In the c-prompt, I get this error. >C:\>python get-pip.py >python: can't open file 'get-pip.py': [Errno 2] No such file or directory > As has been mentioned, this looks for get-pip.py to be in the current directory. Is it? > >In python 2.7, I get this error. >>>> python get-pip.py >SyntaxError: invalid syntax > And one never invokes the python interpreter from within the python interpreter. Python has no command named "python". > >I would say 100% of my errors come from importing python modules. If this every worked, I could do some real work. Instead, I spend 100% of my time trying to make thing that don't work, work. > > >I've already added ';C:\Python27' to the Path under Variable Name. Of course, this makes no difference whatsoever. Ugh. Which "Path"? The Windows search path? That is only used to tell Windows where to look for the executable program -- the first word on the command line "python". Arguments provided to an executable "get-pip.py" need to be specified fully; if it isn't in the current directory you have to provide the path to the directory that it IS in. > >Any thoughts? Anyone? Presuming the import failures are all for third-party modules, the first question would have to be: where and how are you installing those modules I'll confess I've not really used PIP; I'm a few Python versions behind (ActiveState 2.7.5.6), and most of my third party packages tended to be ZIP files that one unpacks into a directory, then navigates to in a command prompt and executes "python setup install" -- which commonly copies the needed files into the active Python version "site" specific library, and if needed modifies the Python import search path (which is independent of the Windows path). >Thanks. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/