当前位置:   article > 正文

运行dcnv3代码的警告及解决方法_attempted to use ninja as the buildextension backe

attempted to use ninja as the buildextension backend but we could not find n

在这里插入图片描述
UserWarning:Attempted to use ninja as the BuildExtension backend but we could not find ninja
解决方法:pip install ninja


SetuptoolsDeprecationWarning: setup.py install is deprecated.Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning.
解决:降到58.2.0
pip uninstall setuptools
pip install setuptools==58.2.0

运行python setup.py build install报错:
running bdist_egg
running egg_info
error: [Errno 13] Permission denied
原因是权限不够,解决方法:
sudo python setup.py build install
如果不行的话,在终端运行which python,得到python的路径后,运行
sudo /home/zyp/anaconda3/envs/pytorch_cp37/bin/python setup.py build install

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/93837
推荐阅读
  

闽ICP备14008679号