windows 上的 Biopython 安装错误 anaconda

Biopython install error anaconda on windows

from c:/users/me/anaconda3/scripts I pip install biopython但它失败并出现以下错误: c:\users\steph\anaconda3\include\pyconfig.h(243): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

令人困惑的是,我在 c:\users\steph\anaconda3\include 中确实有一个 pyconfig.h。也找不到退出状态 2 是什么...

如果您的 python 也通过 conda 安装,

Biopython 建议通过 conda 安装。参见 here