YOLOX installation error --python3 setup.py develop cannot run normally

Hello everyone, I am [ Dried Beans and Peanuts ]. This time I have brought a new article to share with you~

Article directory

Error content

Download the official open source code of yolox from github. After configuring the environment, run the setup file and report an error.
insert image description here

insert image description here

insert image description here

solution

1. Comment out lines 51 and 52 in setup.py, and then add a line:

long_description="long_description"

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-1OblziOD-1631776250365) (C:\Users\yuan02.gao\AppData\Roaming\Typora\typora-user- images\image-20210908152125921.png)]

Some people have solved the problem this way, but not here.

2. Update gcc

Pay attention to the warning after entering python3 setup.py develop:

[External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-wuW8hQnq-1631776250366) (C:\Users\yuan02.gao\AppData\Roaming\Typora\typora-user- images\image-20210908152302720.png)]

Tell us that gcc needs to be upgraded, otherwise it may affect the operation.

So try:

conda install -c psi4 gcc-5
#没有安装conda的同学可以使用pip
pip install -c psi4 gcc-5

Just run the above statement directly, it may be a bit slow, just wait.

[External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-ovIHCivE-1631776250369) (C:\Users\yuan02.gao\AppData\Roaming\Typora\typora-user- images\image-20210908152531342.png)]

Running setup.py:

[External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-jgv45JQm-1631776250370) (C:\Users\yuan02.gao\AppData\Roaming\Typora\typora-user- images\image-20210908152638573.png)]

Although there are warnings, but finally succeeded!

[External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-LKGiE29Y-1631776250372) (C:\Users\yuan02.gao\AppData\Roaming\Typora\typora-user- images\image-20210908152818927.png)]

congratulations! !

If you encounter a bug in the future, you need to check more, and then look at the error message

It’s not easy to code words. If you’ve seen this, why don’t you give a thumbs up~
I’m [ Dried Beans and Peanuts ]. Your likes + favorites + attention are the biggest motivation for me to persevere~

insert image description here

Guess you like

Origin blog.csdn.net/weixin_42784535/article/details/120180726