开发者

Python: Unable to easy_install (Windows 7 x64)

I'm r开发者_如何学Cunning python 2.7 on Windows 7 x64, and trying to easy_install pysqlite.

With command: easy_install -U pysqlite

It exits with the error:

error: Setup script exited with error: Unable to find vcvarsall.bat

This site: http://code.google.com/p/rdflib/issues/detail?id=104#c4 suggests a workaround of installing MingGW, saying to check the g++ option on install (plus some other stuff).

Unfortunately, MingGW does not give me the option to install g++, only c++, and of course on running easy_install a second time, I get ".. command 'gcc' failed: No such file or directory". So now I am el stucko.

Any advice on how to fix this problem would be great!


Even if you install a compiler (MinGW or Visual Studio), you still have to install SQLite3 development libraries. It is a pain to build things on Windows, so I suggest that you get the unofficial pre-built Windows binaries and install it.

As an aside, you should probably consider switching to ActivePython as it includes a package manager that allows you to install pre-built modules from ActiveState's repository.

As for the particular error in question, that is a distutils bug and you should raise your concerns in the Python bug tracker.


When that says "g++ compiler" they really mean the C++ compiler, which for mingw is gcc.


You need to install the Microsoft Visual C compiler thingy (the 2010 one). And use that as your compiler for all modules. You can also mess with distuls.cfg and specify a compiler that way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜