准备工作:
gcc升级为4.8.2
glibc升级为2.18
/opt/xxx/xxx/components/ficlient/bigdata_env 里加入:
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
因为 GLIBCXX 在 /usr/local/lib64/libstdc++.so 里。
DN0:~/bone # source /opt/xxx/xxx/components/ficlient/bigdata_env
安装的库:
# hmmlearn需要安装的东西
/opt/xxx/xxx/anaconda2/bin/conda install --use-local hmmlearn-0.3.0b-np112py27_0.tar.bz2
# tflearn依赖的包:
/opt/xxx/xxx/anaconda2/bin/conda install --use-local tensorflow-1.4.0-py27_0.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local tflearn-0.3.2-py27_0.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local tflearn-0.3.2-py27_0.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local tensorflow-1.4.0-py27_0.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local tensorflow-1.0.0-py27_0.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local tflearn-0.3.2-py27_0.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda --use-local protobuf-3.5.1-py27_1.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local protobuf-3.5.1-py27_1.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local mock-2.0.0-py27_0.tar.bz2
/opt/xxx/xxx/anaconda2/bin/conda install --use-local pbr-3.1.1-py27_0.tar.bz2
最后效果:
DN0:~/bone # /opt/xxx/xxx/anaconda2/bin/python
Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import tflearn
>>>
anaconda搜索安装包:
https://anaconda.org/conda-forge/pbr/files
直接去找linux64-py27的包即可。需要什么依赖就手动一步步去解决。
参考:
http://blog.sciencenet.cn/blog-725052-965426.html
在Anaconda下从本地安装包安装obspy
想在Anaconda下安装obspy,但总是出现各种网络问题,无法完成下载obspy的包。pip install也试了下,网络问题依旧。但本人使用的奇葩网络竟然可以在Anaconda的网站上(https://conda.anaconda.org/obspy)下载安装包,于是先按照我的python版本和系统架构下载了一个安装包obspy-1.0.1-py27_0.tar.bz2。
下载完包之后,需要找到从本地安装的方法,从Anaconda网站上找到install命令说明(http://conda-test.pydata.org/docs/commands/install.html),发现其中有
--use-local use locally built packages
于是尝试了一下
conda install --use-local obspy-1.0.1-py27_0.tar.bz2
没想到真的成功 !
这个方法对于网络不好,或者网络奇葩,或者网络连接不便的Anaconda用户应该有帮助。
本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/8310303.html,如需转载请自行联系原作者