buildozer 报错:Error while finding module specification for 'Cpython.Build.Cythonize的解决办法

迈不过友情╰ 2023-07-25 09:18 103阅读 0赞

错误如:ImportError: No module named Cython 或者 Error while finding module specification for ‘Cpython.Build.Cythonize 是缺少了 cpython 安装即可,需要在同一个环境下

使用pip3安装cpython,我这里安装的pip3自定义命名为pyhton3.7.4了

  • pip3.7.4 install cpython
  • 或者 pip3 install cpython
  • 或者 python3.7.4 -m pip install cython

    (base) wdh@wdh:~/PycharmProjects/tanchishe$ pip3.7.4 install cpython
    Defaulting to user installation because normal site-packages is not writeable
    Collecting cpython
    Downloading cPython-0.0.5.tar.gz (4.4 kB)
    Collecting pymongo
    Downloading pymongo-3.10.1-cp37-cp37m-manylinux2014_x86_64.whl (462 kB)

    1. |████████████████████████████████| 462 kB 410 kB/s

    Collecting requests
    Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)

    1. |████████████████████████████████| 58 kB 1.3 MB/s

    Collecting chardet<4,>=3.0.2
    Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)

    1. |████████████████████████████████| 133 kB 1.8 MB/s

    Collecting idna<3,>=2.5
    Downloading idna-2.9-py2.py3-none-any.whl (58 kB)

    1. |████████████████████████████████| 58 kB 1.8 MB/s

    Collecting certifi>=2017.4.17
    Downloading certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)

    1. |████████████████████████████████| 157 kB 2.0 MB/s

    Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
    Downloading urllib3-1.25.8-py2.py3-none-any.whl (125 kB)

    1. |████████████████████████████████| 125 kB 2.1 MB/s

    Installing collected packages: pymongo, chardet, idna, certifi, urllib3, requests, cpython
    WARNING: The script chardetect is installed in ‘/home/wdh/.local/bin’ which is not on PATH.
    Consider adding this directory to PATH or, if you prefer to suppress this warning, use —no-warn-script-location.

    1. Running setup.py install for cpython ... done

    Successfully installed certifi-2020.4.5.1 chardet-3.0.4 cpython-0.0.5 idna-2.9 pymongo-3.10.1 requests-2.23.0 urllib3-1.25.8
    (base) wdh@wdh:~/PycharmProjects/tanchishe$

发表评论

表情:
评论列表 (有 0 条评论,103人围观)

还没有评论,来说两句吧...

相关阅读