(2019.12.17 resolved) Cython compile ImportError: No module named Cython.Build
-
HelloWorld program
As the first program to learn, " Cython Use Case: Output Hello World ", there may be errors like the title.
In the actual file there is
Cython.Build
Yes, this is because of environment configuration issues. -
How to call Python3 in cmd
PyCharm
middle yesPython3
, already installedCython
, but inCMD
call directly inpython
is usingPython2.7
, and is not installedCython
, hence the error.in this machine
python
correspond2.7
,py
correspond3.7
.py setup . py build_ext - - inplace # replace python setup . py build_ext - - inplace
- 1
- 2
- 3
Still can't solve the problem, because the call here
Python 3.7
not yetPyCharm
middlePython
,PyCharm
middlePython
YesAnaconda
in, therefore, inPython3.7
install again inCython
solve this problem.py - m pip install Cython # -m means to call the module py setup . py build_ext - - inplace
- 1
- 2
-
References