https://github.com/pytorch/fairseq
fairseq를 사용하려고 installation을 진행할때, 깃을 clone해서 fairseq를 설치할 것이다.
git clone https://github.com/pytorch/fairseq
cd fairseq
pip install --editable ./
# on MacOS:
# CFLAGS="-stdlib=libc++" pip install --editable ./
# to install the latest stable release (0.10.x)
# pip install fairseq
이때 아래와 같은 오류가 난다면
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.6 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4pe035ms/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel cython
cwd: None
Complete output (14 lines):
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/dist-packages/pip/__main__.py", line 16, in <module>
from pip._internal.cli.main import main as _main # isort:skip # noqa
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/main.py", line 5, in <module>
import locale
File "/usr/lib/python3.6/locale.py", line 16, in <module>
import re
File "/usr/lib/python3.6/re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4pe035ms/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel cython Check the logs for full command output.
이걸 써서 해결하면 된다.
pip uninstall enum34 -y
pip install pyinstaller
'PYTHON > PYTORCH' 카테고리의 다른 글
[파이토치] torch.argmax 함수 (0) | 2021.10.06 |
---|---|
[파이토치] torch.mm 함수 (0) | 2021.10.06 |
[TorchAudio] Transformations 알아보기 (0) | 2021.01.11 |
[파이토치] Melspectrogram 추출하기 (0) | 2021.01.10 |
[파이토치] PILLOW_VERSION 오류 관련 (0) | 2020.05.08 |