web-dev-qa-db-ja.com

pip installで「コマンドが終了ステータス1でエラーが発生しました」を修正する方法

以下に示すように、pip installを使用してpytypeをインストールするときに問題が発生します。

OS:CentOS 7

Python:Python3.6

ピップ:20.0.2

$ pip3 install pytype
Collecting pytype
  Using cached pytype-2020.2.20.tar.gz (1.1 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/aeu1/venv/bin/python3 /home/aeu1/venv/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp34nr30o0
       cwd: /tmp/pip-install-z9y24cb4/pytype
  Complete output (7 lines):
  running Egg_info
  writing pytype.Egg-info/PKG-INFO
  writing dependency_links to pytype.Egg-info/dependency_links.txt
  writing entry points to pytype.Egg-info/entry_points.txt
  writing requirements to pytype.Egg-info/requires.txt
  writing top-level names to pytype.Egg-info/top_level.txt
  error: package directory 'find:' does not exist
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/aeu1/venv/bin/python3 /home/aeu1/venv/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp34nr30o0 Check the logs for full command output.

助けてくれてありがとう!

1

そのパッケージディレクトリfind: から来た setup.cfg;実際にはパッケージディレクトリではなく、インストールするサブディレクトリのリストを見つけるためのsetuptoolsの指示です。

Python 2.7および3.5のパッケージを正常にインストールしました。したがって、pipsetuptoolsをアップグレードすることをお勧めします

pip install -U pip setuptools

次にpip install pytype

1
phd