python - 如何使用 pip install 修复 'Command errored out with exit status 1'

标签 python pip centos7 pytype

我在使用 pip install 安装 pytype 时遇到了一些问题如图所示:
操作系统:CentOS 7
Python:Python 3.6
pip 数: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.

最佳答案

那个包目录find:来自 setup.cfg ;它实际上不是包目录,而是 setuptools 的指令查找要安装的子目录列表。

我成功安装了 Python 2.7 和 3.5 的包。所以我的建议是升级pipsetuptools

pip install -U pip setuptools

然后重试 pip install pytype .

关于python - 如何使用 pip install 修复 'Command errored out with exit status 1',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60709574/

相关文章:

python-3.x - Mac OS Catalina 全新安装时出现 pip3 和 Pipenv 问题

python - 即使已经通过pip安装了pyflake,Emacs elpy Flymake也找不到pyflakes

linux - 将 python 3 安装到 venv 中?

centos - 如何在 CentOS 上禁用 Nouveau 内核驱动程序

phpmyadmin - 找不到/etc/httpd/conf.d/phpMyAdmin.conf 文件

python - sys.stdin.readlines() 挂起 Python 脚本

python - 创建一个新的数据框,将每行的 k 个副本附加到自身

python - 安装 OpenCV 失败,因为它找不到 "skbuild"

python - nosetests --cover-html 不生成 html 文档

python - 如何在 OSX 上安装 python-gtk2、python-webkit 和 python-jswebkit