@ Shared Server / Umgebung ohne Pyenv oder Anaconda
Natürlich sollte die Python-Version 2 Serien sein.
$ pip install --install-option="--prefix=$HOME/share" backports.lzma
# -*- encoding: utf-8 -*-
try:
import lzma
except:
import sys
sys.path.append('/home/bunzaemon/share/lib64/python2.6/site-packages')
from backports import lzma
with lzma.open("dat.txt.xz") as f:
print (f.read().decode())
decode ()
erforderlich.Recommended Posts