手把手教你如何安裝Tensorflow(Windows和Linux兩種版本)
https://blog.csdn.net/cs_hnu_scw/article/details/79695347
Python一鍵安裝全部依賴包
https://blog.csdn.net/qq_37925422/article/details/79646462
CentOS下編譯64位的libpython2.6.so.1.0庫
https://blog.csdn.net/inte_sleeper/article/details/6614190
python lib 庫下載
https://centos.pkgs.org/6/centos-x86_64/python-libs-2.6.6-66.el6_8.x86_64.rpm.html
技術(shù)博客
https://www.cnblogs.com/wangxiaoqiangs/category/807645.html
http://www.cnblogs.com/chongdongxiaoyu/p/9511386.html
安裝pip
下載對(duì)應(yīng)的tar包
https://blog.csdn.net/qq_27275447/article/details/80065535
2.6版本的
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b4
86df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=
35f01da33009719497f01a4ba69d63c9
[root@localhost ~]# tar xf pip-9.0.1.tar.gz
[root@localhost ~]# cd pip-9.0.1
[root@localhost pip-9.0.1]# python3 setup.py install
pip show Package:顯示已安裝的模塊信息
pip show traitlets
+++++++++++++++++++
libpython2.6.so.1.0: cannot open shared object file: No such file or directory
安裝nginx中需要Python2.6的支持确沸,下面介紹如何安裝Python2.6梨熙,并建立lib的連接
tar 包安裝pip
tar -xzvf pip-1.5.4.tar.gz
cd pip-1.5.4
python setup.py install
++++++++++++++++++++++++++++++
python升級(jí)導(dǎo)致yum命令無法使用的解決辦法
報(bào)錯(cuò)
[root@develop bin]# yum
[root@develop local]# yum -y install prce
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.1 (r261:67515, Aug 7 2010, 11:36:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
2、查看yum版本
[root@develop local]# rpm -qa |grep yum
yum-3.2.8-9.el5.centos.1
yum-metadata-parser-1.1.2-2.el5
3婚脱、查看python版本
[root@develop local]# whereis python
python: /usr/bin/python2.4 /usr/bin/python /usr/lib/python2.4 /usr/local/bin/python2.6 /usr/local/bin/python2.6-config /usr/local/bin/python /usr/local/lib/python2.6 /usr/share/man/man1/python.1.gz
4、執(zhí)行python伴网,查看到使用2.6.1的版本
[root@develop local]# python
Python 2.6.1 (r261:67515, Aug 7 2010, 11:36:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
5户辱、猜測yum調(diào)用了高版本的python。
6吹由、解決方法:
查找yum和 yum-updatest文件,并編輯此py文件
將
!/usr/bin/python
改為:
!/usr/bin/python2.4
然后保存OK.
+++++++++++++++++++++++++
需要注意的問題
lib64
和
lib
修改指定python
vi /usr/bin/yum
++++++++++++++++
查看yum版本
rpm -qa |grep yum
++++++++++++++++++
There was a problem importing one of the Python modules
required to run yum.
+++++++++++++++
bash: pip: command not found... 解決方法
wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate
? ?
?tar -axf pip-1.5.4.tar.gz
? ? ?cd pip-1.5.4/
? ? ?python setup.py install
安裝完后,
使用 pip -V 報(bào)錯(cuò)朱嘴,如下:
bash: pip: command not found...
這時(shí)候怎么辦呢倾鲫??
做一個(gè)軟連接即可:
首先查下安裝路徑:
find / -name pip
然做個(gè)軟連接
ln -sv /usr/local/python/bin/pip /usr/bin/pip
做完就可以用了萍嬉。
路徑要根據(jù)你自己的進(jìn)行改變乌昔。
++++++++++++++++++++++++++++
安裝python時(shí)出現(xiàn)Ignoring ensurepip failure:pip required SSL/TLS和There are no enabled repos
安裝python時(shí)出現(xiàn)Ignoring ensurepip failure:pip required SSL/TLS
因?yàn)闆]有安裝OpenSSL
使用yum install openssl-devel;
但是我的安裝出現(xiàn) There are no enabled repos....
好像是因?yàn)闆]有配置yum 源;處理半天解決不了
直接安裝openssl-devel ? ? ? ?
sudo apt-get install libssl-dev
就可以了
+++++
python ImportError: /lib64/libc.so.6: version `GLIBC_2.16' not found
錯(cuò)誤原因:
glibc版本過低
查看glibc版本
strings /lib64/libc.so.6 | grep GLIBC_
從 http://ftp.gnu.org/gnu/libc/ 下載源代碼
安裝GLIBC_
參考鏈接地址:https://my.oschina.net/zhangxu0512/blog/262275
centos卸載python
https://www.cnblogs.com/phpandmysql/p/7066399.html
+++++++++++++++++++++++++++++++++++++++++++
yum 安裝一個(gè)軟件包壤追,出現(xiàn)如下錯(cuò)誤磕道;
?-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: 沒有那個(gè)文件或目錄
查看yum和python的rpm是否安裝,系統(tǒng)已安裝yum和python的的rpm包大诸。
查看一下系統(tǒng)命令:
ls -l? ?/usr/bin/yum??? #yum命令存在
-rwxr-xr-x 1 root root 801 6月? 23 16:54 /usr/bin/yum
ls -l ?python? #原因在這
cd /usr/bin/? 找不到python命令
解決辦法:
重新做一個(gè)python的軟連接捅厂,用系統(tǒng)的python的rpm包python2.6贯卦;問題解決资柔。
ln -s /usr/bin/python2.6 /usr/bin/python
作者:anning_88
來源:CSDN
原文:https://blog.csdn.net/anning_88/article/details/75735757
版權(quán)聲明:本文為博主原創(chuàng)文章,轉(zhuǎn)載請(qǐng)附上博文鏈接撵割!
+++++++++++++++++++++++++++++++++++++++++++++++++++++