Q&A
책을 따라하다가 막히는 부분이 있나요?
질문을 남겨주세요.
하지만, 책을 끝까지 읽고 나면 이 페이지도 만드실 수 있을거에요.
docker build 에러 ㅜㅜ
3 years, 7 months ago
why#11 4352.4 File "/tmp/easy_install-x0iw94a2/numpy-1.20.2/setup.py", line 513, in <module>
#11 4352.4 File "/tmp/easy_install-x0iw94a2/numpy-1.20.2/setup.py", line 493, in setup_package
#11 4352.4 File "/tmp/easy_install-x0iw94a2/numpy-1.20.2/setup.py", line 290, in generate_cython
#11 4352.4 `setup.py upload` is not supported, because it's insecure.
#11 4352.4 RuntimeError: Running cythonize failed!
#11 4352.4
#11 4352.4 During handling of the above exception, another exception occurred:
#11 4352.4
#11 4352.4 Traceback (most recent call last):
#11 4352.4 File "<string>", line 1, in <module>
#11 4352.4 File "/tmp/pip-install-6i1nyz5f/scipy_d3e8d98e4f96477d902b013cf9adae9a/setup.py", line 416, in <module>
#11 4352.4 setup_package()
#11 4352.4 File "/tmp/pip-install-6i1nyz5f/scipy_d3e8d98e4f96477d902b013cf9adae9a/setup.py", line 412, in setup_package
#11 4352.4 setup(**metadata)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
#11 4352.4 _install_setup_requires(attrs)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
#11 4352.4 dist.fetch_build_eggs(dist.setup_requires)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 717, in fetch_build_eggs
#11 4352.4 resolved_dists = pkg_resources.working_set.resolve(
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 780, in resolve
#11 4352.4 dist = best[req.key] = env.best_match(
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1065, in best_match
#11 4352.4 return self.obtain(req, installer)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1077, in obtain
#11 4352.4 return installer(requirement)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 787, in fetch_build_egg
#11 4352.4 return cmd.easy_install(req)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
#11 4352.4 return self.install_item(spec, dist.location, tmpdir, deps)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 705, in install_item
#11 4352.4 dists = self.install_eggs(spec, download, tmpdir)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
#11 4352.4 return self.build_and_install(setup_script, setup_base)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
#11 4352.4 self.run_setup(setup_script, setup_base, args)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
#11 4352.4 run_setup(setup_script, args)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 253, in run_setup
#11 4352.4 raise
#11 4352.4 File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
#11 4352.4 self.gen.throw(type, value, traceback)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 195, in setup_context
#11 4352.4 yield
#11 4352.4 File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
#11 4352.4 self.gen.throw(type, value, traceback)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 166, in save_modules
#11 4352.4 saved_exc.resume()
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 141, in resume
#11 4352.4 six.reraise(type, exc, self._tb)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/_vendor/six.py", line 685, in reraise
#11 4352.4 raise value.with_traceback(tb)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 154, in save_modules
#11 4352.4 yield saved
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 195, in setup_context
#11 4352.4 yield
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 250, in run_setup
#11 4352.4 _execfile(setup_script, ns)
#11 4352.4 File "/usr/local/lib/python3.8/site-packages/setuptools/sandbox.py", line 45, in _execfile
#11 4352.4 exec(code, globals, locals)
#11 4352.4 File "/tmp/easy_install-x0iw94a2/numpy-1.20.2/setup.py", line 513, in <module>
#11 4352.4
#11 4352.4 [output clipped, log limit 1MiB reached]
#11 4352.6 Downloading scipy-0.18.1.zip (14.6 MB)
#11 4363.1 Downloading scipy-0.18.1.tar.gz (13.1 MB)
#11 4370.8 Downloading scipy-0.18.0.zip (14.6 MB)
#11 4378.7 Downloading scipy-0.18.0.tar.gz (13.2 MB)
#11 4388.4 Downloading scipy-0.17.1.zip (13.8 MB)
#11 4398.9 Downloading scipy-0.17.1.tar.gz (12.4 MB)
#11 4411.9 Downloading scipy-0.17.0.zip (13.8 MB)
#11 4435.9 Downloading scipy-0.17.0.tar.gz (12.4 MB)
#11 4444.8 Downloading scipy-0.16.1.zip (13.6 MB)
#11 4455.0 Downloading scipy-0.16.1.tar.gz (12.2 MB)
#11 4463.4 Downloading scipy-0.16.0.zip (19.3 MB)
#11 4479.9 Downloading scipy-0.16.0.tar.gz (18.1 MB)
#11 4491.5 Downloading scipy-0.15.1.zip (12.7 MB)
#11 4503.8 Downloading scipy-0.15.1.tar.gz (11.4 MB)
#11 4514.8 Downloading scipy-0.15.0.zip (12.7 MB)
#11 4524.5 Downloading scipy-0.15.0.tar.gz (11.4 MB)
#11 4532.6 Downloading scipy-0.14.1.zip (12.2 MB)
#11 4540.7 Downloading scipy-0.14.1.tar.gz (10.9 MB)
#11 4547.7 Downloading scipy-0.14.0.zip (11.5 MB)
#11 4552.2 Collecting six==1.15.0
#11 4552.3 Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
#11 4552.5 Collecting sklearn==0.0
#11 4552.6 Downloading sklearn-0.0.tar.gz (1.1 kB)
#11 4553.1 Collecting sqlparse==0.4.1
#11 4553.2 Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB)
#11 4553.3 Collecting threadpoolctl==2.1.0
#11 4553.4 Downloading threadpoolctl-2.1.0-py3-none-any.whl (12 kB)
#11 4553.6 Collecting urllib3==1.26.3
#11 4553.7 Downloading urllib3-1.26.3-py2.py3-none-any.whl (137 kB)
#11 4554.0 Collecting pyjwt[crypto]>=1.7
#11 4554.1 Downloading PyJWT-2.0.0-py3-none-any.whl (15 kB)
#11 4554.2 Downloading PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
#11 4554.2 Collecting scikit-learn
#11 4554.3 Downloading scikit-learn-0.22.1.tar.gz (6.9 MB)
#11 4557.6 Downloading scikit-learn-0.22.tar.gz (6.9 MB)
executor failed running [/bin/sh -c pip install -r requirements.txt]: exit code: 1
#11 4559.7 Downloading scikit-learn-0.21.3.tar.gz (12.2 MB)
#11 4563.2 Downloading scikit-learn-0.21.2.tar.gz (12.2 MB)
#11 4566.7 Downloading scikit-learn-0.21.1.tar.gz (12.2 MB)
#11 4570.1 Downloading scikit-learn-0.20.4.tar.gz (11.7 MB)
#11 4574.2 Building wheels for collected packages: cffi, django-allauth, numpy, ordered-set, pandas, Pillow, psycopg2-binary, sklearn, cryptography, kiwisolver, scikit-learn, scipy
#11 4574.2 Building wheel for cffi (setup.py): started
#11 4578.6 Building wheel for cffi (setup.py): finished with status 'done'
#11 4578.6 Created wheel for cffi: filename=cffi-1.14.4-cp38-cp38-linux_x86_64.whl size=418397 sha256=8d5dfa5cfc548acaacc13073660bc8fbde7cbac60bbec8e96502fd948b1f0b47
#11 4578.6 Stored in directory: /root/.cache/pip/wheels/74/c4/b2/301f50054a0b5635fc25567992701a66ccb924f38a85e1133c
#11 4578.6 Building wheel for django-allauth (setup.py): started
#11 4579.9 Building wheel for django-allauth (setup.py): finished with status 'done'
#11 4579.9 Created wheel for django-allauth: filename=django_allauth-0.44.0-py3-none-any.whl size=897448 sha256=6f2bbbb7169acf32476cc416a5f2736bc6fd2b197f04f6269f00fa0d9196e34c
#11 4579.9 Stored in directory: /root/.cache/pip/wheels/26/1b/59/ed48e3fc8d46e92c32184b10ab602e7e04f4eb1fa4a0f337ba
#11 4579.9 Building wheel for numpy (PEP 517): started
#11 4640.3 Building wheel for numpy (PEP 517): still running...
#11 4705.5 Building wheel for numpy (PEP 517): still running...
#11 4717.7 Building wheel for numpy (PEP 517): finished with status 'done'
#11 4717.7 Created wheel for numpy: filename=numpy-1.19.5-cp38-cp38-linux_x86_64.whl size=18290463 sha256=3655d94ce1044c4603ee65fc5f641184e9a1c90a721064698d2942682db6e3fd
#11 4717.7 Stored in directory: /root/.cache/pip/wheels/77/66/aa/fbf0976388c6c70c38c4678b1309bf8e31847ea6dd99528c25
#11 4717.7 Building wheel for ordered-set (setup.py): started
#11 4718.2 Building wheel for ordered-set (setup.py): finished with status 'done'
#11 4718.2 Created wheel for ordered-set: filename=ordered_set-4.0.2-py2.py3-none-any.whl size=8209 sha256=5f05d91ef20383ead6a3efcb529e1e84149b73aa9d5fa86df424b38846787564
#11 4718.2 Stored in directory: /root/.cache/pip/wheels/a1/09/42/0b963b1d5423ddc87cb4ba9f475e09838d3813300b52a866ea
#11 4718.2 Building wheel for pandas (PEP 517): started
#11 4813.4 Building wheel for pandas (PEP 517): still running...
#11 4876.3 Building wheel for pandas (PEP 517): still running...
#11 5039.9 Building wheel for pandas (PEP 517): still running...
#11 5130.8 Building wheel for pandas (PEP 517): still running...
#11 5192.4 Building wheel for pandas (PEP 517): still running...
#11 5255.7 Building wheel for pandas (PEP 517): still running...
#11 5272.9 Building wheel for pandas (PEP 517): finished with status 'error'
#11 5272.9 Building wheel for Pillow (setup.py): started
#11 5292.0 Building wheel for Pillow (setup.py): finished with status 'done'
#11 5292.0 Created wheel for Pillow: filename=Pillow-8.1.0-cp38-cp38-linux_x86_64.whl size=1237462 sha256=9df3920be2e4e92a39a22e696f673ff612c6049bf5a6cbfdb1f7f6f2824d1467
#11 5292.0 Stored in directory: /root/.cache/pip/wheels/4e/db/04/9dcbaf9865568850d9bbdeb9b6b697e70f804d18e7e8aac050
#11 5292.0 Building wheel for psycopg2-binary (setup.py): started
#11 5297.7 Building wheel for psycopg2-binary (setup.py): finished with status 'done'
#11 5297.7 Created wheel for psycopg2-binary: filename=psycopg2_binary-2.8.6-cp38-cp38-linux_x86_64.whl size=491464 sha256=de0ace7b2c43463084c77d12134a2bc19c32f2f47896d73a29fb72e010ae67f3
#11 5297.7 Stored in directory: /root/.cache/pip/wheels/15/d7/13/ef37b82cf1de521c82c129a16ad8007a81b4eab0f23b22c7b3
#11 5297.7 Building wheel for sklearn (setup.py): started
#11 5298.3 Building wheel for sklearn (setup.py): finished with status 'done'
#11 5298.3 Created wheel for sklearn: filename=sklearn-0.0-py2.py3-none-any.whl size=1316 sha256=314a2e67ce8fc30074885127be79ee8514690a82d8b189ed2c6dff21997c02c7
#11 5298.3 Stored in directory: /root/.cache/pip/wheels/22/0b/40/fd3f795caaa1fb4c6cb738bc1f56100be1e57da95849bfc897
#11 5298.3 Building wheel for cryptography (PEP 517): started
#11 5318.5 Building wheel for cryptography (PEP 517): finished with status 'done'
#11 5318.5 Created wheel for cryptography: filename=cryptography-3.2.1-cp38-cp38-linux_x86_64.whl size=1074355 sha256=dd3f124f70131597d0ad4f3a509a6140d176d7f2140d4283c90bba11879b61fa
#11 5318.5 Stored in directory: /root/.cache/pip/wheels/b6/b8/df/c8777d287c13b23b3caaca1491e1ae1fe9a050d664e1d5a203
#11 5318.5 Building wheel for kiwisolver (setup.py): started
#11 5319.0 Building wheel for kiwisolver (setup.py): finished with status 'error'
#11 5319.0 Running setup.py clean for kiwisolver
#11 5319.5 Building wheel for scikit-learn (setup.py): started
#11 5319.8 Building wheel for scikit-learn (setup.py): finished with status 'error'
#11 5319.8 Running setup.py clean for scikit-learn
#11 5320.2 Building wheel for scipy (setup.py): started
#11 5320.6 Building wheel for scipy (setup.py): finished with status 'error'
#11 5320.6 Running setup.py clean for scipy
#11 5321.0 Successfully built cffi django-allauth numpy ordered-set Pillow psycopg2-binary sklearn cryptography
#11 5321.0 Failed to build pandas kiwisolver scikit-learn scipy
------
ERROR: Service 'web' failed to build
==========================================================
pandas kiwisolver scikit-learn scipy 설치에서 오류가 뜨는거 같아서 requirements.txt에 버전을 지워봐도 똑같네요 ㅠㅠㅠ
도와주세요 ㅠ
목록보기
why 3 years, 7 months ago
Dockerfile은 아래와 같습니다 ㅠㅠ
==============================================
Updated: April 16, 2021, 12:18 p.m.
taegon 3 years, 7 months ago
pip 설치과정에서 버전이 꼬이면, 시간이 굉장히 오래걸리거나 설치가 실패하는 경우가 있습니다. requirement.txt는 호스트OS에서 문제 없이 설치가능한 환경인가요?
numpy pandas 등의 과학 관련 라이브러리를 기본 제공되는 python 도커 이미지에 설치하시면 시간이 굉장히 오래 걸립니다.
아래 글과 같이 docker file를 구성하시거나, 글의 저자가 만들어둔 이미지를 이용할 수도 있습니다.
https://www.freecodecamp.org/news/building-python-data-science-container-using-docker/
혹은 과학자분들께는 anaconda 배포판 추천하는데요, 도커도 마찬가지로 conda 이미지를 이용할 수 있습니다. 관련해서는 글을 쉽게 찾을 수 있으며, 아래 같은 글을 참고하시면 되겠습니다.
https://hands-on.cloud/how-to-build-python-data-science-docker-container-based-on-anaconda/#simple-way
혹시 문제가 계속되시면, 다시 글 남겨주세요.
Updated: April 16, 2021, 1:44 p.m.
Leave a Comment: