How do I install the most recent Tensorflow (here: 2.2) on Windows when conda does not yet support it?

前端 未结 4 1789
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 02:01

I have conda 4.8.3 and Python 3.7.4 on Windows 8.1.

I have tf 2.0.0 installed in a conda environment. How do I upgrade to 2.2.x?

Or, how do I just install 2.2.

4条回答
  •  天涯浪人
    2020-12-17 02:28

    There are two methods

    1. Install into virtual environment with

    pip TensorFlow
    
    virtualenv --system-site-packages -p python3 ./venv
    

    then you need to activate your new environment

    pip install --upgrade pip
    
    pip list  # show packages installed within the virtual environment
    this command for quit 
    deactivate  # don't exit until you're done using TensorFlow
    we finish by installing tensor 
    
    pip install --upgrade tensorflow
    

    2. Install in your system

    python3 --version
    pip3 --version
    virtualenv --version
    

    Ubuntu

    sudo apt update
    
    sudo apt install python3-dev python3-pip
    
    sudo pip3 install -U virtualenv  # system-wide install
    

    then

    pip3 install --user --upgrade tensorflow  # install in $HOME
    

提交回复
热议问题