Re: very weird pandas behavior
Rick Johnson wrote: > On Tuesday, December 23, 2014 3:35:20 AM UTC-6, wxjm...@gmail.com wrote: >> >> [...] >> >> Wait for ther 3.5 release. I will still show >> you how to make Idle, tkinter, Python crashing >> in 10 seconds. >> >> Discussing with (some) core devs is simply impossible, >> they do not whish to discuss! >> >> All this can be explained with a sheet of paper, >> a pencil and some basic mathematical knowledge. >> >> jmf > > Hello "Jmf". I'm confused by your interjection. Are you the OP? Or are you > speaking on behalf of the OP? Or did you forget to switch accounts -- gawd > that can be so embarrassing! (Urm, not that i have any experience in the > area). JMF is our resident Unicode crackpot, he is obsessed with the idea that a minor performance regression on some artificial and simplistic string operations which nobody would ever actually use in real life is categorical proof that Python's Unicode implementation is fundamentally and mathematically broken. I don't think he is trolling, I think he really is obsessed with this idea, like the circle-squarers, pi-is-a-rational-number cranks, "Queen Elizabeth and the Pope are space-aliens" nutters, Einstein-was-wrong maniacs and all the rest. -- Steven -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
On Tuesday, December 23, 2014 3:35:20 AM UTC-6, wxjm...@gmail.com wrote: > > [...] > > Wait for ther 3.5 release. I will still show > you how to make Idle, tkinter, Python crashing > in 10 seconds. > > Discussing with (some) core devs is simply impossible, > they do not whish to discuss! > > All this can be explained with a sheet of paper, > a pencil and some basic mathematical knowledge. > > jmf Hello "Jmf". I'm confused by your interjection. Are you the OP? Or are you speaking on behalf of the OP? Or did you forget to switch accounts -- gawd that can be so embarrassing! (Urm, not that i have any experience in the area). -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
On Tue, Dec 23, 2014 at 9:15 AM, Rick Johnson wrote: > I mean, if you were dumping it because of it's > shameless herd-conformity to the Unicode standard then AT > LEAST that would make sense me! Wait, which of our trolls are you? ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
On Monday, December 22, 2014 9:56:11 AM UTC-6, ryguy7272 wrote: I've been using Python for quite a few years now an i can only once remember using any type of "python installation tools" (easy_install or pip... puke!). I've always found the easiest route to be just downloading a zip/tar file, and then extracting it into my PythonXX/Lib/SitePackages directory -- of course, not without inspecting the source code first!!! > To everyone else, I'm going back to VBA, VB, C#, Java, > SQL, SSIS, R, & Matlab, simply because all of those work > perfectly fine. [...] 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. Well if you're coming from *that* background then Python is not going to make sense to you. VB has the power to ruin almost anyone. Naive folks tend to believe that if a language offers a Graphical front-end then that language must be "more advanced"...HA! When i see a graphical GUI builder i run the other direction screaming because i know that graphic builders *ONLY* exist as shoe polish for "turdious API's" Polish a turd, it's still a turd! Now don't get me wrong, i understand the *vital* importance of abstractions, and without them, even the smallest programs would require more finger gymnastics than a mortal human could endure. But there *MUST* be a balance drawn between high level and low level API's, because as you ascend up the abstraction scale, you may feel good for a while, but eventually you will find yourself trapped in a prison API of claustrophobia You could say that Graphical GUI builders are the highest possible abstraction, and you would be correct, but it's not the mere fact that they are "high level" that i find troublesome, no, because *ANY* text based API could be abstracted to a level that becomes suitable for even the laziest programmer, it the fact that they shield you from the architecture of the underlying code, and what inevitably happens is that you find yourself needing a functionality that the Graphical interface does not provide, for which the only solution is sit down and learn the API you have so desperately tried to avoid. Anyone care for a piping hot cup of irony? > I just uninstalled Python and deleted 15 Python books that > I found online. That seems excessive. I'm sorry but if you need 15 books to learn how to write Python code, and you already had prior programming experience, then i am going to say that Python is definitely not for you. Instead of taking the graphical route and attempting to shield you from the harsh realities of life, Python has devoted all it's energy to providing a clean syntax, an integrated documentation capability (via doc strings on the code author's side, and and the help() function on the users side), interactivity, introspection, and a quite extensive stdlib. Granted Python has it's warts, and i'm not here to apologize for *ANY* them, but all in all it's a damn good language that allows me to be far more productive than any other language has. No language can be perfect, but giving up on Python because you could not get a 3rd party package to install is quite ridiculous. I mean, if you were dumping it because of it's shameless herd-conformity to the Unicode standard then AT LEAST that would make sense me! -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
On Tue, Dec 23, 2014 at 3:47 AM, Dave Angel wrote: > (I lied. I kept Windows, in a Virtualbox, so I can resurrect it on demand) You remind me of the evil sorcerers who keep their defeated foes around in undead form, so they can torment them whenever they feel like it. Only difference is, resurrecting Windows doesn't torment Windows, it torments you... "WHY doesn't my program work properly here? It ought to!" ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
On 12/22/2014 10:55 AM, ryguy7272 wrote: I just uninstalled Python and deleted 15 Python books that I found online. AH! I feel great That's the way i felt when I uninstalled Windows. It's better not to not have something installed that you won't run. Likewise, it's best to delete books that you haven't actually studied. If you had downloaded just one book, and actually used it the way it was designed, and on the corresponding version of Python, the outcome might have been very different. (I lied. I kept Windows, in a Virtualbox, so I can resurrect it on demand) -- DaveA -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in 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. AH! 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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. AH! I feel great That's all. -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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. -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "" 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > > 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in 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 [options] Commands: install Install packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. listList installed packages. showShow 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. helpShow 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-filePath 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 to a verbose appending log. This log is inactive by default. --proxy Specify a proxy in the form [user:passwd@]proxy.server:port. --timeout Set the socket timeout (default 15 seconds). --exists-action Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup. --certPath 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
On Mon, Dec 22, 2014 at 1:25 PM, ryguy7272 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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... -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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! -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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... -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in 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 "", line 1, in import numpy ImportError: No module named numpy Traceback (most recent call last): File "", line 1, in 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
On Mon, Dec 22, 2014 at 12:01 PM, ryguy7272 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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 "", line 1, in import numpy ImportError: No module named numpy Traceback (most recent call last): File "", line 1, in 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. -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in 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 -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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 "", line 1, in NameError: name 'python27' is not defined >>> python33 Traceback (most recent call last): File "", line 1, in NameError: name 'python33' is not defined >>> python34 Traceback (most recent call last): File "", line 1, in NameError: name 'python34' is not defined >>> Any idea what's wrong? -- https://mail.python.org/mailman/listinfo/python-list
Re: very weird pandas behavior
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 "", line 1, in > 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 -- https://mail.python.org/mailman/listinfo/python-list
very weird pandas behavior
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 "", line 1, in import pandas as pd ImportError: No module named pandas Any idea what I'm doing wrong? -- https://mail.python.org/mailman/listinfo/python-list