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


Groups > comp.lang.python > #93553

Re: Trying to import numpy

Return-Path <python-python-list@m.gmane.org>
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 <wlfraed@ix.netcom.com>
Subject Re: Trying to import numpy
Date Tue, 07 Jul 2015 09:23:05 -0400
Organization IISS Elusive Unicorn
References <c55edf1c-56b7-44be-bc4d-5f74ffb3176b@googlegroups.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.341.1436275400.3674.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, 6 Jul 2015 20:17:34 -0700 (PDT), ryguy7272 <ryanshuell@gmail.com>
declaimed the following:

>I'm trying to use numpy.  I get this error:
>>>> import numpy as np
>
>Traceback (most recent call last):
>  File "<pyshell#1>", line 1, in <module>

	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/

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


Thread

Trying to import numpy ryguy7272 <ryanshuell@gmail.com> - 2015-07-06 20:17 -0700
  Re: Trying to import numpy Michael Torrie <torriem@gmail.com> - 2015-07-06 22:38 -0600
  Re: Trying to import numpy Chris Angelico <rosuav@gmail.com> - 2015-07-07 15:04 +1000
  Re: Trying to import numpy Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-07 08:00 +0100
  Re: Trying to import numpy Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-07-07 09:23 -0400
  Re: Trying to import numpy Terry Reedy <tjreedy@udel.edu> - 2015-07-07 12:32 -0400
  Re: Trying to import numpy Laurent Pointal <laurent.pointal@free.fr> - 2015-07-07 19:53 +0200

csiph-web