安装Tensorflow时发生环境错误 [英] Environmental Error occurs while installing Tensorflow

查看:228
本文介绍了安装Tensorflow时发生环境错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装Tensorflow时,它说我丢失了一个文件,但我不知道如何修复它或获取该文件

When installing Tensorflow it said I was missing a file but i dont know how to fix it and or get that file

我尝试重新下载python,但仍然缺少该文件

I have tried re-downloading python but I am still missing the file

pip install Tensorflow

我要完成安装. 这是错误消息:

What I want is for the installation to complete. Here is the error message:

C:\ Users \ MYUSER \ AppData \ Local \ Packages \ PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0 \ LocalCache \ local-packages \ Python37 \ site-packages \ tensorflow_estimator \ python \ estimator \ canned \ linear_optimizer \ python \ utils \ __ pycache__ \ sharded_mutable_dense_hashtable.cpython-37.pyc'

C:\Users\MYUSER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_estimator\python\estimator\canned\linear_optimizer\python\utils\__pycache__\sharded_mutable_dense_hashtable.cpython-37.pyc'

推荐答案

在安装Tensorflow时,它说我丢失了一个文件,但是我不知道如何修复它或获取该文件.

When installing Tensorflow it said I was missing a file but i don't know how to fix it and or get that file.

使用anaconda创建环境.

Create a environment using anaconda.

可以通过执行以下命令来解决此问题:

This Problem can be solved by execute the Below commands:

conda update anaconda
conda create -n tensorflow pip python=3.5
conda install --force html5lib
activate tensorflow
pip install --ignore-installed --upgrade tensorflow
conda install -c conda-forge tensorflow
conda install jupyter

请参阅 https://www.tensorflow.org/tutorials

最后,您可以安装Tensorflow.

Finally you can able to install Tensorflow.

希望它能对您有所帮助.

I hope it will help you.

这篇关于安装Tensorflow时发生环境错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆