error: Python was built with Visual Studio 2003
2010-08-11 16:16
453 查看
在windows上安装rdflib2.4.0的时候出现如下错误:
Python was built with Visual Studio 200*” error:
Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate
compatible binaries.
Visual Studio 2003 was not found on this system.
If you have Cygwin installed, you can try compiling with MingW32, by
passing “-c mingw32″ to setup.py.
在google之后,找到网上的解决方法,如下:
Python for Windows is built using Visual Studio 2003; however the
Bison-generated parser does not seem to generate C code that is
compatible with this compiler. Therefore, it is recommended that gcc be
installed, either through cygwin
or by downloading MinGW. More details can be
found on this page
, but we will also summarize it here,
assuming we take the cygwin route.
1. Install Python 2.5
,
Windows Installer download is fine.
2. Download and run cygwin setup
, making
sure to include to following packages (No need to install the version of
Python that comes with cygwin):
gcc-mingw
gcc-mingw-core
gcc-mingw-g++
make
3. Add [cygwin
dir]/bin
to PATH.
4. In order to ensure that gcc is used for
building extensions, create a file [Python 2.5
dir]/lib/distutils/distutils.cfg
:
[code]
5.
Download RDFLib release
version
or source
.
6. Run rdflib/setup.py install.
Python was built with Visual Studio 200*” error:
Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate
compatible binaries.
Visual Studio 2003 was not found on this system.
If you have Cygwin installed, you can try compiling with MingW32, by
passing “-c mingw32″ to setup.py.
在google之后,找到网上的解决方法,如下:
Python for Windows is built using Visual Studio 2003; however the
Bison-generated parser does not seem to generate C code that is
compatible with this compiler. Therefore, it is recommended that gcc be
installed, either through cygwin
or by downloading MinGW. More details can be
found on this page
, but we will also summarize it here,
assuming we take the cygwin route.
1. Install Python 2.5
,
Windows Installer download is fine.
2. Download and run cygwin setup
, making
sure to include to following packages (No need to install the version of
Python that comes with cygwin):
gcc-mingw
gcc-mingw-core
gcc-mingw-g++
make
3. Add [cygwin
dir]/bin
to PATH.
4. In order to ensure that gcc is used for
building extensions, create a file [Python 2.5
dir]/lib/distutils/distutils.cfg
:
[code]
[build] compiler = mingw32
5.
Download RDFLib release
version
or source
.
6. Run rdflib/setup.py install.
相关文章推荐
- error: Python was built with Visual Studio 2003
- 一篇转帖,为以后碰到error: Python was built with Visual Studio 2003; 这种恶心问题找个棒槌
- extends python2.7 with cpp by visual studio 2017
- Python With Visual Studio Code – A 5 Step Guide
- How to Resolve the 'Error MSB6006 tsc.exe exited with code 2' build error in Visual Studio 2015
- error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
- 解决"python setup.py egg_info" failed with error code 1以及error: Microsoft Visual C++ 14.0 is required
- GetBuiltProjectOutputRecursive error running Xamarin Forms iOS on Visual Studio
- Using the Visual Studio .NET 2003 Debugger with ASP.NET Applications
- Visual Studio .Net 2003 Error: "Refreshing the project failed. Unable to retrieve folder information from the server."
- error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
- Building Python 2.7.10 with Visual Studio 2010 or 2015 - Google Chrome
- 安装scrapy报错 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
- Python安装scrapy提示 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++
- Setup Was Unable to Create a DCOM User Account" Error Message in Visual Studio 6.0
- How to configure and use Git with visual studio 2012 and TFS
- .NET Memory Allocation Profiling with Visual Studio 2012
- 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website autom
- [Tip: VS find combo box]Fun with the Visual Studio Find Combo Box
- Microsoft Visual Studio .NET 2003 引导程序插件