1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

YOLOXのインストール時エラーの対処(ERROR: Command errored out with exit status 1: /opt/conda/bin/python3.7 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = ')

Posted at

エラーの内容

YOLOXのインストールで次のエラーが出た

ERROR: Command errored out with exit status 1: /opt/conda/bin/python3.7 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/sagemaker-user/YOLOX/setup.py'"'"'; __file__='"'"'/home/sagemaker-user/YOLOX/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

原因

Pythonのバージョンによるものだと思われます

解決方法

Python3.6に切り替えましょう

バージョンの切り替え

Windows

Windows版のPython3.3からデフォルトでインストールされるPythonランチャーで簡単に切り替えられます

実行例
py -3.6 xxx.py

参考:Pythonの複数バージョンの扱い方(Windowsの場合)

Linux

pyenvがおすすめです
参考:pyenv | Github

(ついでに) YOLOX-sで推論してみる

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?