每当我尝试运行conda install tensorflow时我都会收到以下错误 [英] I get the following error whenever I try to run conda install tensorflow

查看:379
本文介绍了每当我尝试运行conda install tensorflow时我都会收到以下错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是错误:

解决环境:失败

UnsatisfiableError:发现以下规范存在冲突: -numba-> numpy [version ='> = 1.14,< 1.15.0a0'] -张量流 使用"conda信息"查看每个软件包的依赖关系.

UnsatisfiableError: The following specifications were found to be in conflict: - numba -> numpy[version='>=1.14,<1.15.0a0'] - tensorflow Use "conda info " to see the dependencies for each package.

推荐答案

如果要使用,请先创建一个conda环境

First create a conda environment if you would like using

conda create -n my_env python=3.6

"my_env"是我的环境的名称

Here "my_env" is the name of my environment

然后使用

source activate my_env #(for mac)
conda activate my_env #(for windows)

一旦环境处于活动状态.您现在可以按照以下步骤安装所需的软件包:我向您展示了我在虚拟环境上使用的软件包,这将解决您的大多数依赖项

Once the Environment is active. you can now install the packages you need as follows:I am showing you the packages which i work upon on virtual environment and this will take care of most of your dependencies

conda update conda
conda upgrade conda
conda upgrade anaconda

conda update numpy    
conda install tensorflow

希望这可以解决您的问题,或者尝试使用pip升级numpy:

Hope this will solve your problem or else try to upgrade numpy using pip:

pip install --upgrade numpy

这篇关于每当我尝试运行conda install tensorflow时我都会收到以下错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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