TensorFlow 2 packages are available. tensorflow —Latest stable release with CPU and (Ubuntu and Windows). tf-nightly —Preview build (unstable).
![]()
Ubuntu sudo apt update sudo apt install python3-dev python3-pip sudo pip3 install -U virtualenv # system-wide install mac OSInstall using the package manager: /usr/bin/ruby -e '$(curl -fsSL export PATH='/usr/local/bin:/usr/local/sbin:$PATH' brew update brew install python # Python 3 sudo pip3 install -U virtualenv # system-wide install WindowsInstall the Microsoft Visual C Redistributable for Visual Studio 2015, 2017,and 2019. Starting with the TensorFlow 2.1.0 version, the msvcp1401.dllfile is required from this package (which may not be provided from older redistributable packages).The redistributable comes with Visual Studio 2019 but can be installed separately:. Go to the,. Scroll down the page to the Visual Studio 2015, 2017 and 2019 section. Download and install the Microsoft Visual C Redistributable for Visual Studio 2015, 2017 and 2019 for your platform.Make sure on Windows.Install the 64-bit (select pip as an optional feature). Pip3 install -U pip virtualenv Raspberry PiRequirements for the operating system: sudo apt update sudo apt install python3-dev python3-pip sudo apt install libatlas-base-dev # required for numpy sudo pip3 install -U virtualenv # system-wide install Other curl -o get-pip.py python get-pip.py sudo pip3 install -U virtualenv # system-wide install Caution: Upgrading the system pip can cause.If not in a virtual environment, use python3 -m pip forthe commands below.
Sep 15, 2015 Install Python 3.5 using the official Windows installer Get a shell python -m ensurepip (because the installer didn't install pip for me for some reason) python -m pip install virtualenv (gets me version 13.1.2) python -m virtualenv env.
This ensures that you upgrade and use thePython pip instead of the system pip.2. Create a virtual environment (recommended)Python virtual environments are used to isolate package installation from the system.
Ubuntu / mac OSCreate a new virtual environment by choosing a Python interpreter and making a./venv directory to hold it:virtualenv -system-site-packages -p python3./venvActivate the virtual environment using a shell-specific command:source./venv/bin/activate # sh, bash, ksh, or zshWhen virtualenv is active, your shell prompt is prefixed with (venv).Install packages within a virtual environment without affecting the host systemsetup. Start by upgrading pip:pip install -upgrade pip pip list # show packages installed within the virtual environmentAnd to exit virtualenv later:deactivate # don't exit until you're done using TensorFlow WindowsCreate a new virtual environment by choosing a Python interpreter and making a.venv directory to hold it:virtualenv -system-site-packages -p python3./venvActivate the virtual environment.venvScriptsactivateInstall packages within a virtual environment without affecting the host systemsetup. Virtualenv install pip install -upgrade tensorflowVerify the install: python -c 'import tensorflow as tf;print(tf.reducesum(tf.random.normal(1000, 1000)))' System install pip3 install -user -upgrade tensorflow # install in $HOMEVerify the install: python3 -c 'import tensorflow as tf; print(tf.reducesum(tf.random.normal(1000, 1000)))' Success: TensorFlow is now installed. Read the to get started. Package locationA few installation mechanisms require the URL of the TensorFlow Python package.The value you specify depends on your Python version.VersionURLLinuxPython 2.7 GPU support2.7 CPU-only3.5 GPU support3.5 CPU-only3.6 GPU support3.6 CPU-only3.7 GPU support3.7 CPU-only(CPU-only)Python 2.73.53.63.73.5 GPU support3.5 CPU-only3.6 GPU support3.6 CPU-only3.7 GPU support3.7 CPU-onlyPI (CPU-only)Python 3, Pi0 or Pi13, Pi2 or Pi3as otherwise noted, the content of this page is licensed under the, and code samples are licensed under the. For details, see the. Java is a registered trademark of Oracle and/or its affiliates.Last updated 2020-02-24.
![]() ![]()
Stay connected. Support.
Basically, that is not a programming question (I feel it might as well fit well into or you please provide a tad more information?What OS are you running?
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |