Could not find a version that satisfies the requirement tensorflow

前端 未结 18 1286
深忆病人
深忆病人 2020-11-28 04:11

I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCha

相关标签:
18条回答
  • 2020-11-28 04:35

    I am using python 3.6.8, on ubunu 18.04, for me the solution was to just upgrade pip

    pip install --upgrade pip
    pip install tensorflow==2.1.0
    
    0 讨论(0)
  • 2020-11-28 04:35

    Tensorflow seems to need special versions of tools and libs. Pip only takes care of python version.

    To handle this in a professional way (means it save tremendos time for me and others) you have to set a special environment for each software like this.

    An advanced tool for this is conda.

    I installed Tensorflow with this commands:

    sudo apt install python3

    sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1

    sudo apt install python3-pip

    sudo apt-get install curl

    curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > Miniconda3-latest-Linux-x86_64.sh

    bash Miniconda3-latest-Linux-x86_64.sh

    yes

    source ~/.bashrc

    • installs its own phyton etc

    nano .bashrc

    • maybe insert here your proxies etc.

    conda create --name your_name python=3

    conda activate your_name

    conda install -c conda-forge tensorflow

    • check everything went well

    python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"

    PS: some commands that may be helpful conda search tensorflow

    https://www.tensorflow.org/install/pip

    uses virtualenv. Conda is more capable. Miniconda ist sufficient; the full conda is not necessary

    0 讨论(0)
  • 2020-11-28 04:36

    Tensorflow 2.2.0 supports Python3.8

    First, make sure to install Python 3.8 64bit. For some reason, the official site defaults to 32bit. Verify this using python -VV (two capital V, not W). Then continue as usual:

    python -m pip install --upgrade pip
    python -m pip install wheel  # not necessary
    python -m pip install tensorflow
    

    As usual, make sure you have CUDA 10.1 and CuDNN installed.

    0 讨论(0)
  • 2020-11-28 04:36

    1.Go to https://www.tensorflow.org/install/pip website and look if the version you are using support the Tensorflow. some latest version does not support Tesnsorflow. until Tensorflow releases its latest version for that Python version.

    1. you must have 64 bit python installed

    2. have latest version of pip installed
      pip install --upgrade pip

    0 讨论(0)
  • 2020-11-28 04:38

    Tensorflow isn't available for python 3.8 (as of Dec 4th 2019) according to their documentation page. You will have to downgrade to python 3.7.

    0 讨论(0)
  • 2020-11-28 04:46

    if you are using anaconda, python 3.7 is installed by default, so you have to downgrade it to 3.6:

    conda install python=3.6

    then:

    pip install tensorflow

    it worked for me in Ubuntu.

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