tensorflow installation holes

update date: Mar. 23. 2020.

# ---------------------------- Permission denied ----------------------------------
>python3 install --upgrade --ignore-installed tensorflow==2.0.0

<<<error:
    Could not install packages due to an EnvironmentError: [Errno 13] Permission denied

# ---------------------------- Failed to load the native Tensorflow runtime ------------
>python -m pip install --upgrade --ignore-installed tensorflow==2.0.0 --user

<<<error:
    Failed to load the native TensorFlow runtime.
    
>python3 install tensorflow==1.15 # without GPU

#Note tensorflow2 installation is with GPU configuration by default.

>python3 install tensorflow==2.0.0

# install tensorflow=2.1.0 come across "Failed to load the native TensorFlow runtime"
# solution: 
# https://github.com/tensorflow/tensorflow/releases/tag/v2.1.0
# Here is the Microsoft Visual C++ Redistributable for Visual Studio 2015, 
# 2017 and 2019 link from that document. Remember, text in screenshots can't be clicked, 
# copied, translated, read by screen readers, etc.!

# -------------------------- h5py ----------------------------------------------
Setting it to 2 or higher will suppress the warning messages totally.

solution:
    not conda:
        # update hy5py (not validate yet)
        pip uninstall h5py
        pip install h5py
        
    conda:
        # for now, it seems no available workaround if you use conda environment.
        conda uninstall h5py
        conda uninstall hdf5
        
So choose python commands if you come across the same problem. Good Luck.

# ------------------------ CUDA ------------------------------------------
Could not retrieve CUDA device attribute (81: UNKNOWN ERROR (1)
                                          
solution:
	pip3 install tensorflow-cpu==2.1.0
                                          

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章