简体   繁体   中英

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

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.

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:

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. Anaconda Python offers python, environment control, and a few hundred commonly used packages (with dependencies) all located in a single tool.

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

Also, here's a list of all the packages that ship with Anaconda for Python 3.6 on Windows.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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