簡體   English   中英

無法在 Windows 10 上安裝 python pandas

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

python pandas 模塊曾經在我使用 python 3.8 時工作。 我已經升級到 python 3.9 並且它停止工作了。 我已經嘗試安裝它,但出現錯誤。

這是我的 python 版本:

Python 3.9.0a1

我正在嘗試在 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

這是完整的錯誤: https://pastebin.com/dEuEkmGE

我確實安裝了 numpy 和 cython:

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:

賽通

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:

我如何克服這個錯誤?

我在使用 python 2.7.13 時遇到了這個問題,這是我的解決方案: 1. 安裝 Cython

pip install Cython

2.安裝g++和gcc

apt-get install gcc, g++

3.卸載pandas

pip uninstall pandas

4.重新安裝pandas

pip install pandas

那么一切都會好起來的。

你可以試試這個命令:

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

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

問題發生在我安裝Python 3.9時。 一旦我這樣做了,我就無法使用 Pandas 或安裝它。 Python 3.9降級到Python 3.8允許我再次安裝 Pandas。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM