По умолчанию на центе стоит 2.6, мне надо свежее, установил, но получаю ошибку при работе со своими скриптами.
Сразу прошу прощения, я не компетентен в python и centos поэтому прошу помощи, гугл не помог (везде разные рецепты и решения, которые не дали результат)
[root@yuri ~]# python -m bz2
Traceback (most recent call last):
File "/usr/local/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.5/bz2.py", line 22, in <module>
from _bz2 import BZ2Compressor, BZ2Decompressor
ImportError: No module named '_bz2'
[root@yuri ~]# cat /etc/*-release
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
[root@yuri ~]# yum list | grep bz
Failed to set locale, defaulting to C
bzip2.x86_64 1.0.5-7.el6_0 @anaconda-CentOS-201605220104.x86_64/6.8
bzip2-devel.x86_64 1.0.5-7.el6_0 @base
bzip2-libs.x86_64 1.0.5-7.el6_0 @anaconda-CentOS-201605220104.x86_64/6.8
libzip-last.x86_64 1.1.3-1.el6.remi @remi
pygpgme.x86_64 0.1-18.20090824bzr68.el6 @anaconda-CentOS-201605220104.x86_64/6.8
bzip2-devel.i686 1.0.5-7.el6_0 base
bzip2-libs.i686 1.0.5-7.el6_0 base
bzr.x86_64 2.1.1-2.el6 base
bzr-doc.noarch 2.1.1-2.el6 base
bzr-fastimport.noarch 0.12.0-1.el6 epel
bzrtools.x86_64 2.1.0-1.el6 epel
etckeeper-bzr.noarch 1.18.5-1.el6 epel
gpp4.i686 1.2.0-2.20090916bzr58.el6 epel
gpp4.x86_64 1.2.0-2.20090916bzr58.el6 epel
gpp4-devel.i686 1.2.0-2.20090916bzr58.el6 epel
gpp4-devel.x86_64 1.2.0-2.20090916bzr58.el6 epel
lbzip2.x86_64 2.5-2.el6 epel
lbzip2-utils.x86_64 1.0-1.el6 epel
libzen.i686 0.4.33-1.el6 epel
libzen.x86_64 0.4.33-1.el6 epel
libzen-devel.i686 0.4.33-1.el6 epel
libzen-devel.x86_64 0.4.33-1.el6 epel
libzen-doc.noarch 0.4.33-1.el6 epel
libzip.i686 0.9-3.1.el6 base
libzip.x86_64 0.9-3.1.el6 base
libzip-devel.i686 0.9-3.1.el6 base
libzip-devel.x86_64 0.9-3.1.el6 base
libzip-last-devel.x86_64 1.1.3-1.el6.remi remi
libzip-last-tools.x86_64 1.1.3-1.el6.remi remi
libzrtpcpp.i686 3.2.1-2.el6 epel
libzrtpcpp.x86_64 3.2.1-2.el6 epel
libzrtpcpp-devel.i686 3.2.1-2.el6 epel
libzrtpcpp-devel.x86_64 3.2.1-2.el6 epel
libzstd.i686 1.1.1-1.el6 epel
libzstd.x86_64 1.1.1-1.el6 epel
libzstd-devel.i686 1.1.1-1.el6 epel
libzstd-devel.x86_64 1.1.1-1.el6 epel
pbzip2.x86_64 1.1.12-1.el6 epel