Why does installation of some Python packages requ

2019-06-24 03:53发布

Say, you are installing a Python package for pyEnchant or crfsuite, etc. It fails to install and in the error trace it says some .bat (or .dll) file is missing.

A few forums suggest you install Visual Studio and a few others give work-arounds like cygwin, mingw, etc.

Why do some Python packages require Visual Studio?

1条回答
Rolldiameter
2楼-- · 2019-06-24 04:39

Why do some Python packages require Visual Studio?

Installation from source of CPython extension modules written in C requires a C compiler. Visual Studio provides one such compiler.

To avoid it, use binary installers such as these.

Also, due to licensing restrictions, an extension module may not install some dlls automatically and you have to install Visual Studio that provides these dlls manually.

查看更多
登录 后发表回答