pyBigWig

作者: JeremyL | 来源:发表于2018-05-11 02:46 被阅读10次

安装deepTools需要依赖pyBigWig包。
安装pyBigWig包时出错:

$ pip install pyBigWig==0.2.5
Downloading/unpacking pyBigWig==0.2.5
  Downloading pyBigWig-0.2.5.tar.gz (48kB): 48kB downloaded
  Running setup.py (path:/tmp/pip_build_labubuntu/pyBigWig/setup.py) egg_info fo                                                                                                                                                             r package pyBigWig
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution                                                                                                                                                              option: 'classifier'
      warnings.warn(msg)

    warning: no files found matching 'galaxy/*'
    warning: no previously-included files found matching 'pyBigWig.egg-info/*'
Installing collected packages: pyBigWig
  Running setup.py install for pyBigWig
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution                                                                                                                                                              option: 'classifier'
      warnings.warn(msg)

    warning: no files found matching 'galaxy/*'
    building 'pyBigWig' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -                                                                                                                                                             Wall -Wstrict-prototypes -fPIC -IlibBigWig -I/usr/include/python2.7 -I/usr/inclu                                                                                                                                                             de/python2.7 -c libBigWig/bwWrite.c -o build/temp.linux-x86_64-2.7/libBigWig/bwW                                                                                                                                                             rite.o
    In file included from libBigWig/bigWig.h:1:0,
                     from libBigWig/bwWrite.c:6:
    libBigWig/io.h:1:23: fatal error: curl/curl.h: No such file or directory
     #include <curl/curl.h>
                           ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize                                                                                                                                                             ;__file__='/tmp/pip_build_labubuntu/pyBigWig/setup.py';exec(compile(getattr(toke                                                                                                                                                             nize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"                                                                                                                                                              install --record /tmp/pip-nDt9LG-record/install-record.txt --single-version-exte                                                                                                                                                             rnally-managed --compile:
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution                                                                                                                                                              option: 'classifier'

  warnings.warn(msg)

running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/pyBigWigTest

copying pyBigWigTest/test.py -> build/lib.linux-x86_64-2.7/pyBigWigTest

copying pyBigWigTest/__init__.py -> build/lib.linux-x86_64-2.7/pyBigWigTest

running egg_info

writing pyBigWig.egg-info/PKG-INFO

writing top-level names to pyBigWig.egg-info/top_level.txt

writing dependency_links to pyBigWig.egg-info/dependency_links.txt

warning: manifest_maker: standard file '-c' not found



reading manifest file 'pyBigWig.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

warning: no files found matching 'galaxy/*'

writing manifest file 'pyBigWig.egg-info/SOURCES.txt'

copying pyBigWigTest/test.bw -> build/lib.linux-x86_64-2.7/pyBigWigTest

running build_ext

building 'pyBigWig' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/libBigWig

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall                                                                                                                                                              -Wstrict-prototypes -fPIC -IlibBigWig -I/usr/include/python2.7 -I/usr/include/p                                                                                                                                                             ython2.7 -c libBigWig/bwWrite.c -o build/temp.linux-x86_64-2.7/libBigWig/bwWrite                                                                                                                                                             .o

In file included from libBigWig/bigWig.h:1:0,

                 from libBigWig/bwWrite.c:6:

libBigWig/io.h:1:23: fatal error: curl/curl.h: No such file or directory

 #include <curl/curl.h>

                       ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build                                                                                                                                                             _labubuntu/pyBigWig/setup.py';exec(compile(getattr(tokenize, 'open', open)(__fil                                                                                                                                                             e__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip                                                                                                                                                             -nDt9LG-record/install-record.txt --single-version-externally-managed --compile                                                                                                                                                              failed with error code 1 in /tmp/pip_build_labubuntu/pyBigWig
Storing debug log for failure in /home/labubuntu/.pip/pip.log

找到错误

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

上网搜索解决方法发现,原来是安装pyBigWig需要的依赖包没有安装全;
再回到报错中寻找,发现是因为没有安装curl模块:

libBigWig/io.h:1:23: fatal error: curl/curl.h: No such file or directory

安装curl模块

$ sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

再次安装pyBigWig包

$ pip install pyBigWig==0.2.5

还是失败,发现是权限不够:

error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pyB                                                                                                                                                             igWig.so'

root权限

 $ sudo pip install pyBigWig==0.2.5

相关文章

  • pyBigWig处理bigwig

    pyBigWig[https://github.com/deeptools/pyBigWig]是用C编写的调用li...

  • pyBigWig

    安装deepTools需要依赖pyBigWig包。安装pyBigWig包时出错: 找到错误 上网搜索解决方法发现,...

  • deeptools安装pyBigWig问题

    Download and install deepTools https://github.com/fidelra...

网友评论

    本文标题:pyBigWig

    本文链接:https://www.haomeiwen.com/subject/qfexdftx.html