无法在Windows python 3.7中安装熊猫?

时间:2018-08-23 14:17:21

标签: python pandas

由于某些原因,我需要手动安装熊猫,因此找到了此链接:https://pandapower.readthedocs.io/en/v1.5.1/getting_started/installation_without_pip.html

仅供参考:由于我使用的是python 3.7,因此我正在运行命令py setup.py install,我也尝试了python setup.py install,但得到了相同的结果。

在安装结束时出现以下错误:

Installed c:\python 3.7\lib\site-packages\pandapower-1.5.1-py3.7.egg
Processing dependencies for pandapower==1.5.1
Searching for scipy
Reading https://pypi.python.org/simple/scipy/
Download error on https://pypi.python.org/simple/scipy/: timed out -- Some 
packages may not be found!
Couldn't find index page for 'scipy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: timed out -- Some 
packages may not be found!
No local packages or working download links found for scipy
error: Could not find suitable distribution for Requirement.parse('scipy')

无论如何,我尝试编译一个具有import pandas的项目,并且得到的输出是:

Traceback (most recent call last):
  File "Workstation Sampling.py", line 2, in <module>
import pandas
 ModuleNotFoundError: No module named 'pandas'

非常感谢所有回复:)

1 个答案:

答案 0 :(得分:0)

由于您似乎处在特殊的情况下,通过pipconda安装软件包并不容易,所以我真的推荐Anaconda。 Anaconda Python提供了python,环境控制以及数百个常用包(带有依赖项),它们都位于一个工具中。

这可能是入门的最佳方法,而不必担心手动安装一堆软件包及其依赖项。

您可以在此处了解更多信息并找到下载链接。

https://www.anaconda.com/download/#macos

此外,这是Windows上Anaconda for Python 3.6附带的所有软件包的列表。

https://docs.anaconda.com/anaconda/packages/py3.6_win-64