I get the following error whenever I try to run conda install tensorflow

前端 未结 2 1164
暗喜
暗喜 2021-01-27 13:35

This is the error :

Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict: - numba -> numpy[version=\'>=1.

2条回答
  •  萌比男神i
    2021-01-27 13:51

    First create a conda environment if you would like using

    conda create -n my_env python=3.6
    

    Here "my_env" is the name of my environment

    Then activate your environment using

    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
    

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

    pip install --upgrade numpy
    

提交回复
热议问题