-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Unable to import pandas on python 3.5.2 #27558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
3.5.3 is the minimum on 0.25; see the release notes |
@jreback Thanks! May I suggest to update the documentation about that https://pandas.pydata.org/pandas-docs/stable/install.html#python-version-support ? |
yes that needs updating (and removing the 2.7) |
FROM ubuntu:16.04
RUN apt-get update -y && \
apt-get install -y python3 python3-pip
RUN pip3 install pandas
CMD python3 -c "import pandas" $ docker build -t pandas-py35 -f <the-dockerfile-above> .
$ docker run pandas-py35 |
@kszucs that had a warning for me locally
I suspect that with a newer version of pip |
Probably. |
The python3 version in Ubuntu Xenial repos is 3.5.1. This breaks a lot of stuff for a lot of people. Not sure if that means anything to y'all, but I thought you might like to know. |
@csbrown that should be fine. You'll just pull in pandas 0.24.x when you install. Does that not happen? |
it pulls pandas 0.25 for me. I |
Just doing a |
What version of pip?
…On Wed, Aug 14, 2019 at 11:34 AM Scott Brown ***@***.***> wrote:
it pulls pandas 0.25 for me. I pip3 install pandas==0.23 and it works
fine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27558?email_source=notifications&email_token=AAKAOIWR5X45TOF3JYPRQRTQEQX3FA5CNFSM4IGONSN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4JLYVA#issuecomment-521321556>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIXG3VFDNKVTGLX6LM3QEQX3FANCNFSM4IGONSNQ>
.
|
|
Gotcha. That pip may not support python_requires, which is what is supposed
to get you the right version for your python.
You'll need to upgrade pip or pin pandas.
…On Wed, Aug 14, 2019 at 11:37 AM Scott Brown ***@***.***> wrote:
***@***.***:~$ sudo apt-get install --only-upgrade python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
0 upgraded, 0 newly installed, 0 to remove and 280 not upgraded.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27558?email_source=notifications&email_token=AAKAOIR626JIAGAVX75OCPTQEQYEVA5CNFSM4IGONSN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4JL7QA#issuecomment-521322432>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIVDEHEWSOUJZW7AKWDQEQYEVANCNFSM4IGONSNQ>
.
|
The workaround is just fine for me. Maybe this info will help someone else though. |
If you are using python 3.5.2, using pandas version 0.24.2 works
|
It works. Thanks. |
I have same issue here in pandas-dev virtual environment. My Python version is 3.8.2. I'm following the instructions in this link: https://pandas.pydata.org/docs/dev/development/contributing.html#creating-a-development-environment
I tried:
Note that in my base environment, pandas installation and import both work fine. Do you have any idea how to fix this? Thanks. |
@ngthianhphuong https://pandas.pydata.org/docs/dev/development/contributing.html#creating-a-development-environment has the instructions for building pandas from source to contribute to pandas. Are you intending to contribute to pandas? If so, you'll need to install a C compiler to avoid that error: https://pandas.pydata.org/docs/dev/development/contributing.html#installing-a-c-compiler If not, then I'd recommend just sticking to Make sure you don't have a folder named |
Hi @TomAugspurger, thanks for your prompt reply. Yep that's right, I'd like to contribute so want to check first how it works. |
Yes, that's correct.
That indicates you don't have the compiler on your terminals path. It's been a while since I've used windows, but IIRC there's a special command prompt application launcher that sets everything up for you. |
Code Sample, a copy-pastable example if possible
Problem description
Although it seems like a typing issue pandas is still affected, error:
To reproduce:
Output of
pip freeze | grep pandas
The text was updated successfully, but these errors were encountered: