Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Cannot `pip install` nightly

未关闭
#1,079 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@Xhark 已经在做这个了。

开始于 2023年8月27日。

评估

这个 Issue 还没有评估数据。

描述

bug

Describe the bug
Cannot pip install nightly version of this package

System information

TensorFlow version (installed from source or binary): none

TensorFlow Model Optimization version (installed from source or binary): current master

Python version: 3.10

Describe the expected behavior
tfmot is installed
Describe the current behavior

Building wheels for collected packages: tf-model-optimization-nightly
  Building wheel for tf-model-optimization-nightly (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      /<path-to-virtual-env>/lib/python3.10/site-packages/setuptools/dist.py:509: InformationOnly: Normalizing '0.7.5-dev' to '0.7.5.dev0'
        self.metadata.version = self._normalize_version(
      running bdist_wheel
      running build
      running build_py
      creating build
      error: could not create 'build': File exists
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tf-model-optimization-nightly
  Running setup.py clean for tf-model-optimization-nightly
Failed to build tf-model-optimization-nightly
ERROR: Could not build wheels for tf-model-optimization-nightly, which is required to install pyproject.toml-based projects

Code to reproduce the issue
pip install tf-model-optimization-nightly@git+https://github.com/tensorflow/model-optimization@master

Additional context
I have a fix in a fork of this project and want to install it via pip.

主要语言
Python
星标
1.6k
派生
349
平均合并
3 天 2 小时
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tensorflow/model-optimization 的其他 Issue

查看 tensorflow/model-optimization 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。