Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

setup_env.py triggers unwanted pip install, causing environment conflicts

オープン
#498 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
devops, tooling

調査の方向性

setup_env.py から始めて、main() と setup_gguf() を読み、次に python setup_env.py を実行してカスタム Python 仮想環境で動作を再現します。gguf-py のインストールに対して選択した処理を定義し、スクリプトが不要な無条件インストールを実行しなくなったことを確認するとともに、その依存関係を必要とするユーザー向けの明確な手段を維持します。

索引モデルが issue の本文から書いたものです。

説明

Bug Summary

The setup_env.py script breaks custom or virtual Python environments due to a forced pip installation. In the main() function, the very first step is to call setup_gguf(), which, in turn, runs:

sys.executable -m pip install 3rdparty/llama.cpp/gguf-py

This unconditional install step clashes with existing venv configurations, often causing dependency/version conflicts and making integration with user-managed Python environments difficult or unstable.

Steps to Reproduce

  1. Set up a Python virtual environment with desired/compatible package versions.
  2. Run python setup_env.py.
  3. Observe that the script performs its own install step, overriding or conflicting with the current environment state.

Expected Behavior

The script should respect the user's Python environment and avoid running recursive or unconditional pip installs. It should either:

  • Detect when dependencies are missing and prompt the user,
  • Allow the user to opt-in or skip the pip install, or
  • Provide clear documentation/instructions for manual installation.

Actual Behavior

  • The script forces an install of its dependencies, potentially breaking user setups and overwriting targeted package versions.

Additional Context

This behavior makes it hard to use the script in controlled environments (e.g., CI pipelines, docker, or custom venvs) and introduces risk for version incompatibility bugs.


Suggested Fix:

  • Make the install step optional, detectable by a command-line flag (e.g., --install-gguf)
  • Or, remove the call from main() and only document the install as a manual, one-time user step.
主要言語
C++
スター
40.3k
フォーク
3.7k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/BitNet のほかの issue

microsoft/BitNet の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。