简体   繁体   中英

Trying to install tensorflow 1.12.0 in an Anaconda 3 virtual python environment

Trying to install tensorflow on a virtual environment ( Anaconda 3 and Python 3.6 ) on a Windows 10 computer.

After installing Anaconda, I go to the Anaconda prompt and key in the Following:

conda create -n tensorflow_cpu pip python=3.6
activate tensorflow_cpu
pip install --ignore-installed --upgrade tensorflow

After that, I enter these in python shell:

import tensorflow as tf

I get the following error message:

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed. Failed to load the native TensorFlow runtime.

Any assistance would be appreciated

conda create -n tensorflow==1.12.0
conda activate tensorflow==1.12.0

Try theses lines in anaconda prompt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM