K
K
Kirill Zhilyaev2016-08-09 11:49:53
Python
Kirill Zhilyaev, 2016-08-09 11:49:53

How to install python module?

I need to install pylibzma.
Tried through pip and through setup.py - doesn't work.
This gives pip

C:\Users\LOL\AppData\Local\Programs\Python\Python35-32>python -m pip install pyl
iblzma
Collecting pyliblzma
Using cached pyliblzma-0.5.3.tar.bz2
Complete output from command python setup.py egg_info:
C :\Users\LOL\AppData\Local\Programs\Python\Python35-32\lib\site-packages\set
uptools\extern\__init__.py:1: UserWarning: Module lzma was already imported from
C:\Users\LOL\ AppData\Local\Programs\Python\Python35-32\lib\lzma.py, but c:\user
s\lol\appdata\local\temp\pip-build-racexlky\pyliblzma is being added to sys.path
from pkg_resources. extern import VendorImporter
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\LOL\AppData\Local\Temp\pip-build-racexlky\pyliblzma\setup.p
y", line 40, in
for i in xrange(len(c_files)):
NameError: name 'xrange' is not defined
----------------------------------------
Command "python setup.py egg_info " failed with error code 1 in C:\Users\LOL\AppD
ata\Local\Temp\pip-build-racexlky\pyliblzma\

setup.py
C:\Users\LOL\AppData\Local\Programs\Python\Python35-32>C:\Users\LOL\Desktop\pyli
blzma-0.5.1\setup.py
Traceback (most recent call last):
File "C: \Users\LOL\Desktop\pyliblzma-0.5.1\setup.py", line 46, in
shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True
).stdout.read():
File "C:\Users\LOL\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py
", line 870, in __init__
"close_fds is not supported on Windows platforms"
ValueError: close_fds is not supported on Windows platforms if you redirect stdi
n/stdout/stderr

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Kitaev, 2016-08-09
@deliro

Because pyliblzma only supports the second python. And in general, the last update of the module was in 2010.
Python has a built in module for this https://docs.python.org/3/library/lzma.html

M
marataziat, 2017-06-30
@marataziat

Can I use easy_install?

V
Vadim Popov, 2018-01-23
@vadimpopov2003

pip3 install <write what you need to install (name)>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question