简体   繁体   English

尝试在 Anaconda 3 虚拟 python 环境中安装 tensorflow 1.12.0

[英]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.尝试在 Windows 10 计算机上的虚拟环境( Anaconda 3Python 3.6 )上安装 tensorflow。

After installing Anaconda, I go to the Anaconda prompt and key in the Following:安装 Anaconda 后,我转到 Anaconda 提示符并键入以下内容:

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:之后,我在python shell 中输入这些:

import tensorflow as tf

I get the following error message:我收到以下错误消息:

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.导入错误:DLL 加载失败:动态链接库 (DLL) 初始化例程失败。 Failed to load the native TensorFlow runtime.无法加载本机 TensorFlow 运行时。

Any assistance would be appreciated任何援助将不胜感激

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

Try theses lines in anaconda prompt在 anaconda 提示符下尝试这些行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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