简体   繁体   English

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

[英]can't install pandas in windows python 3.7?

Due to some reasons I need to install pandas manually, I found this link: https://pandapower.readthedocs.io/en/v1.5.1/getting_started/installation_without_pip.html 由于某些原因,我需要手动安装熊猫,因此找到了以下链接: https : //pandapower.readthedocs.io/en/v1.5.1/getting_started/installation_without_pip.html

FYI: since I am using python 3.7, I am running command py setup.py install I also tried python setup.py install but got the same result. 仅供参考:由于我使用的是python 3.7,因此我正在运行py setup.py install命令,我也尝试了python setup.py install但得到了相同的结果。

at the end of the install I am getting following error: 在安装结束时,出现以下错误:

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')

Anyhow I tried to compile a project that has import pandas and the output I get is: 无论如何,我试图编译一个具有import pandas的项目,而我得到的输出是:

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

All replies are much appreciated :) 非常感谢所有答复:)

Since it seems you are in a special circumstance where installing packages via pip and conda is not easy, I really recommend Anaconda. 因为您似乎处在特殊的情况下,通过pipconda安装软件包并不容易,所以我真的推荐Anaconda。 Anaconda Python offers python, environment control, and a few hundred commonly used packages (with dependencies) all located in a single tool. Anaconda Python提供了python,环境控制以及数百个常用软件包(带有依赖项),它们都位于一个工具中。

This might be the best way to get started, without having to worry about manually installing a bunch of packages and their dependencies. 这可能是入门的最佳方法,而不必担心手动安装一堆软件包及其依赖项。

You can read more about and find the download links here. 您可以在此处了解更多信息并找到下载链接。

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

Also, here's a list of all the packages that ship with Anaconda for Python 3.6 on Windows. 另外,这是Windows上Anaconda for Python 3.6附带的所有软件包的列表。

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

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

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