擅长:python、mysql、java
<blockquote>
<p>I've googled about this error message, and some posts say it because
the compatibility between 32- and 64-bits. But I doubt it, since my
IDE's and system are all 64-bit.</p>
</blockquote>
<p>是的,你的研究是正确的。在</p>
<blockquote>
<p>My C++ IDE is Visual Studio 2012 Express Version,
My computer is Windows 7 64-bits.</p>
</blockquote>
<p>这并不能保证您将构建一个64位二进制文件。事实上,VS2012 IDE是一个32位的应用程序。编译器和CRT负责生成64位二进制文件。此外,visualstudio的默认设置是生成一个32位二进制文件</p>
<p>您可以轻松地搜索并确定如何使用visualstudio构建64位二进制文件。或者,请参考链接<a href="http://msdn.microsoft.com/en-us/library/9yb4317s.aspx" rel="nofollow">How to: Configure Visual C++ Projects to Target 64-Bit Platforms</a></p>
<blockquote>
<p>and my Python IDE is
Aptana3 (64-bit). My computer is Windows 7 64-bits.</p>
</blockquote>
<p>这仍然不能说明您的Python安装有多糟糕。在</p>
<p>如果有疑问,请检查您的<code>dll</code>和您的<code>python.exe</code>的位。您可以使用<code>dumpbin</code>轻松确定位</p>
<pre><code>C:\Python27>dumpbin /headers python.exe|grep "machine"
14C machine (x86)
</code></pre>