比如说,你正在为pyEnchant或crfsuite等安装一个Python软件包。它无法安装,并且在错误追踪中它说缺少一些.bat (或.dll )文件。
有几个论坛建议你安装Visual Studio,还有一些人提供了诸如cygwin,mingw等的解决方法。
为什么一些Python包需要Visual Studio?
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?
最满意答案
为什么一些Python包需要Visual Studio?
从C编写的CPython扩展模块源代码安装需要C编译器。 Visual Studio提供了一个这样的编译器。
为了避免这种情况,请使用这些二进制安装程序。
此外,由于许可限制,扩展模块可能不会自动安装某些dll,并且您必须安装手动提供这些dll的Visual Studio。
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.
更多推荐
发布评论