Search code examples
pipdetection

cannot install mmcv with cuda 11


i tried to imstall mmcv for cuda 11 by using this command

pip install mmcv

but got

AssertionError: MMCV==1.3.1 is used but incompatible. Please install mmcv>=1.2.4, <=1.3.

i tried to use pip install mmcv == 1.3.0

but got

 ERROR: Command errored out with exit status 1:
     command: /home/user/anaconda3/bin/python -u -c 'import sys, setuptools, tokenized; 
 sys.argv[0] = '"'"'/tmp/pip-install-zwzedoq9/mmcv-full_b791a0604b534f8b95679eed9cbac9f3
/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zwzedoq9/mmcv-
full_b791a0604b534f8b95679eed9cbac9f3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', 
open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 
/tmp/pip-record-3hdmd7th/install-record.txt --single-version-externally-managed --compile 
--install-headers /home/user/anaconda3/include/python3.7m/mmcv-full
         cwd: /tmp/pip-install-zwzedoq9/mmcv-full_b791a0604b534f8b95679eed9cbac9f3/

Solution

  • Remove the spaces around ==:

    $ pip install mmcv==1.3.0
    Collecting mmcv==1.3.0
      Downloading mmcv-1.3.0.tar.gz (253 kB)
         |████████████████████████████████| 253 kB 3.6 MB/s