python pytest unrecognized arguments: -n error

pycharm을 통해서 pytest를 하려고 하니 아래의 에러가 발생하였다.
해당 에러는 pycharm의 고유 에러는 아닌듯 하다.
(keras) C:\repo\keras\mgim>pytest
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: -n
  inifile: C:\repo\keras\pytest.ini
  rootdir: C:\repo\keras


(keras) C:\repo\keras\mgim>

알아보니 아래의 링크를 발견 하였다.
https://github.com/nipy/nipype/issues/2677#issuecomment-412087164

해결 법으로는 pytest-xdist 라는 파이썬 패키지를 설치하니 에러가 발생하지 않는다.

pip install pytest-xdist

댓글

이 블로그의 인기 게시물

고려대학교 야간대학원 중간 후기

포켓몬 고 17셀 확인 포고맵 사용 방법

HTTP 오류 500.19 - Internal Server Error 에러 처리법