我是windows系统,pip install cython_bbox无法编译。
解决:
安装pip install cpython
安装VS2019企业版,为了windows能编译一些乱七八糟的,我一般都装个这个。
shellkey BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
下载源码:https://github.com/samson-wang/cython_bbox/tree/master
执行安装:
cd C:\Users\xjsd\Downloads\cython_bbox-master\cython_bbox-master pip install .
日志:
(py38) C:\Users\xjsd\Downloads\lap-master\lap-master>cd C:\Users\xjsd\Downloads\cython_bbox-master\cython_bbox-master (py38) C:\Users\xjsd\Downloads\cython_bbox-master\cython_bbox-master>pip install . Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing c:\users\xjsd\downloads\cython_bbox-master\cython_bbox-master Preparing metadata (setup.py) ... done Requirement already satisfied: Cython in c:\users\xjsd\.conda\envs\py38\lib\site-packages (from cython-bbox==0.1.3) (3.0.2) Requirement already satisfied: numpy in c:\users\xjsd\.conda\envs\py38\lib\site-packages (from cython-bbox==0.1.3) (1.24.4) Building wheels for collected packages: cython-bbox Building wheel for cython-bbox (setup.py) ... done Created wheel for cython-bbox: filename=cython_bbox-0.1.3-cp38-cp38-win_amd64.whl size=29288 sha256=ecd828eb5c0cdba3e3b4931d9acb1719cd0869ba675321ae59eba43b85f1368c Stored in directory: c:\users\xjsd\appdata\local\pip\cache\wheels\a2\15\10\68bac8f727391b0efe795d418657f56c18299c9404c06ad0ae Successfully built cython-bbox Installing collected packages: cython-bbox Successfully installed cython-bbox-0.1.3
numpy装1.23版本,重启pycharm。
本文作者:Dong
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC。本作品采用《知识共享署名-非商业性使用 4.0 国际许可协议》进行许可。您可以在非商业用途下自由转载和修改,但必须注明出处并提供原作者链接。 许可协议。转载请注明出处!