문제

설치 단계

다음에 오류가 끝나고 있습니다

#python setup.py install

Traceback (most recent call last):
  File "setup.py", line 18, in <module>
    use_setuptools()
  File "/mnt/ravi/BQTools/bigquery-2.0.6/ez_setup.py", line 76, in use_setuptools
    return do_download()       
  File "/mnt/ravi/BQTools/bigquery-2.0.6/ez_setup.py", line 72, in do_download
    import setuptools; setuptools.bootstrap_install_from = egg
zipimport.ZipImportError: can't decompress data; zlib not available
.

이 오류를 제거하기 위해 zlib를 설치해야했지만 도움이되지는 않지만

에 도움이되지 않아야합니다.
#yum install zlib

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * updates-newkey: kdeforge.unl.edu
 * fedora: kdeforge.unl.edu
 * updates: kdeforge.unl.edu
updates-newkey                                          | 2.3 kB     00:00     
fedora                                                  | 2.1 kB     00:00     
updates                                                 | 2.6 kB     00:00     
s3tools                                                 | 1.7 kB     00:00     
Setting up Install Process
Parsing package install arguments
Package zlib-1.2.3-14.fc8.i386 already installed and latest version

Nothing to do
.

검색은 다음 결과를 제공합니다

#yum search zlib
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * updates-newkey: kdeforge.unl.edu
 * fedora: kdeforge.unl.edu
 * updates: kdeforge.unl.edu 
================================ Matched: zlib ================================
arm-gp2x-linux-zlib.noarch : Cross Compiled zlib Library targeted at arm-gp2x-
                           : linux
iptstate.i386 : A top-like display of IP Tables state table entries
jzlib.i386 : JZlib re-implementation of zlib in pure Java
jzlib-demo.i386 : Examples for jzlib
jzlib-javadoc.i386 : Javadoc for jzlib
minizip.i386 : Minizip manipulates files from a .zip archive
minizip-devel.i386 : Development files for the minizip library
ocaml-cryptokit.i386 : OCaml library of cryptographic and hash functions
perl-Archive-Tar.noarch : A module for Perl manipulation of .tar files
perl-Compress-Raw-Zlib.i386 : Low-Level Interface to the zlib compression
                            : library
perl-Compress-Zlib.noarch : A module providing Perl interfaces to the zlib
                          : compression library
perl-IO-Compress-Zlib.noarch : Perl interface to allow reading and writing of
                             : gzip and zip data
perl-IO-Zlib.noarch : Perl IO:: style interface to Compress::Zlib
perl-POE-Filter-Zlib.noarch : POE filter wrapped around Compress::Zlib
php-pecl-phar.i386 : Allows running of complete applications out of .phar files
rb_libtorrent-devel.i386 : Development files for rb_libtorrent
zlib.i386 : The zlib compression and decompression library
zlib-devel.i386 : Header files and libraries for Zlib development
zziplib.i386 : Lightweight library to easily extract data from zip files
zziplib-devel.i386 : Development files for the zziplib library
zziplib-utils.i386 : Utilities for the zziplib library
.

Zlib가 올바르게 설치되었는지 확실하지 않습니다

# zlib
-bash: zlib: command not found
.

다음 단계를 제안하십시오

도움이 되었습니까?

해결책

여기서 문제는 ZLIB 지원없이 기계의 파이썬 사본이 지어졌습니다.운 좋게도 Zlib만이 필요합니다. SetupTools를 설치하는 것입니다. 그리고 귀하의 사례에서 그 일을 할 수있는 방법은 다음과 같습니다.

yum install python-setuptools
.

을 누르면 또는 (더 쉽게) easy_install -U bigquery를 입력하여 BQ를 설치할 수 있습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top