I started reading O'Reilly's "Deep Learning from scratch". In this book, we will proceed with python3 system, so set it with pyenv.
$ pyenv install 3.5.1
Downloading Python-3.5.1.tar.xz...
-> https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
Installing Python-3.5.1...
^C
BUILD FAILED (OS X 10.11.6 using python-build 1.0.6-13-g4d96271)
Inspect or clean up the working tree at /var/folders/rm/czd685gs0zsdx1z1yb3p446m0000gn/T/python-build.20170109121924.16365
Results logged to /var/folders/rm/czd685gs0zsdx1z1yb3p446m0000gn/T/python-build.20170109121924.16365.log
Last 10 log lines:
checking for execv... yes
checking for faccessat... yes
checking for fchmod... yes
checking for fchmodat... yes
checking for fchown... yes
checking for fchownat... yes
checking for fexecve... no
checking for fdopendir... yes
checking for fork... yes
checking for fpathconf... make: *** No targets specified and no makefile found. Stop.
Someone who had the same problem (in another version) on the official pyenv issue. https://github.com/yyuu/pyenv/issues/423 The developer Yamashita commented properly.
Xcode isn't working properly ... http://qiita.com/tanakahisateru/items/c0eaa25dbde669b282cb For the time being, I decided to try a brew doctor.
$ brew doctor
.
.
.
Warning: Your Xcode (8.1) is outdated.
Please update to Xcode 8.2 (or delete it).
Xcode can be updated from the App Store.
.
.
.
I was angry that the version of Xcode was old. It took a long time to install, but I updated it for the time being. https://itunes.apple.com/jp/app/xcode/id497799835?mt=12
So, I tried `` `pyenv install 3.5.1``` again, but with the same error.
http://www.python-izm.com/contents/basis/pyenv.shtml
When looking at
$ brew install readline xz
I didn't remember hitting it, and when I tried it, the error changed.
/private/var/folders/rm/czd685gs0zsdx1z1yb3p446m0000gn/T/python-build.20170111003433.38822/Python-3.5.1/python.exe: No module named ensurepip.__main__; 'ensurepip' is a package and cannot be directly executed
No, I feel like I'm not bad ... Speaking of which, I thought it would take a long time to install for the first time, so I felt like I did `` `^ C```. What's wrong with that? Reset once! Yeah!
$ rm -rf /var/folders/rm/czd685gs0zsdx1z1yb3p446m0000gn/T/python-build.*
Then hit `` `pyenv install 3.5.1``` again to follow the log generated by tail properly.
... successful! !! !!
$ pyenv install 3.5.1 Downloading Python-3.5.1.tar.xz... -> https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz Installing Python-3.5.1... Installed Python-3.5.1 to /Users/username/.pyenv/versions/3.5.1
$ tail -f -n 100 /var/folders/rm/czd685gs0zsdx1z1yb3p446m0000gn/T/python-build.20170115134121.24695.log
After all, I did not know the root cause, but from the beginning regardless of Xcode
#### **`$ rm -rf /var/folders/rm/czd685gs0zsdx1z1yb3p446m0000gn/T/python-build.*`**
```*
It was a story that it might have been solved in one shot.
Recommended Posts