Variables cannot be declared with ‘cpdef‘. Use ‘cdef‘ instead.

环境:

  1. mac
  2. python3.6(通过pyenv-virtualenv进行python版本降级)
    问题:
  3. 执行pip install -r …/requirements.txt 时,提示报错
    在这里插入图片描述
    cpdef GEVENT_CONFIG (不支持)
    src/gevent/_gevent_cgreenlet.pxd:181:6: Variables cannot be declared with ‘cpdef’. Use ‘cdef’ instead.

查询百度无果后,尝试使用
sudo pip install -r …/requirements.txt
成功!
原因未知。
至少可以成功安装依赖!
希望大家工作愉快!

猜你喜欢

转载自blog.csdn.net/qq_28992047/article/details/128319601
今日推荐