ImportError: No module named 'Cython'

给你一囗甜甜゛ 提交于 2021-02-06 14:59:18

问题


I'm trying do from Cython.Build import cythonize and I get the message ImportError: No module named 'Cython', but I instaled the Cython with the comand pip install Cython. What's wrong?

Python 3.5 Cython 0.25.2 Windows 8


回答1:


just directly install from pypi: pip install Cython
https://pypi.org/project/Cython/




回答2:


Use Pip3 command:

pip3 install --upgrade cython



回答3:


I reinstalled the Cython with conda and install the Microsoft Visual C++ Build Tools and it works fine.




回答4:


You can download the the newest Cython release from http://cython.org/ or you can directly download by clicking this link here Unpack the tarball or zip file, enter the directory, and then run:

python setup.py install



回答5:


it should be path problem. go to windows search for python idle right click idle - open file location where right click on python.exe - open file location if the module not in that location type cmd and press enter in path now install module with pip install cython it will work fine



来源:https://stackoverflow.com/questions/43982543/importerror-no-module-named-cython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!