Reputation: 8433
I have been using python 3.3
This is an old problem as I searched, and this is what I did:
helloworld.pyx
print("Hello world!")
Then, in ipython, I did:
import pyximport; pyximport.install()
import helloworld
It says:
ImportError: Building module helloworld failed: ["ValueError: ['path']\n"]
The same problem did not happen with python 2.7
I googled this: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows and realized that I have to install Windows SDK for Windows 7 and .NET Framework 4. As it comes with the VC++2010 Redistributables, I did not install the redistributables alone again. I thought I had everything ready, but the import error still remains.
Could anyone please help me solve it?
Thank you!
-Shawn
Upvotes: 4
Views: 1519
Reputation: 166
install Windows 7 SDK, then open cmd run: "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x64
then run: python setup.py install
Upvotes: 1
Reputation: 595
I was having the same issue and the same environment (win7 64bit, python-3.3.3 64bit).
I have
msvccompiler9_33.diff
) from this python bug,And now I can compile and import the helloworld.py
just fine.
Upvotes: 1