运行dcnv3代码的警告及解决方法

在这里插入图片描述
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

猜你喜欢

转载自blog.csdn.net/zoey_peak/article/details/129518827