执行命令时:
python manage.py runserver
错误:
C:\Users\Mr-py-dj\Desktop\sageteam-project\venv\lib\site-packages\khayyam\algorithms.py:19: UserWarning: The C extension is not available. Switching to fallback python pure algorithms,so it's about 1000X slower than C implementation of the algorithms.
"The C extension is not available. Switching to fallback python pure algorithms,"
为什么?
答案 0 :(得分:0)
安装build-essential
和python2-dev
或python3-dev
下载latest release并解压缩。然后
python setup.py build_ext --inplace
pip install -e .