无法在 Windows 10 上安装 python pandas [英] Can't install python pandas on Windows 10

查看:69
本文介绍了无法在 Windows 10 上安装 python pandas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

python pandas 模块曾经在我使用 python 3.8 时工作过.我已经升级到 python 3.9 并且它停止工作了.我已尝试安装它,但出现错误.

The python pandas module used to work when I was on python 3.8. I have upgraded to python 3.9 and it stopped working. I've tried installing it but am getting an error.

这是我的python版本:

This is my python version:

Python 3.9.0a1

我正在尝试在 Windows 10 上安装 pandas python 模块.但是当我这样做时,我收到此错误:

I am trying to install the pandas python module on windows 10. But when I do I get this error:

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

这是完整的错误:https://pastebin.com/dEuEkmGE

我确实安装了 numpy 和 cython:

I do have numpy and cython installed:

 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?

推荐答案

我在使用 python 2.7.13 时遇到了这个问题这是我的解决方案:1. 用

I was having this problem with python 2.7.13 here is my solution: 1. install Cython with

pip install Cython

2.安装 g++ 和 gcc

2. install g++ and gcc

apt-get install gcc, g++

3.卸载熊猫

pip uninstall pandas

4.重新安装熊猫

pip install pandas

然后一切都会好的.

这篇关于无法在 Windows 10 上安装 python pandas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆