- Environment :: GPU
- Environment :: GPU :: NVIDIA CUDA
- Environment :: GPU :: NVIDIA CUDA :: 11.2
- Intended Audience :: Education
- Topic :: Scientific/Engineering :: Artificial Intelligence
When you know about this project and you want to new install tf-gpu to support your project or you get trouble as ModuleNotFoundError: No module named "tf-gpu" or ImportError: cannot import name "tf-gpu" in your project, let follow this tutorial to install tf-gpu
In Windows (CMD):
py -m pip --version
In Unix/macOS:
python3 -m pip --version
Ensure pip, setuptools, and wheel are up to date:
In Windows (CMD):
py -m pip install --upgrade pip setuptools wheel
In Unix/macOS:
python3 -m pip install --upgrade pip setuptools wheel
Optional - If you want to install
In Windows (CMD):
- Install virtualenv - if you installed it, please ignore
py -m pip install --user virtualenv
- Create a virtual environment
py -m venv test_tf-gpu_env
- Active the virtual environment
test_tf-gpu_env\Scripts\active
In Unix/macOS:
- Install virtualenv - if you installed it, please ignore
pip3 install virtualenv
- Create a virtual environment
python3 -m venv test_tf-gpu_env
- Active the virtual environment
source test_tf-gpu_env/bin/active
To install tf-gpu on Windows(CMD):
py -m pip install tf-gpu
To install tf-gpu on Unix/macOs:
pip install tf-gpu
Example:
pip install tf-gpu==1.15.5.2204
Please see the version list below table:
Version | Released date | Command |
---|---|---|
tf-gpu 2.9.1 | 2022-05-26T08:06:54 | Windows: Unix/macOs:
|
tf-gpu 2.9.0 | 2022-05-26T12:00:55 | Windows: Unix/macOs:
|
tf-gpu 2.8.2 | 2022-05-26T03:34:14 | Windows: Unix/macOs:
|
tf-gpu 2.8.1 | 2022-05-25T08:55:42 | Windows: Unix/macOs:
|
tf-gpu 2.8.0 | 2022-05-25T13:44:48 | Windows: Unix/macOs:
|
tf-gpu 2.7.3 | 2022-06-05T07:28:04 | Windows: Unix/macOs:
|
tf-gpu 2.6.5 | 2022-06-05T01:33:41 | Windows: Unix/macOs:
|
tf-gpu 1.15.5.2206 | 2022-08-07T06:37:19 | Windows: Unix/macOs:
|
tf-gpu 1.15.5.2205 | 2022-06-04T12:48:52 | Windows: Unix/macOs:
|
tf-gpu 1.15.5.2204 | 2022-05-25T02:16:04 | Windows: Unix/macOs:
|
Download the distribution file from tf_gpu-2.9.1-cp310-cp310-manylinux2014_x86_64.whl or the specific tf-gpu version in the below list of distribution
After that, install by command:
On Windows(CMD):
py -m pip install <path_to_tf-gpu_downloaded_file>
On Unix/macOs:
pip install <path_to_tf-gpu_downloaded_file>
List distribution:
Project link: