Installing MultiQC on Ubuntu
2
0
Entering edit mode
6.5 years ago
m98 ▴ 420

I am trying to install MultiQC and I am having a lot of trouble. I am on a Ubuntu virtual machine and I have sudo rights. I followed the instructions from MultiQC for a manual instruction. I did the following:

git clone https://github.com/ewels/MultiQC.git
cd MultiQC/
sudo python setup.py install

When I type multiqc --help, I get the following output, which I don't understand:

Traceback (most recent call last):
  File "/usr/local/bin/multiqc", line 4, in <module>
    import pkg_resources
 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: backports.functools-lru-cache

I am quite confused as to what this means ( I don't use Python). Any help would be deeply appreciated.

ngs fastqc multiqc • 12k views
ADD COMMENT
2
Entering edit mode

Please use one of these options instead:

conda install -c bioconda multiqc
multiqc .

or

pip install multiqc    # Install
multiqc .
ADD REPLY
3
Entering edit mode
6.5 years ago
pip install multiqc --user 
~/.local/bin/multiqc ./my_qc_reports_dir/
ADD COMMENT
1
Entering edit mode
5.2 years ago
Phil Ewels ★ 1.4k

See https://multiqc.info/docs/#installing-multiqc

Before we start - a quick note that using the system-wide installation of Python is not recommended. This often causes problems and it's a little risky to mess with it. If you find yourself prepending sudoto any MultiQC commands, take a step back and think about Python virtual environments / conda instead (see below).

As said by others - it's much safer and easier to install using Conda / Docker / etc.

ADD COMMENT

Login before adding your answer.

Traffic: 1856 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6