Force Anaconda to install tensorflow 1.14
ML System Design practice on Codemia
Design recommenders, ranking systems and training pipelines the way ML interviews actually ask for them, with worked solutions.
Introduction
Installing TensorFlow 1.14 with Anaconda requires creating an isolated environment with Python 3.7, the last Python version fully supported by TF 1.14. The standard conda install may not find this version in the default channels, so you may need to use pip inside the conda environment or specify the conda-forge channel. TF 1.14 also requires CUDA 10.0 and cuDNN 7.4 for GPU support.
Create a Dedicated Conda Environment
TensorFlow 1.14 is compatible with Python 3.5, 3.6, and 3.7. Python 3.8+ is not supported.
Install TensorFlow 1.14
Method 1: pip (Recommended)
Method 2: conda
If conda cannot resolve the version, fall back to pip inside the conda environment.
GPU Requirements (CUDA/cuDNN)
TensorFlow 1.14 requires specific CUDA and cuDNN versions:
| Component | Required Version |
| CUDA Toolkit | 10.0 |
| cuDNN | 7.4+ (7.6 recommended) |
| NVIDIA Driver | 410.x+ |
| Python | 3.5, 3.6, or 3.7 |
Verify GPU Detection
Handling Dependency Conflicts
Common dependency issues:
Freezing the Environment
Running a Quick Test
Migrating to TF2 (Future Path)
TensorFlow 1.14 is no longer maintained. If you are locked into it for a legacy project, consider gradual migration:
Common Pitfalls
- Using Python 3.8+: TensorFlow 1.14 does not support Python 3.8 or later. Attempting to install it results in "no matching distribution found." Always use Python 3.7 or below.
- CUDA version mismatch: TF 1.14 requires CUDA 10.0 exactly. CUDA 10.1, 10.2, or 11.x are not compatible and cause
ImportError: libcublas.so.10.0: cannot open shared object file. Install CUDA 10.0 specifically. - Mixing pip and conda installs: Installing TensorFlow with pip and CUDA with conda can cause library path conflicts. Either use pip for everything or conda for everything within the same environment.
- Deprecated numpy functions: Newer NumPy versions (1.24+) removed functions that TF 1.14 uses internally (like
np.bool,np.int). Pin NumPy to<1.17to avoidAttributeErrorat import time. - Not isolating the environment: Installing TF 1.14 in your base conda environment can break other projects. Always create a dedicated environment with
conda create -n tf114 python=3.7.
Summary
- Create an isolated conda environment with Python 3.7:
conda create -n tf114 python=3.7 - Install with
pip install tensorflow==1.14.0(ortensorflow-gpu==1.14.0for GPU) - GPU support requires CUDA 10.0 and cuDNN 7.4+ — no other CUDA versions work
- Pin NumPy to
<1.17and h5py to<3.0to avoid dependency conflicts - Verify with
tf.test.is_gpu_available()for GPU detection - TF 1.14 is end-of-life — plan migration to TF2 using the
tensorflow.compat.v1module
Related reading
- Force symmetry for a TensorFlow conv2d kernel
- freeze some variables/scopes in tensorflow stop_gradient vs passing variables to minimize
- Freezing graph to pb in Tensorflow2
- Freezing graph to pb in Tensorflow2
- Forecast future values with LSTM in Python
- Format / Suppress Scientific Notation from Pandas Aggregation Results
- Force "git push" to overwrite remote files
- Force git push to overwrite remote files
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseTrack what you have practised
A free account saves your progress, solutions and study plan across every problem on Codemia.
ML System Design practice on Codemia
Design recommenders, ranking systems and training pipelines the way ML interviews actually ask for them, with worked solutions.