You might encounter the following error:
$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp34-none-linux_x86_64.whl
tensorflow-0.7.1-cp34-none-linux_x86_64.whl is not a supported wheel on this platform.
$
If you're using Python 3.5, use Python 3.4.
Monday, February 29, 2016
How to show GLIBC version
To show GLIBC version, use the following command:
ldd --version
Reference:
http://www.linuxquestions.org/questions/linux-software-2/how-to-check-glibc-version-263103/
ldd --version
Reference:
http://www.linuxquestions.org/questions/linux-software-2/how-to-check-glibc-version-263103/
How to use Virtualenv
Create Virtualenv as follows:
virtualenv -p python3 --system-site-packages ~/tensorflow
Activate Virtualenv as follows:
source ~/tensorflow/bin/activate
You can deactivate Virtualenv as follows:
deactivate
Reference:
https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#virtualenv-installation
virtualenv -p python3 --system-site-packages ~/tensorflow
Activate Virtualenv as follows:
source ~/tensorflow/bin/activate
You can deactivate Virtualenv as follows:
deactivate
Reference:
https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#virtualenv-installation
How to install Python 3 in CentOS 6.6
To install Python 3 in CentOS 6.6, use the following commands:
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
tar zxvf Python-3.5.1.tgz
./configure
make
sudo make install
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
tar zxvf Python-3.5.1.tgz
./configure
make
sudo make install
How to install Virtualenv in CentOS 6.6
To install Virtualenv in CentOS 6.6, use the following command:
sudo pip install virtualenv
sudo pip install virtualenv
How to install pip in CentOS 6.6
To install pip in CentOS 6.6, use the following command:
sudo yum install python-pip
sudo yum install python-pip
Thursday, February 25, 2016
FileNotFoundError: [Errno 2] No such file or directory: '/Users/izeye/anaconda/lib/python3.5/site-packages/setuptools-18.5-py3.5.egg'
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
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
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)