What Do I Do If I Failed to Install the Caffe Environment in CLI Mode?
Symptom
When the Caffe environment is installed in CLI mode, information similar to "/usr/bin/python3.7: can't open file '/usr/lib/python3.7/py_compile.py': [Error 2] No such file or directory" is displayed and the Caffe environment fails to be installed.
Possible Cause
Python 3.7.5 must be installed in advance before AMCT installation. However, when Caffe 1.0 is installed using the CLI, the system searches for py_compile.py. This file exists only in Python 3.6 or 2.7, but not in Python 3.7.5.
Solution
When installing Python 3.7.5, add the following soft link or copy the py_compile.py file in /usr/local/python3.7.5/lib/python3.7 to /usr/lib/python3.7, and then install the Caffe environment in CLI mode.
sudo ln -s /usr/local/python3.7.5/lib/python3.7 /usr/lib/python3.7
If a message indicating that the link exists is displayed during the command execution, run the following command to delete the existing link and run the preceding command again:
sudo rm -rf /usr/lib/python3.7