말랑코딩
[yolox 에러 해결] error: urllib3 1.26.7 is installed but urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 is required by {'requests'} 본문
에러노트
[yolox 에러 해결] error: urllib3 1.26.7 is installed but urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 is required by {'requests'}
코랑이 2022. 2. 9. 17:13yolox 실행 환경 셋업을 위해 아래 명령어를 실행했더니 아래와 같이 urllib3 관련 에러가 발생했다.
error: urllib3 1.26.7 is installed but urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 is required by {'requests'}
root@b0b2843c3f78:/app/exp2_yolox# python setup.py develop
running develop
running egg_info
writing yolox.egg-info/PKG-INFO
writing dependency_links to yolox.egg-info/dependency_links.txt
writing requirements to yolox.egg-info/requires.txt
writing top-level names to yolox.egg-info/top_level.txt
reading manifest file 'yolox.egg-info/SOURCES.txt'
writing manifest file 'yolox.egg-info/SOURCES.txt'
running build_ext
building 'yolox._C' extension
Emitting ninja build file /app/exp2_yolox/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
g++ -pthread -shared -B /opt/conda/compiler_compat -L/opt/conda/lib -Wl,-rpath=/opt/conda/lib -Wl,--no-as-needed -Wl,--sysroot=/ /app/exp2_yolox/build/temp.linux-x86_64-3.8/app/exp2_yolox/yolox/la yers/csrc/vision.o /app/exp2_yolox/build/temp.linux-x86_64-3.8/app/exp2_yolox/yolox/layers/csrc/cocoeval/cocoeval.o -L/opt/conda/lib/python3.8/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -lt orch_python -o build/lib.linux-x86_64-3.8/yolox/_C.cpython-38-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.8/yolox/_C.cpython-38-x86_64-linux-gnu.so -> yolox
Creating /opt/conda/lib/python3.8/site-packages/yolox.egg-link (link to .)
yolox 0.2.0 is already the active version in easy-install.pth
Installed /app/exp2_yolox
Processing dependencies for yolox==0.2.0
Searching for urllib3==1.26.7
Reading https://pypi.org/simple/urllib3/
Downloading https://files.pythonhosted.org/packages/af/f4/524415c0744552cce7d8bf3669af78e8a069514405ea4fcbd0cc44733744/urllib3-1.26.7-py2.py3-none-any.whl#sha256=c4fdf4019605b6e5423637e01bc9fe4dae f873709a7973e195ceba0a62bbc844
Best match: urllib3 1.26.7
Processing urllib3-1.26.7-py2.py3-none-any.whl
Installing urllib3-1.26.7-py2.py3-none-any.whl to /opt/conda/lib/python3.8/site-packages
Adding urllib3 1.26.7 to easy-install.pth file
Installed /opt/conda/lib/python3.8/site-packages/urllib3-1.26.7-py3.8.egg
error: urllib3 1.26.7 is installed but urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 is required by {'requests'}
해결
urllib3 라이브러리를 pip install --upgrade urllib3 로 업그레이드 해봐도 같은 에러가 나서,
requests 라이브러리의 호환성때문이 아닐까 하고 requests 버전을 업그레이드 해줬다.
pip install --upgrade requests
....
Using /opt/conda/lib/python3.8/site-packages
Searching for wheel==0.37.1
Best match: wheel 0.37.1
Processing wheel-0.37.1-py3.8.egg
wheel 0.37.1 is already the active version in easy-install.pth
Installing wheel script to /opt/conda/bin
Using /opt/conda/lib/python3.8/site-packages/wheel-0.37.1-py3.8.egg
Finished processing dependencies for yolox==0.2.0
위와 같이 셋업이 정상적으로 완료됐다.
'에러노트' 카테고리의 다른 글
Comments