very weird pandas behavior
Steven D'Aprano
steve at pearwood.info
Sun Dec 21 23:11:35 EST 2014
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
More information about the Python-list
mailing list