ERROR: Cannot uninstall 'wrapt'. when installing tensorflow-gpu~=1.14

后端 未结 7 1999
我寻月下人不归
我寻月下人不归 2021-01-18 11:03

I am trying to install the following version of TensorFlow-GPU because the author of gitrepo has suggested it here.

[jalal@goku examples]$ pip install tenso         


        
相关标签:
7条回答
  • 2021-01-18 11:25

    Updating Conda and trying to install Tensorflow again worked for me:

    conda update --all
    pip install tensorflow
    
    0 讨论(0)
  • 2021-01-18 11:27

    Try to use the following commands:

    pip install wrapt --upgrade --ignore-installed
    pip install tensorflow-gpu
    

    Good luck.

    0 讨论(0)
  • 2021-01-18 11:28

    Find that cache .whl file in your like /home/grad3/jalal/.cache/pip/wheels/... Remove it.

    Then re-do as the normal installation procedure. It works for me.

    0 讨论(0)
  • 2021-01-18 11:32

    First, do the following:

    $ conda update wrapt
    

    And then,

    [jalal@goku examples]$ pip install tensorflow-gpu~=1.14
    Collecting tensorflow-gpu~=1.14
      Using cached https://files.pythonhosted.org/packages/a5/ad/933140e74973fb917a194ab814785e7c23680ca5dee6d663a509fe9579b6/tensorflow_gpu-1.15.0-cp36-cp36m-manylinux2010_x86_64.whl
    Requirement already satisfied: numpy<2.0,>=1.16.0 in /home/grad3/jalal/.local/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (1.17.4)
    Requirement already satisfied: google-pasta>=0.1.6 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (0.1.8)
    Requirement already satisfied: wrapt>=1.11.1 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (1.11.2)
    Requirement already satisfied: absl-py>=0.7.0 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (0.8.1)
    Collecting keras-applications>=1.0.8
      Using cached https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl
    Requirement already satisfied: six>=1.10.0 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (1.13.0)
    Requirement already satisfied: keras-preprocessing>=1.0.5 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (1.0.5)
    Requirement already satisfied: opt-einsum>=2.3.2 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (3.1.0)
    Requirement already satisfied: protobuf>=3.6.1 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (3.11.0)
    Requirement already satisfied: tensorboard<1.16.0,>=1.15.0 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (1.15.0)
    Requirement already satisfied: wheel>=0.26 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (0.33.6)
    Requirement already satisfied: termcolor>=1.1.0 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (1.1.0)
    Collecting tensorflow-estimator==1.15.1
      Using cached https://files.pythonhosted.org/packages/de/62/2ee9cd74c9fa2fa450877847ba560b260f5d0fb70ee0595203082dafcc9d/tensorflow_estimator-1.15.1-py2.py3-none-any.whl
    Processing /home/grad3/jalal/.cache/pip/wheels/5c/2e/7e/a1d4d4fcebe6c381f378ce7743a3ced3699feb89bcfbdadadd/gast-0.2.2-cp36-none-any.whl
    Requirement already satisfied: astor>=0.6.0 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (0.8.0)
    Requirement already satisfied: grpcio>=1.8.6 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorflow-gpu~=1.14) (1.25.0)
    Requirement already satisfied: h5py in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from keras-applications>=1.0.8->tensorflow-gpu~=1.14) (2.7.1)
    Requirement already satisfied: setuptools in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from protobuf>=3.6.1->tensorflow-gpu~=1.14) (42.0.2.post20191201)
    Requirement already satisfied: werkzeug>=0.11.15 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorboard<1.16.0,>=1.15.0->tensorflow-gpu~=1.14) (0.16.0)
    Requirement already satisfied: markdown>=2.6.8 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from tensorboard<1.16.0,>=1.15.0->tensorflow-gpu~=1.14) (3.1.1)
    Installing collected packages: keras-applications, tensorflow-estimator, gast, tensorflow-gpu
      Found existing installation: Keras-Applications 1.0.6
        Uninstalling Keras-Applications-1.0.6:
          Successfully uninstalled Keras-Applications-1.0.6
      Found existing installation: gast 0.3.2
        Uninstalling gast-0.3.2:
          Successfully uninstalled gast-0.3.2
    Successfully installed gast-0.2.2 keras-applications-1.0.8 tensorflow-estimator-1.15.1 tensorflow-gpu-1.15.0
    
    0 讨论(0)
  • 2021-01-18 11:32

    Remove file wrapt-1.10.11.egg-info by command sudo rm /usr/lib/python3/dist-packages/wrapt-1.10.11.egg-info

    Then install tensorflow again

    0 讨论(0)
  • 2021-01-18 11:39

    You can try the followings in sequence:

    pip install -U --ignore-installed wrapt
    pip install tensorflow
    
    0 讨论(0)
提交回复
热议问题