pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.86k stars 18.01k forks source link

Unable to Install Pandas on Python 3.9.0a3 #32045

Closed yogi-playground closed 4 years ago

yogi-playground commented 4 years ago

Code Sample, a copy-pastable example if possible

# Your code here
**Unable to Install Pandas on Python 3.9.0a3** (tags/v3.9.0a3:c33378d, Jan 25 2020, 10:12:02) [MSC v.1916 64 bit (AMD64)] on win32

Problem description

Keep getting message still running.. but no luck PS C:\Windows\System32\WindowsPowerShell\v1.0> pip install pandas Collecting pandas Downloading https://files.pythonhosted.org/packages/02/c3/e8c56de02d6c52f8541feca2fd77117e8ae4956f7b3e5cdbed726624039b/pandas-1.0.1.tar.gz (4.9MB) Installing build dependencies: started Installing build dependencies: still running... Installing build dependencies: still running... Installing build dependencies: still running... Installing build dependencies: still running... Installing build dependencies: still running... Installing build dependencies: still running... Installing build dependencies: still running... Installing build dependencies: still running... Installing build dependencies: finished with status 'error' pip : ERROR: Command errored out with exit status 1: At line:1 char:1

jreback commented 4 years ago

well you have to build numpy and cython first which likely don’t work yet

so this is very premature

yogi-playground commented 4 years ago

well you have to build numpy and cython first which likely don’t work yet

so this is very premature

Thanks for quick response, i am new to this so could you please share any references url to guide me

jreback commented 4 years ago

no idea -

jorisvandenbossche commented 4 years ago

@yogendrasoni79 if you are new to python/pandas, you can better install a released version.

jbrockmendel commented 4 years ago

@yogendrasoni79 building on previous responses: can you try pip install numpy before trying to install pandas? It looks like the problem is there.

snowman2 commented 4 years ago

pyproj experiencing installation issues as well: https://travis-ci.com/github/pyproj4/pyproj/jobs/385358258

snowman2 commented 4 years ago
  pandas/_libs/writers.c: In function ‘__pyx_f_6pandas_5_libs_7writers_word_len’:

  pandas/_libs/writers.c:4942:5: error: ‘_PyUnicode_get_wstr_length’ is deprecated [-Werror=deprecated-declarations]

       __pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);

       ^

  In file included from /opt/python/3.9-dev/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9-dev/include/python3.9/Python.h:97,

                   from pandas/_libs/writers.c:33:

  /opt/python/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^

  pandas/_libs/writers.c:4942:5: error: ‘PyUnicode_AsUnicode’ is deprecated [-Werror=deprecated-declarations]

       __pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);

       ^

  In file included from /opt/python/3.9-dev/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9-dev/include/python3.9/Python.h:97,

                   from pandas/_libs/writers.c:33:

  /opt/python/3.9-dev/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here

   Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(

                                               ^

  pandas/_libs/writers.c:4942:5: error: ‘_PyUnicode_get_wstr_length’ is deprecated [-Werror=deprecated-declarations]

       __pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);

       ^

  In file included from /opt/python/3.9-dev/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9-dev/include/python3.9/Python.h:97,

                   from pandas/_libs/writers.c:33:

  /opt/python/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^

  cc1: all warnings being treated as errors

  error: command '/usr/bin/gcc' failed with exit code 1

  ----------------------------------------

  ERROR: Failed building wheel for pandas
jreback commented 4 years ago

see https://github.com/pandas-dev/pandas/issues/36296

esterrose commented 4 years ago

Read the red sentence allert when you fail to install package and find what you have to install first Try this, in cmd : pip list and read what package you have installed. skip if it is in the list

pip install setuptools pip install numpy pip install Cython pip install wheel

then after that pip install pandas

Admund20 commented 4 years ago

@esterrose, best answer ever. I've been looking for a solution to install pandas in python 3.9 and you had it perfect, install all those modules before installing pandas. Thanks man.

salma71 commented 3 years ago

It was successfully installed; however, when importing pandas it does say

import pandas as pd
ImportError: No module named pandas

[Done] exited with code=1 in 0.102 seconds

I am using pyenv python 3.9.0, pip version 20.3.1 Any help would be appreciated.

spyrpapa6 commented 3 years ago

It was successfully installed; however, when importing pandas it does say

import pandas as pd
ImportError: No module named pandas

[Done] exited with code=1 in 0.102 seconds

I am using pyenv python 3.9.0, pip version 20.3.1 Any help would be appreciated.

You Are the Best!!! Thank you!!!!! It needs for running cmd administrator rights by right click and run as administrator!!

dudu-24 commented 3 years ago

If u are having this kind of problem Answer is simple , For the python version you are using pandas is officially not supported, I got the same error in python 3.10 All I did is uninstall 3.10 version and install python 3.7

Then all I did is

pip install pandas

I think 3.9 supports pandas by now , But to safe I installed 3.7....😅😅😅

AhmadJahun commented 2 years ago

please i am a student carrying out a research on evaluation of machine learning classifiers for mobile malware detection,and from the research i find out that dealing with such a large amount of data to be train need a guide on how to use modelling pipeline to easy the work.Thanks,

tanmaychimurkar commented 2 years ago

and from the research i find out that dealing with such a large amount of data to be train need a guide on how to use modelling pipeline to easy the work.Thanks,

Hi @AhmadJahun, can you please elaborate on the question a little bit? Do you need a guide to handle to data modelling pipeline or a guide to training via the data pipeline?

If are referring to the first guide, you can checkout the following projects:

Modin: https://modin.readthedocs.io/en/stable/, Dask: https://www.dask.org/get-started

These would help you build a scalable data pipeline, as I have had a similar issue and used these to scale my data pipeline.

If you are referring to the second argument, about training via the data modelling pipeline, then you can checkout this project: Ray: https://docs.ray.io/en/latest/index.html

Hope this helps.