Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82698 > unrolled thread
| Started by | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| First post | 2014-12-20 07:46 -0800 |
| Last post | 2014-12-26 00:59 -0800 |
| Articles | 20 on this page of 30 — 11 participants |
Back to article view | Back to comp.lang.python
very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-20 07:46 -0800
Re: very weird pandas behavior Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-21 13:22 +1100
Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 04:44 -0800
Re: very weird pandas behavior Dave Angel <davea@davea.name> - 2014-12-21 09:19 -0500
Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 17:01 -0800
Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-22 12:15 +1100
Re: very weird pandas behavior Dave Angel <davea@davea.name> - 2014-12-21 20:40 -0500
Re: very weird pandas behavior oldknackers@googlemail.com - 2014-12-21 17:25 -0800
Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 18:07 -0800
Re: very weird pandas behavior Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 02:51 +0000
Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 18:09 -0800
Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-21 18:25 -0800
Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-22 13:50 +1100
Re: very weird pandas behavior Rustom Mody <rustompmody@gmail.com> - 2014-12-21 18:53 -0800
Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-22 00:16 -0800
Re: very weird pandas behavior Steven D'Aprano <steve@pearwood.info> - 2014-12-22 04:11 +0000
Re: very weird pandas behavior Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-12-22 15:50 -0500
Re: very weird pandas behavior oldknackers@googlemail.com - 2014-12-21 22:21 -0800
Re: very weird pandas behavior ryguy7272 <ryanshuell@gmail.com> - 2014-12-22 07:55 -0800
Re: very weird pandas behavior Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 16:39 +0000
Re: very weird pandas behavior Dave Angel <davea@davea.name> - 2014-12-22 11:47 -0500
Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-23 04:29 +1100
Re: very weird pandas behavior Rick Johnson <rantingrickjohnson@gmail.com> - 2014-12-22 14:15 -0800
Re: very weird pandas behavior Chris Angelico <rosuav@gmail.com> - 2014-12-23 09:33 +1100
Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-23 01:35 -0800
Re: very weird pandas behavior Rick Johnson <rantingrickjohnson@gmail.com> - 2014-12-23 14:35 -0800
Re: very weird pandas behavior Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-24 13:23 +1100
Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-24 00:00 -0800
Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-24 06:19 -0800
Re: very weird pandas behavior wxjmfauth@gmail.com - 2014-12-26 00:59 -0800
Page 1 of 2 [1] 2 Next page →
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-12-20 07:46 -0800 |
| Subject | very weird pandas behavior |
| Message-ID | <7a83719d-f39c-49ad-8df5-3d3d19c127b1@googlegroups.com> |
I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this:
"pip install pandas"
It looks like everything downloaded and installed fine. Great.
Now, in Python Shell, I enter this:
import pandas as pd
I get this error.
Traceback (most recent call last):
File "<pyshell#19>", line 1, in <module>
import pandas as pd
ImportError: No module named pandas
Any idea what I'm doing wrong?
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2014-12-21 13:22 +1100 |
| Message-ID | <54962ed7$0$13006$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #82698 |
ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the > C-prompt, I ran this: "pip install pandas" C-prompt? Are you maybe running Windows? I'll assume so. > It looks like everything downloaded and installed fine. Great. Did pip print any output? What did it say? In particular, I'm looking to see: (1) What version of Python pip was using. (2) Where it put the installed version of pandas. (3) Is there anything to suggest the installation actually failed? The nature of the problem suggests to me that you might have two different versions of Python installed. Is that possible? > Now, in Python Shell, I enter this: > import pandas as pd What version of Python are you using here? Is it the same as the version used by pip? Run this: import sys print(sys.version) print(sys.path) and COPY AND PASTE the output of those two print lines back here. > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas It looks like you are using some sort of IDE. "pyshell"? Although this is a long-shot, it's not quite impossible that the IDE is at fault. My recommendation is to run the vanilla Python interactive interpreter and see if you get the same problem. I *think* this should work under Windows. At the DOS prompt, enter: python If it launches your usual IDE, exit and we'll have to try again. But if it launches the vanilla Python interactive interpreter, you should see something like this: Python 2.7.2 (default, May 18 2012, 18:25:10) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (Yours may have a different version number and date, and should say Windows rather than Linux.) Type the following: import pandas Does that work now? Enter `quit()` to exit the interactive interpreter, and try again with python27 python33 python34 What do they do? Anything different from the above? > Any idea what I'm doing wrong? I'm 95% sure it will turn out to be version confusion: you have two versions of Python installed, you used pip to install pandas for version A but then ran version B. Otherwise, 3% that the pip installation actually failed, and you just didn't realise, 1% that it's a problem with the IDE, and 1% something else. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-12-21 04:44 -0800 |
| Message-ID | <9ca0491d-6589-4184-8487-68527dc9469b@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > "pip install pandas" > > It looks like everything downloaded and installed fine. Great. > > Now, in Python Shell, I enter this: > import pandas as pd > > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas > > > Any idea what I'm doing wrong? Thanks Steven. I just tried what you recommended, and got this. >>> import sys >>> print(sys.version) 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] >>> print(sys.path) ['C:\\Python27\\Lib\\idlelib', 'C:\\Python27\\lib\\site-packages\\requests-2.4.3-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\html-1.16-py2.7.egg', 'C:\\Python34', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages'] >>> I also got this. Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\Users\Ryan>python Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> python27 Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'python27' is not defined >>> python33 Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'python33' is not defined >>> python34 Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'python34' is not defined >>> Any idea what's wrong?
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2014-12-21 09:19 -0500 |
| Message-ID | <mailman.17093.1419171581.18130.python-list@python.org> |
| In reply to | #82718 |
On 12/21/2014 07:44 AM, ryguy7272 wrote: > On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: >> I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: >> "pip install pandas" > > Thanks Steven. I just tried what you recommended, and got this. > >>>> import sys >>>> print(sys.version) > 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] >>>> print(sys.path) > ['C:\\Python27\\Lib\\idlelib', 'C:\\Python27\\lib\\site-packages\\requests-2.4.3-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\html-1.16-py2.7.egg', 'C:\\Python34', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages'] >>>> > > > I also got this. > > Microsoft Windows [Version 6.3.9600] > (c) 2013 Microsoft Corporation. All rights reserved. > > C:\Users\Ryan>python > Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win > 32 > Type "help", "copyright", "credits" or "license" for more information. >>>> python27 > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'python27' is not defined python27 and python33 are Windows commands, not Python ones. You run them at the cmd prompt. Steven suggested those to see what other versions of Python you have installed. And of course the other question is what directory did pandas get installed to. You can find that out with the find command, except that you're on Windows. So I think you'd have to use dir /s -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-12-21 17:01 -0800 |
| Message-ID | <ab864a83-4f0a-4ac6-8628-bd9e73a90cac@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote:
> I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this:
> "pip install pandas"
>
> It looks like everything downloaded and installed fine. Great.
>
> Now, in Python Shell, I enter this:
> import pandas as pd
>
> I get this error.
> Traceback (most recent call last):
> File "<pyshell#19>", line 1, in <module>
> import pandas as pd
> ImportError: No module named pandas
>
>
> Any idea what I'm doing wrong?
Sorry for being so dense here guys!! I do tons and tons of work with VBA, VB, C#, SQL, R, Matlab, and a little work with Pascal. I guess that's preventing me from understanding how Python works. Sorry, but I just don't understand this thing. I uninstalled Python27 and just reinstalled it. I open the cmd prompt, and entered two short commands: 'pip install numpy' & 'pip install pandas'. Then, I got to Python Shell and enter this: 'import numpy' & 'import pandas'. immediately I get errors.
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import numpy
ImportError: No module named numpy
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
import pandas
ImportError: No module named pandas
I guess if I can't do something simple, I can't do anything complex...or anything at all.
Part of the problem is, I don't know why in 2014 we're entering commands in the C-prompt to run a Windows program. I thought all of that stuff was over in the very early 1990s. Also, I can't understand why Python can't download this from the Internet.
If someone can help me figure this out, I'd be most appreciative. I don't want to give up, but after spending over 6 months learning Python, and reading 15 Python books cover to cover, I don't understand why a simple 'import pandas' can't even work!! That's about as basic as it gets.
Ugh.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-12-22 12:15 +1100 |
| Message-ID | <mailman.17101.1419210964.18130.python-list@python.org> |
| In reply to | #82733 |
On Mon, Dec 22, 2014 at 12:01 PM, ryguy7272 <ryanshuell@gmail.com> wrote: > Part of the problem is, I don't know why in 2014 we're entering commands in the C-prompt to run a Windows program. I thought all of that stuff was over in the very early 1990s. Also, I can't understand why Python can't download this from the Internet. > You're expecting a GUI to let you pick stuff to install? That probably exists... as a wrapper around the terminal commands. The command line has never died, and never will. (I dream of futuristic voice-activated spaceship computers that respond to "Computer! Console." by revealing a keyboard and screen with a login prompt.) Python can download this from the internet; in fact, that's exactly what the "pip install numpy" command does. However, you have to be explicit. You don't want the simple "import numpy" command to go and install some third-party software; that would mean that mistyping it as "import numpt" would also attempt to install something new, and immediately run it. That's dangerous, costly (network requests can take a long time), and definitely not a good idea. What happened when you ran the 'pip install' lines? Also, what is the output of 'pip --version' and 'python --version'? ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2014-12-21 20:40 -0500 |
| Message-ID | <mailman.17102.1419212417.18130.python-list@python.org> |
| In reply to | #82733 |
On 12/21/2014 08:01 PM, ryguy7272 wrote:
> On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote:
>> I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this:
>> "pip install pandas"
>>
>> It looks like everything downloaded and installed fine. Great.
>>
>> Now, in Python Shell, I enter this:
>> import pandas as pd
>>
>> I get this error.
>> Traceback (most recent call last):
>> File "<pyshell#19>", line 1, in <module>
>> import pandas as pd
>> ImportError: No module named pandas
>>
>>
>> Any idea what I'm doing wrong?
>
>
>
> Sorry for being so dense here guys!! I do tons and tons of work with VBA, VB, C#, SQL, R, Matlab, and a little work with Pascal.
> I guess that's preventing me from understanding how Python works.
Sorry, but I just don't understand this thing.
Have you tried reading and responding to the advice you get? Or do you
just pick and choose?
> I uninstalled Python27 and just reinstalled it.
What did you do with the other Python versions that you still haven't
said whether you have?
> I open the cmd prompt, and entered two short commands: 'pip install numpy' & 'pip install pandas'.
And they got "command not found" errors, right? After all, you haven't
installed PIP yet. Or if you have, it might be left over from some
other version of Python.
Have you read anything about PIP? Have you read the web page:
https://pypi.python.org/pypi/pip/
Perhaps you could try:
pip show --files numpy
and see where they got installed. Are they the same place as the Python
2.7 you just installed?
> Then, I got to Python Shell and enter this: 'import numpy' & 'import pandas'. immediately I get errors.
>
> Traceback (most recent call last):
> File "<pyshell#2>", line 1, in <module>
> import numpy
> ImportError: No module named numpy
>
> Traceback (most recent call last):
> File "<pyshell#3>", line 1, in <module>
> import pandas
> ImportError: No module named pandas
>
> I guess if I can't do something simple, I can't do anything complex...or anything at all.
>
If I had any confidence that you were always running the same version of
Python, from the same installation, then I could suggest more stuff,
like checking out sys.path and comparing it to the place where PIP
installed things.
--
DaveA
[toc] | [prev] | [next] | [standalone]
| From | oldknackers@googlemail.com |
|---|---|
| Date | 2014-12-21 17:25 -0800 |
| Message-ID | <7b0f4b1c-e026-4b6c-85e8-b21b450d7708@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 3:46:40 PM UTC, ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > "pip install pandas" > > It looks like everything downloaded and installed fine. Great. > > Now, in Python Shell, I enter this: > import pandas as pd > > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas > > > Any idea what I'm doing wrong? It's begining to look like weird behavour from ryguy7272, multipe times asking how to install numpy on python-forum.org and not following the advice given. http://www.python-forum.org/viewtopic.php?f=10&t=13700&p=23970#p23970 http://www.python-forum.org/viewtopic.php?f=6&t=13748&p=24082#p24082
[toc] | [prev] | [next] | [standalone]
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-12-21 18:07 -0800 |
| Message-ID | <04f0d761-0ae8-46bd-9756-293618e74679@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > "pip install pandas" > > It looks like everything downloaded and installed fine. Great. > > Now, in Python Shell, I enter this: > import pandas as pd > > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas > > > Any idea what I'm doing wrong? Thanks for being patient with me everyone. I just tried this: C:\Users\Ryan>pip --version pip 1.5.6 from C:\Python27\lib (python 2.7) C:\Users\Ryan>python --version Python 2.7 I just tried 'pip show --files numpy' in the command prompt; nothing happened. I'll read that link now. I know my eyes are not very good...my vision is quite poor...but I'm trying to read this stuff, and I'm trying to figure out what's going on here...
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-12-22 02:51 +0000 |
| Message-ID | <mailman.17105.1419216726.18130.python-list@python.org> |
| In reply to | #82737 |
On 22/12/2014 02:07, ryguy7272 wrote:
> On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote:
>> I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this:
>> "pip install pandas"
>>
>> It looks like everything downloaded and installed fine. Great.
>>
>> Now, in Python Shell, I enter this:
>> import pandas as pd
>>
>> I get this error.
>> Traceback (most recent call last):
>> File "<pyshell#19>", line 1, in <module>
>> import pandas as pd
>> ImportError: No module named pandas
>>
>>
>> Any idea what I'm doing wrong?
>
>
>
> Thanks for being patient with me everyone.
>
>
> I just tried this:
> C:\Users\Ryan>pip --version
> pip 1.5.6 from C:\Python27\lib (python 2.7)
>
> C:\Users\Ryan>python --version
> Python 2.7
>
>
> I just tried 'pip show --files numpy' in the command prompt; nothing happened.
>
>
> I'll read that link now.
>
>
> I know my eyes are not very good...my vision is quite poor...but I'm trying to read this stuff, and I'm trying to figure out what's going on here...
>
Try 'pip --help'.
c:\cpython>pip --help
Usage:
pip <command> [options]
Commands:
install Install packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements
format.
list List installed packages.
show Show information about installed packages.
search Search PyPI for packages.
wheel Build wheels from your requirements.
zip DEPRECATED. Zip individual packages.
unzip DEPRECATED. Unzip individual packages.
bundle DEPRECATED. Create pybundles.
help Show help for commands.
General Options:
-h, --help Show help.
-v, --verbose Give more output. Option is additive, and
can be
used up to 3 times.
-V, --version Show version and exit.
-q, --quiet Give less output.
--log-file <path> Path to a verbose non-appending log, that
only
logs failures. This log is active by
default at
C:\Users\Mark\pip\pip.log.
--log <path> Path to a verbose appending log. This log is
inactive by default.
--proxy <proxy> Specify a proxy in the form
[user:passwd@]proxy.server:port.
--timeout <sec> Set the socket timeout (default 15 seconds).
--exists-action <action> Default action when a path already exists:
(s)witch, (i)gnore, (w)ipe, (b)ackup.
--cert <path> Path to alternate CA bundle.
Having digested the above try 'pip list'.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-12-21 18:09 -0800 |
| Message-ID | <ea698457-3769-435c-90e7-cae48f3a7b2f@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > "pip install pandas" > > It looks like everything downloaded and installed fine. Great. > > Now, in Python Shell, I enter this: > import pandas as pd > > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas > > > Any idea what I'm doing wrong? Ok, if I enter this into the command prompt: 'pip show --files numpy' 'pip show --files pandas' I get nothing returned from either entry. That seems ot be a problem!
[toc] | [prev] | [next] | [standalone]
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-12-21 18:25 -0800 |
| Message-ID | <0011c7c8-8605-4fce-a025-d6449f51fc7c@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > "pip install pandas" > > It looks like everything downloaded and installed fine. Great. > > Now, in Python Shell, I enter this: > import pandas as pd > > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas > > > Any idea what I'm doing wrong? I just ran these two commands in the c-prompt: pip install --upgrade numpy pip install --upgrade pandas It seemed like everything was being downloaded and installed. Seems ok. Then I go back to the Python Shell and ran 'import numpy' & 'import pandas' and I still get the errors that I got before. So, I move on to this: pip uninstall numpy pip uninstall pandas It says, cannon uninstall, non installed. Sorry, but that's what drives me nuts. I install a few packages, and the messages that I get says the package is installed...then it says it's NOT installed...I don't know what to think...
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-12-22 13:50 +1100 |
| Message-ID | <mailman.17104.1419216653.18130.python-list@python.org> |
| In reply to | #82739 |
On Mon, Dec 22, 2014 at 1:25 PM, ryguy7272 <ryanshuell@gmail.com> wrote: > > I just ran these two commands in the c-prompt: > pip install --upgrade numpy > pip install --upgrade pandas > > It seemed like everything was being downloaded and installed. Seems ok. Then I go back to the Python Shell and ran 'import numpy' & 'import pandas' and I still get the errors that I got before. > > So, I move on to this: > pip uninstall numpy > pip uninstall pandas > > It says, cannon uninstall, non installed. > > Sorry, but that's what drives me nuts. I install a few packages, and the messages that I get says the package is installed...then it says it's NOT installed...I don't know what to think... > Lesson #0 of computing: When a program tells you something and you then ask for help, *copy and paste* the program's output. "It seemed like" is the most likely source of error here. Maybe there was an error reported, and you simply didn't recognize it... but by not showing us the output, you force us to trust your judgment about what it seemed like. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-12-21 18:53 -0800 |
| Message-ID | <e8ab387d-7644-4d40-a34a-08159641e995@googlegroups.com> |
| In reply to | #82739 |
On Monday, December 22, 2014 7:55:50 AM UTC+5:30, ryguy7272 wrote: > Sorry, but that's what drives me nuts. I install a few packages, and the messages that I get says the package is installed...then it says it's NOT installed...I don't know what to think... Its nice to bang the head against the wall (at times) The wall can feel so cool (at times) Its also nice to listen > On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: > > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > > "pip install pandas" > > > > It looks like everything downloaded and installed fine. Great. > > > > Now, in Python Shell, I enter this: > > import pandas as pd > > > > I get this error. > > Traceback (most recent call last): > > File "<pyshell#19>", line 1, in <module> > > import pandas as pd > > ImportError: No module named pandas > > > > > > Any idea what I'm doing wrong? > > > > I just ran these two commands in the c-prompt: > pip install --upgrade numpy > pip install --upgrade pandas > > It seemed like everything was being downloaded and installed. To whom did it 'seem'? Best I can see you've been suggested to paste the result of these commands and you insist on thrashing about and not paying attention. On a different note: > Part of the problem is, I don't know why in 2014 we're > entering commands in the C-prompt to run a Windows program. I > thought all of that stuff was over in the very early 1990s. > Also, I can't understand why Python can't download this from > the Internet. is called culture-clash. Like going from one side of the Atlantic to the other and complaining "Why the &^)%% is everyone driving on the wrong side of the road?" We use the command line a bit out here. Perhaps less than bash-programmers More then VB programmers. You are free to 1. Get used to the different culture 2. Stay in familiar territory 3. Thrash about
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2014-12-22 00:16 -0800 |
| Message-ID | <83c01bb3-63de-4462-9a40-04978ca5cf70@googlegroups.com> |
| In reply to | #82744 |
Le lundi 22 décembre 2014 03:53:28 UTC+1, Rustom Mody a écrit : > On Monday, December 22, 2014 7:55:50 AM UTC+5:30, ryguy7272 wrote: > > > Sorry, but that's what drives me nuts. I install a few packages, and the messages that I get says the package is installed...then it says it's NOT installed...I don't know what to think... > > Its nice to bang the head against the wall (at times) > The wall can feel so cool (at times) > > Its also nice to listen > > > On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: > > > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > > > "pip install pandas" > > > > > > It looks like everything downloaded and installed fine. Great. > > > > > > Now, in Python Shell, I enter this: > > > import pandas as pd > > > > > > I get this error. > > > Traceback (most recent call last): > > > File "<pyshell#19>", line 1, in <module> > > > import pandas as pd > > > ImportError: No module named pandas > > > > > > > > > Any idea what I'm doing wrong? > > > > > > > > I just ran these two commands in the c-prompt: > > pip install --upgrade numpy > > pip install --upgrade pandas > > > > It seemed like everything was being downloaded and installed. > > To whom did it 'seem'? > Best I can see you've been suggested to paste the result of these > commands and you insist on thrashing about and not paying attention. > > On a different note: > > > Part of the problem is, I don't know why in 2014 we're > > entering commands in the C-prompt to run a Windows program. I > > thought all of that stuff was over in the very early 1990s. > > Also, I can't understand why Python can't download this from > > the Internet. > > is called culture-clash. > Like going from one side of the Atlantic to the other and complaining > "Why the &^)%% is everyone driving on the wrong side of the road?" > > We use the command line a bit out here. > Perhaps less than bash-programmers > More then VB programmers. > > You are free to > 1. Get used to the different culture > 2. Stay in familiar territory > 3. Thrash about Some time ago, for the third time, I attempted to install ipython. I failed. I did not even understand what the installation html page is supposed to explain. Only generic explainations. Like the guy (in this thread) who gives the following advice: D:\>pip install numpy 'pip' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. D:\> It's not a surprised that finally users are preferring VB. I need less time to install mono/C# than to visit the gazillion of (Python) web pages asking "how to install ...."
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve@pearwood.info> |
|---|---|
| Date | 2014-12-22 04:11 +0000 |
| Message-ID | <549799f6$0$2817$c3e8da3$76491128@news.astraweb.com> |
| In reply to | #82739 |
On Sun, 21 Dec 2014 18:25:38 -0800, ryguy7272 wrote:
> I just ran these two commands in the c-prompt:
> pip install --upgrade numpy
> pip install --upgrade pandas
What is the purpose of the --upgrade switch?
Just run `pip install numpy`, and COPY and PASTE the entire output of pip
into your reply. Please don't say "it seemed like it installed", because
your judgement may be wrong.
> It seemed like everything was being downloaded and installed. Seems ok.
> Then I go back to the Python Shell and ran 'import numpy' & 'import
> pandas' and I still get the errors that I got before.
I gave you some instructions to try before, but you don't appear to have
followed them. Let's try again:
(1) First, confirm how many different versions of Python you have
installed. Please don't reinstall Python again. That doesn't help, if
anything it may make matters worse.
I suggested that you try running the following commands from the DOS
prompt (or C-prompt, if you prefer to call it that):
python27
python33
python34
although not being an expert on Windows I'm not sure if there is a better
way.
Another way may be to use the Windows' Find Files command to look for
any .exe files with "python" in the name.
(2) Next, try installing numpy and pandas again, only this time don't use
the --upgrade switch. COPY AND PASTE the output so we can see exactly
what happened.
(3) Try running the Python shell again. Tell us *what* Python shell you
are using. Your tracebacks say "<pyshell#19>" which is not standard. What
are you actually running? Tell us *exactly* what steps you take to run
the Python shell.
(4) I think you are running some sort of IDE (Integrated Development
Environment). Are you running a third-party system like Anaconda, or
possible something like Spyder? If so, then I suggest you check whether
that third-party system is causing the problem. From the C prompt, just
run "python" and then try importing numpy and see what happens. Again,
COPY AND PASTE any output.
(5) Consider that unless you have a C compiler, and possibly a Fortran
compiler, you may not be able to install numpy from source on your
system. You may need to find some pre-built packages that match your
version of Windows.
--
Steven
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2014-12-22 15:50 -0500 |
| Message-ID | <mailman.17137.1419281408.18130.python-list@python.org> |
| In reply to | #82739 |
On Sun, 21 Dec 2014 18:25:38 -0800 (PST), ryguy7272 <ryanshuell@gmail.com>
declaimed the following:
>It seemed like everything was being downloaded and installed. Seems ok. Then I go back to the Python Shell and ran 'import numpy' & 'import pandas' and I still get the errors that I got before.
>
My first suggestion...
FORGET THAT PYSHELL EXISTS.
Heck, I'm not even sure what variant of PyShell you may have -- I've
seen files that invoke Tk and another site mention wx as the background
framework.
>So, I move on to this:
>pip uninstall numpy
>pip uninstall pandas
>
>It says, cannon uninstall, non installed.
>
>Sorry, but that's what drives me nuts. I install a few packages, and the messages that I get says the package is installed...then it says it's NOT installed...I don't know what to think...
Which also could be a symptom of having multiple installations of
Python around, with a different one being active at different times.
From the Windows command line, after doing your
pip install numpy
enter just
python
and when that gives you the >>> prompt, try the
import numpy
Though personally, given the way this thread has been going, I'd
recommend uninstalling all Python related stuff, searching the drives for
any directory with python in the name and deleting it, then editing the
registry to remove anything mention Python, and lastly running a registry
cleaner.
Note that I can not get PIP to work for numpy at all, and I know what
my Python configuration looks like...
-=-=-=-=-=-
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Wulfraed\Documents>pip install numpy
Downloading/unpacking numpy
Downloading numpy-1.9.1.tar.gz (4.0MB): 4.0MB downloaded
Running setup.py egg_info for package numpy
Running from numpy source directory.
warning: no previously-included files matching '*.pyc' found anywhere
in distribution
warning: no previously-included files matching '*.pyo' found anywhere
in distribution
warning: no previously-included files matching '*.pyd' found anywhere
in distribution
Installing collected packages: numpy
Running setup.py install for numpy
non-existing path in 'numpy\\distutils': 'site.cfg'
non-existing path in 'numpy\\f2py': 'docs'
non-existing path in 'numpy\\f2py': 'f2py.1'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in
['C:\\Python_x64\\Python27\\lib', 'C:\\', 'C:\\Python
_x64\\Python27\\libs']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['C:\\Python_x64\\Python27\\lib',
'C:\\', 'C:\\Python_x64\
\Python27\\libs']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in
['C:\\Python_x64\\Python27\\lib', 'C:\\', '
C:\\Python_x64\\Python27\\libs']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in
['C:\\Python_x64\\Python27\\lib', 'C:\\', 'C:\\
Python_x64\\Python27\\libs']
NOT AVAILABLE
blas_info:
libraries blas not found in ['C:\\Python_x64\\Python27\\lib', 'C:\\',
'C:\\Python_x64\\Pyt
hon27\\libs']
NOT AVAILABLE
blas_src_info:
NOT AVAILABLE
NOT AVAILABLE
non-existing path in 'numpy\\lib': 'benchmarks'
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in ['C:\\Python_x64\\Python27\\lib',
'C:\\', 'C:\\Python_x64\
\Python27\\libs']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in
['C:\\Python_x64\\Python27\\lib', 'C:\\', 'C:\\Python
_x64\\Python27\\libs']
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in
C:\Python_x64\Python27\lib
libraries lapack_atlas not found in C:\Python_x64\Python27\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in
C:\Python_x64\Python27\libs
libraries lapack_atlas not found in C:\Python_x64\Python27\libs
numpy.distutils.system_info.atlas_threads_info
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Python_x64\Python27\lib
libraries lapack_atlas not found in C:\Python_x64\Python27\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in
C:\Python_x64\Python27\libs
libraries lapack_atlas not found in C:\Python_x64\Python27\libs
numpy.distutils.system_info.atlas_info
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['C:\\Python_x64\\Python27\\lib',
'C:\\', 'C:\\Python_x64\\P
ython27\\libs']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
unifing config_cc, config, build_clib, build_ext, build commands
--compiler options
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
build_src
building py_modules sources
building library "npymath" sources
No module named msvccompiler in numpy.distutils; trying from distutils
Running from numpy source directory.
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py
:1526: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py
:1535: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py
:1538: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py
:1432: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py
:1443: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py
:1446: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
C:\Python_x64\Python27\lib\distutils\dist.py:267: UserWarning: Unknown
distribution option:
'define_macros'
warnings.warn(msg)
error: Unable to find vcvarsall.bat
Complete output from command C:\Python_x64\Python27\python2.7.exe -c
"import setuptools;__fi
le__='c:\\users\\wulfraed\\appdata\\local\\temp\\pip_build_Wulfraed\\numpy\\setup.py';exec(compi
le(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install
--record c:\users\wu
lfraed\appdata\local\temp\pip-zvwk8m-record\install-record.txt
--single-version-externally-manag
ed:
non-existing path in 'numpy\\distutils': 'site.cfg'
non-existing path in 'numpy\\f2py': 'docs'
non-existing path in 'numpy\\f2py': 'f2py.1'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in ['C:\\Python_x64\\Python27\\lib',
'C:\\', 'C:\\Python_x64
\\Python27\\libs']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['C:\\Python_x64\\Python27\\lib', 'C:\\',
'C:\\Python_x64\\Pyt
hon27\\libs']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in
['C:\\Python_x64\\Python27\\lib', 'C:\\', 'C:\\
Python_x64\\Python27\\libs']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in
['C:\\Python_x64\\Python27\\lib', 'C:\\', 'C:\\Pyth
on_x64\\Python27\\libs']
NOT AVAILABLE
blas_info:
libraries blas not found in ['C:\\Python_x64\\Python27\\lib', 'C:\\',
'C:\\Python_x64\\Python2
7\\libs']
NOT AVAILABLE
blas_src_info:
NOT AVAILABLE
NOT AVAILABLE
non-existing path in 'numpy\\lib': 'benchmarks'
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in ['C:\\Python_x64\\Python27\\lib', 'C:\\',
'C:\\Python_x64\\Pyt
hon27\\libs']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['C:\\Python_x64\\Python27\\lib',
'C:\\', 'C:\\Python_x64
\\Python27\\libs']
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Python_x64\Python27\lib
libraries lapack_atlas not found in C:\Python_x64\Python27\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in
C:\Python_x64\Python27\libs
libraries lapack_atlas not found in C:\Python_x64\Python27\libs
numpy.distutils.system_info.atlas_threads_info
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Python_x64\Python27\lib
libraries lapack_atlas not found in C:\Python_x64\Python27\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Python_x64\Python27\libs
libraries lapack_atlas not found in C:\Python_x64\Python27\libs
numpy.distutils.system_info.atlas_info
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['C:\\Python_x64\\Python27\\lib', 'C:\\',
'C:\\Python_x64\\Pytho
n27\\libs']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build\src.win-amd64-2.7
creating build\src.win-amd64-2.7\numpy
creating build\src.win-amd64-2.7\numpy\distutils
building library "npymath" sources
No module named msvccompiler in numpy.distutils; trying from distutils
Running from numpy source directory.
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py:152
6: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py:153
5: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py:153
8: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py:143
2: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py:144
3: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy\numpy\distutils\system_info.py:144
6: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
C:\Python_x64\Python27\lib\distutils\dist.py:267: UserWarning: Unknown
distribution option: 'def
ine_macros'
warnings.warn(msg)
error: Unable to find vcvarsall.bat
----------------------------------------
Cleaning up...
Command C:\Python_x64\Python27\python2.7.exe -c "import
setuptools;__file__='c:\\users\\wulfraed
\\appdata\\local\\temp\\pip_build_Wulfraed\\numpy\\setup.py';exec(compile(open(__file__).read().
replace('\r\n', '\n'), __file__, 'exec'))" install --record
c:\users\wulfraed\appdata\local\temp
\pip-zvwk8m-record\install-record.txt --single-version-externally-managed
failed with error code
1 in c:\users\wulfraed\appdata\local\temp\pip_build_Wulfraed\numpy
Storing complete log in C:\Users\Wulfraed\pip\pip.log
C:\Users\Wulfraed\Documents>
-=-=-=-=-=-=-
I downloaded a package from
http://sourceforge.net/projects/numpy/files/NumPy/1.7.0/ and that installed
(with one problem -- my default Python is 64-bit, but the prebuilt
installer is for the 32-bit version... When I explicitly start the 32-bit,
the import succeeds).
C:\Users\Wulfraed\Documents>python
ActivePython 2.7.5.6 (ActiveState Software Inc.) based on
Python 2.7.5 (default, Sep 16 2013, 23:11:01) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> ^Z
C:\Users\Wulfraed\Documents>c:\Python_x86\Python27\python
ActivePython 2.7.5.6 (ActiveState Software Inc.) based on
Python 2.7.5 (default, Sep 16 2013, 23:16:52) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | oldknackers@googlemail.com |
|---|---|
| Date | 2014-12-21 22:21 -0800 |
| Message-ID | <42404901-a006-4dcb-a8bb-2b2e12a2692d@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 3:46:40 PM UTC, ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > "pip install pandas" > > It looks like everything downloaded and installed fine. Great. > > Now, in Python Shell, I enter this: > import pandas as pd > > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas > > > Any idea what I'm doing wrong? Take a look at ryguy7272's previous questions here https://groups.google.com/forum/#!searchin/comp.lang.python/ryguy7272 which take no notice of advice given.
[toc] | [prev] | [next] | [standalone]
| From | ryguy7272 <ryanshuell@gmail.com> |
|---|---|
| Date | 2014-12-22 07:55 -0800 |
| Message-ID | <0bffa65b-c2e9-4188-96fa-68092d559dcf@googlegroups.com> |
| In reply to | #82698 |
On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: > I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: > "pip install pandas" > > It looks like everything downloaded and installed fine. Great. > > Now, in Python Shell, I enter this: > import pandas as pd > > I get this error. > Traceback (most recent call last): > File "<pyshell#19>", line 1, in <module> > import pandas as pd > ImportError: No module named pandas > > > Any idea what I'm doing wrong? Thanks Rustom. That is insightful advice, indeed. I will cherish your wisdom. To everyone else, I'm going back to VBA, VB, C#, Java, SQL, SSIS, R, & Matlab, simply because all of those work perfectly fine. I have countless ways to do everything in the world. For me, Python was just another way to do, what I already do now. I don't have time to screw around with all kind of nonsense that doesn't do anything, other than tell me 1+1=2. That pretty much the only thing that works in Python. To do anything more complex, seems impossible. Rather than make the impossible become possible, I'd rather focus on things that help me do stuff (like process 100,000 man-hours of work in less than 1 hour). Learning Python was both fun & frustrating. If you need to waste time, work with Python. If you need to do real work, use any on the following: VBA, VB, C#, Java, SQL, R, & Matlab. I just uninstalled Python and deleted 15 Python books that I found online. AHHHHHhhhhhhhhhhhh! I feel great!!!!!!!!!!!! That's all.
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-12-22 16:39 +0000 |
| Message-ID | <mailman.17125.1419266406.18130.python-list@python.org> |
| In reply to | #82782 |
On 22/12/2014 15:55, ryguy7272 wrote: > On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote: >> I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this: >> "pip install pandas" >> >> It looks like everything downloaded and installed fine. Great. >> >> Now, in Python Shell, I enter this: >> import pandas as pd >> >> I get this error. >> Traceback (most recent call last): >> File "<pyshell#19>", line 1, in <module> >> import pandas as pd >> ImportError: No module named pandas >> >> >> Any idea what I'm doing wrong? > > > > > Thanks Rustom. That is insightful advice, indeed. I will cherish your wisdom. > > > To everyone else, I'm going back to VBA, VB, C#, Java, SQL, SSIS, R, & Matlab, simply because all of those work perfectly fine. I have countless ways to do everything in the world. For me, Python was just another way to do, what I already do now. > > I don't have time to screw around with all kind of nonsense that doesn't do anything, other than tell me 1+1=2. That pretty much the only thing that works in Python. To do anything more complex, seems impossible. Rather than make the impossible become possible, I'd rather focus on things that help me do stuff (like process 100,000 man-hours of work in less than 1 hour). Learning Python was both fun & frustrating. If you need to waste time, work with Python. If you need to do real work, use any on the following: VBA, VB, C#, Java, SQL, R, & Matlab. I just uninstalled Python and deleted 15 Python books that I found online. AHHHHHhhhhhhhhhhhh! I feel great!!!!!!!!!!!! > > That's all. > https://www.python.org/about/success/ "Python is part of the winning formula for productivity, software quality, and maintainability at many companies and institutions around the world. Here are 41 real-life Python success stories, classified by application domain." So it looks as if this is yet another case of a bad workman always blames his tools, we seem to have had a lot of them this year. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.python
csiph-web