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

前端 未结 2 1136
暗喜
暗喜 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条回答
  • 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
    
    0 讨论(0)
  • 2021-01-27 14:01

    You have to run the conda info tensorflow and conda info numba to see each dependencies for each package and then you have to install those package like conda install package=version to fix the problem.

    0 讨论(0)
提交回复
热议问题