alexgand / springer_free_books

Python script to download all Springer books released for free during the 2020 COVID-19 quarantine
GNU General Public License v3.0
1.64k stars 366 forks source link

in windows : import pandas report error ImportError: DLL load failed while importing aggregations:找不到指定模块 #123

Open BlueMoonWolf opened 3 years ago

BlueMoonWolf commented 3 years ago

today I down the latest code to run in windows,when I run "python3 main.py" directly,it dosen't work.(I forgot the error message..sorry,but it about pandas). Then I use it in windows Virtual environment ,all package download completed, run the cmd as readme.md describe bellow: python -m venv .venv .venv\Scripts\activate.bat pip install -r requirements.txt python main.py

and then it report an error: DLL load failed while importing aggregations:找不到指定模块. and stop work.

I searched from internet and found the reason,pandas new version 1.0.2 and 1.0.3 forgot to import vs2015 runtime in it. you have tow ways to fix it, one is install vs2015 runtime in windows youself. another is to rollback to pandas 1.0.1 ,cmd :"pip install pandas==1.0.1". I used the second way to fix it.