You might encounter the following error in Mac:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/izeye/anaconda/lib/python3.5/site-packages/setuptools-18.5-py3.5.egg'
Just install setuptools as follows:
curl https://bootstrap.pypa.io/ez_setup.py -o - | python
Reference:
https://pypi.python.org/pypi/setuptools#unix-including-mac-os-x-curl
Thursday, February 25, 2016
tensorflow-0.7.1-cp27-none-any.whl is not a supported wheel on this platform.
When you try to install TensorFlow, you might get the following error:
$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp27-none-any.whl
tensorflow-0.7.1-cp27-none-any.whl is not a supported wheel on this platform.
$
Check your pip version as follows:
$ pip --version
pip 8.0.3 from /Users/izeye/anaconda/lib/python3.5/site-packages (python 3.5)
$
$ pip2.7 --version
pip 8.0.3 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)
$
And use an appropriate version as follows:
sudo pip2.7 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp27-none-any.whl
Reference:
https://github.com/tensorflow/tensorflow/issues/1252
$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp27-none-any.whl
tensorflow-0.7.1-cp27-none-any.whl is not a supported wheel on this platform.
$
Check your pip version as follows:
$ pip --version
pip 8.0.3 from /Users/izeye/anaconda/lib/python3.5/site-packages (python 3.5)
$
$ pip2.7 --version
pip 8.0.3 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)
$
And use an appropriate version as follows:
sudo pip2.7 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp27-none-any.whl
Reference:
https://github.com/tensorflow/tensorflow/issues/1252
Monday, February 22, 2016
How to show unannotated tags in Git
To show unannotated tags in Git, use the following command:
git describe --tags
git describe --tags
Sunday, February 21, 2016
How to ignore iconv error
To ignore iconv error, you can use `//ignore` with encoding as follows:
iconv -f cp949 -t utf-8//ignore keyword.txt.cp949 > keyword.txt
Reference:
http://stackoverflow.com/questions/9375909/iconv-utf-8-ignore-still-produces-illegal-character-error
iconv -f cp949 -t utf-8//ignore keyword.txt.cp949 > keyword.txt
Reference:
http://stackoverflow.com/questions/9375909/iconv-utf-8-ignore-still-produces-illegal-character-error
How to exclude a module in compile project dependency in Gradle
To exclude a module in compile project dependency in Gradle, add the following configuration:
configurations.compile.exclude module: "spring-data-elasticsearch"
Reference:
https://discuss.gradle.org/t/excluding-dependencies-from-dependent-projects/4506
configurations.compile.exclude module: "spring-data-elasticsearch"
Reference:
https://discuss.gradle.org/t/excluding-dependencies-from-dependent-projects/4506
How to print standard output of `test` in Gradle
To print standard output in Gradle, add the following configuration:
test {
testLogging {
showStandardStreams = true
}
}
Reference:
http://mrhaki.blogspot.jp/2014/10/gradle-goodness-show-standard-out-or.html
test {
testLogging {
showStandardStreams = true
}
}
Reference:
http://mrhaki.blogspot.jp/2014/10/gradle-goodness-show-standard-out-or.html
Sunday, February 14, 2016
Error: $resource:badcfg
Error: $resource:badcfg
Response does not match configured parameter
Error in resource configuration for action `get`. Expected response to contain an object but got an array (Request: GET /api/eventSources)
To fix this, use `query() instead of `get()` of `$resource`.
Reference:
https://docs.angularjs.org/error/$resource/badcfg?p0=get&p1=object&p2=array&p3=GET&p4=%2Fapi%2FeventSources
Response does not match configured parameter
Error in resource configuration for action `get`. Expected response to contain an object but got an array (Request: GET /api/eventSources)
To fix this, use `query() instead of `get()` of `$resource`.
Reference:
https://docs.angularjs.org/error/$resource/badcfg?p0=get&p1=object&p2=array&p3=GET&p4=%2Fapi%2FeventSources
Subscribe to:
Posts (Atom)