קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מבנה יציב
התקן את הגרסה האחרונה של TensorFlow Probability:
pipinstall--upgradetensorflow-probability
הסתברות TensorFlow תלויה במהדורה יציבה לאחרונה של TensorFlow (חבילת pip tensorflow ). עיין בהערות המהדורה של TFP לפרטים על תלות בין TensorFlow ו- TensorFlow Probability.
כדי לאלץ התקנה ספציפית ל-Python 3, החלף את pip ב- pip3 בפקודות לעיל. לעזרה נוספת בהתקנה, הנחיות להתקנת דרישות מוקדמות ו(אופציונלי) הגדרת סביבות וירטואליות, עיין במדריך ההתקנה של TensorFlow .
בנייה לילית
יש גם בנייה לילית של TensorFlow Probability תחת חבילת ה-pip tfp-nightly , אשר תלויה באחד של tf-nightly ו- tf-nightly-gpu . בנייה לילית כוללת תכונות חדשות יותר, אך עשויות להיות פחות יציבות מהגרסאות המהדורות.
התקן ממקור
אתה יכול גם להתקין ממקור. זה דורש את מערכת הבנייה של Bazel . מומלץ מאוד להתקין את הבנייה הלילית של TensorFlow ( tf-nightly ) לפני שתנסה לבנות את TensorFlow Probability מהמקור.
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Install\n\nStable builds\n-------------\n\nInstall the latest version of TensorFlow Probability: \n\n```bash\npip install --upgrade tensorflow-probability\n```\n\nTensorFlow Probability depends on a recent stable release of\n[TensorFlow](https://www.tensorflow.org/install) (pip package `tensorflow`). See\nthe [TFP release notes](https://github.com/tensorflow/probability/releases) for\ndetails about dependencies between TensorFlow and TensorFlow Probability.\n| **Note:** Since TensorFlow is *not* included as a dependency of the TensorFlow Probability package (in `setup.py`), you must explicitly install the TensorFlow package (`tensorflow` or `tensorflow-gpu`). This allows us to maintain one package instead of separate packages for CPU and GPU-enabled TensorFlow.\n\nTo force a Python 3-specific install, replace `pip` with `pip3` in the above\ncommands. For additional installation help, guidance installing prerequisites,\nand (optionally) setting up virtual environments, see the [TensorFlow\ninstallation guide](https://www.tensorflow.org/install).\n\nNightly builds\n--------------\n\nThere are also nightly builds of TensorFlow Probability under the pip package\n`tfp-nightly`, which depend on one of `tf-nightly` and `tf-nightly-gpu`. Nightly\nbuilds include newer features, but may be less stable than the versioned\nreleases.\n\nInstall from source\n-------------------\n\nYou can also install from source. This requires the\n[Bazel](https://bazel.build/) build system. It is highly recommended\nthat you install the nightly build of TensorFlow (`tf-nightly`) before trying to\nbuild TensorFlow Probability from source. \n\n sudo apt-get install bazel git python-pip\n python -m pip install --upgrade --user tf-nightly\n git clone https://github.com/tensorflow/probability.git\n cd probability\n bazel build --copt=-O3 --copt=-march=native :pip_pkg\n PKGDIR=$(mktemp -d)\n ./bazel-bin/pip_pkg $PKGDIR\n python -m pip install --upgrade --user $PKGDIR/*.whl"]]