简体   繁体   English

无法在 Windows 10 上安装 python pandas

[英]Can't install python pandas on Windows 10

The python pandas module used to work when I was on python 3.8. python pandas 模块曾经在我使用 python 3.8 时工作。 I have upgraded to python 3.9 and it stopped working.我已经升级到 python 3.9 并且它停止工作了。 I've tried installing it but am getting an error.我已经尝试安装它,但出现错误。

This is my python version:这是我的 python 版本:

Python 3.9.0a1

I am trying to install the pandas python module on windows 10. But when I do I get this error:我正在尝试在 windows 10 上安装 pandas python 模块。但是当我这样做时,我得到了这个错误:

pip install pandas
Collecting pandas
  Using cached pandas-1.0.4.tar.gz (5.0 MB)
  Installing build dependencies: started
  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

This is the full error: https://pastebin.com/dEuEkmGE这是完整的错误: https://pastebin.com/dEuEkmGE

I do have numpy and cython installed:我确实安装了 numpy 和 cython:

nympy nympy

 pip show numpy
Name: numpy
Version: 1.18.4
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: c:\users\tdun0002\appdata\local\programs\python\python39\lib\site-packages
Requires:
Required-by:

cython赛通

pip show cython
Name: Cython
Version: 0.29.19
Summary: The Cython compiler for writing C extensions for the Python language.
Home-page: http://cython.org/
Author: Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.
Author-email: cython-devel@python.org
License: Apache
Location: c:\users\tdun0002\appdata\local\programs\python\python39\lib\site-packages
Requires:
Required-by:

How do I get past this error?我如何克服这个错误?

I was having this problem with python 2.7.13 here is my solution: 1. install Cython with我在使用 python 2.7.13 时遇到了这个问题,这是我的解决方案: 1. 安装 Cython

pip install Cython

2. install g++ and gcc 2.安装g++和gcc

apt-get install gcc, g++

3. uninstall pandas 3.卸载pandas

pip uninstall pandas

4. reinstall pandas 4.重新安装pandas

pip install pandas

then everything will be OK.那么一切都会好起来的。

You can try this command:你可以试试这个命令:

pip install git+https://github.com/pydata/pandas-datareader.git.

https://github.com/pandas-dev/pandas https://github.com/pandas-dev/pandas

The problem happened when I installed Python 3.9 .问题发生在我安装Python 3.9时。 I was unable to use Pandas or install it once I did that.一旦我这样做了,我就无法使用 Pandas 或安装它。 Downgrading from Python 3.9 to Python 3.8 allowed me to install Pandas again.Python 3.9降级到Python 3.8允许我再次安装 Pandas。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM