[PYTHON] Summary of error handling methods when installing TensorFlow (2)

background

I had a hard time trying to put TensorFlow on the GPU server in the laboratory.

Error Case 1 PyUnicodeUCS4_FromStringAndSize

Cause

Error because the internal representation of Python's Unicode string is ucs2

solution

Recompile Python to ucs4.

$ ./configure --enable-unicode=ucs4
$ make && make altinstall

Error Case 2 TypeError: init () got an unexpected keyword argument'syntax'

Cause

The version of protobuf is wrong

solution

$ pip uninstall protobuf
$ pip uninstall tensorflow
$ pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

Reference material

Recommended Posts

Summary of error handling methods when installing TensorFlow (2)
Error handling when installing mecab-python
Summary of Tensorflow / Keras
Summary of Pandas methods used when extracting data [Python]
polyfit error when installing matplotlib
[python] Error when installing library ramkan
Error divided by 0 Handling of ZeroDivisionError
Precautions when installing tensorflow with anaconda
Summary of various operations in Tensorflow
Summary of methods often used in pandas
Error resolution when installing numba on macOS
Summary of methods for automatically determining thresholds
pix2 pix tensorflow2 Record of trial and error
Summary of snippets when developing with Go
Summary of stumbling blocks in installing CaboCha
Summary of built-in methods in Python list
Error, warning when using TensorFlow on Mac
Error when installing a module with Python pip
[Python/Django] Summary of frequently used commands (2) <Installing packages>
Selenium webdriver Summary of frequently used operation methods
Mainframe error handling
Python Error Handling
SikuliX error handling
Error installing pandas_datareader
django.db.migrations.exceptions.InconsistentMigrationHistory error handling
[Fan control] Initial setting of fancontorl and error handling
[Python] Type Error: Summary of error causes and remedies for'None Type'
Summary of things that were convenient when using pandas
(Vagrant) Handling of Permission denied (publickey, gssapi-keyex, gssapi-with-mic) error that occurs when connecting with SSH