由于某些原因,我需要手动安装pandas,我找到了这个链接:https://pandapower.readthedocs.io/en/v1.5.1/getting_started/installation_without_pip.html
仅供参考:由于我使用的是Python3.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'非常感谢所有回复:)
发布于 2018-08-23 22:26:27
由于您似乎处于特殊情况下,通过pip和conda安装包并不容易,因此我非常推荐Anaconda。Anaconda python提供Python、环境控制和数百个常用的包(带有依赖项),所有这些都位于单个工具中。
这可能是最好的入门方式,而不必担心手动安装一堆包及其依赖项。
您可以在此处阅读更多信息并找到下载链接。
https://www.anaconda.com/download/#macos
此外,这里列出了在Windows上随Anaconda for Python3.6一起提供的所有包。
https://stackoverflow.com/questions/51987962
复制相似问题