Comments (8)
Hi, the torch
string should be added in the link like pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1.0/index.html
. You can try it again.
from mmcv.
pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1.0/index.html
You could install mmcv with pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.1.0/index.html
from mmcv.
I had the same problem, could I ask if you solved it?
from mmcv.
I am able to install the above pip mmcv-full command; is there a way I can use that in place of mmcv which I can not get to work because the gcc version on 22.04. gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
anaconda3/lib/python3.11/site-packages/torch/include/ATen/ATen.h:4:2: error: #error C++17 or later compatible compiler is required to use ATen.
4 | #error C++17 or later compatible compiler is required to use ATen.
anaconda3/lib/python3.11/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
I am running cuda 12.3 via wsl. Ubuntu 22.04.3 LTS
I have tried all sorts of things and no luck.
pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1.0/index.html
installs fine and the following does not error out.
python -c 'import mmcv; import mmcv.ops'
but I think I am having issues because the version specified is not installed.
mim install -v -e .
Collecting mmcv<2.1.0,>=2.0.0rc4 (from mmyolo==0.6.0)
Using cached mmcv-2.0.1.tar.gz (469 kB)
Running command python setup.py egg_info
I can provide the full output if that helps. heres the whl install attempt.
pip install mmcv-2.0.0-cp38-cp38-manylinux1_x86_64.whl
ERROR: mmcv-2.0.0-cp38-cp38-manylinux1_x86_64.whl is not a supported wheel on this platform.
`
from mmcv.
I am able to install the above pip mmcv-full command; is there a way I can use that in place of mmcv which I can not get to work because the gcc version on 22.04. gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
anaconda3/lib/python3.11/site-packages/torch/include/ATen/ATen.h:4:2: error: #error C++17 or later compatible compiler is required to use ATen. 4 | #error C++17 or later compatible compiler is required to use ATen. anaconda3/lib/python3.11/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
I am running cuda 12.3 via wsl. Ubuntu 22.04.3 LTS
I have tried all sorts of things and no luck.
pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1.0/index.html
installs fine and the following does not error out.
python -c 'import mmcv; import mmcv.ops'
but I think I am having issues because the version specified is not installed.
mim install -v -e .
Collecting mmcv<2.1.0,>=2.0.0rc4 (from mmyolo==0.6.0) Using cached mmcv-2.0.1.tar.gz (469 kB) Running command python setup.py egg_info
I can provide the full output if that helps. heres the whl install attempt.
pip install mmcv-2.0.0-cp38-cp38-manylinux1_x86_64.whl ERROR: mmcv-2.0.0-cp38-cp38-manylinux1_x86_64.whl is not a supported wheel on this platform. `
Could you provide the output of torch.version.cuda
?
from mmcv.
>>> import torch
>>> torch.version.cuda
'12.1'
from mmcv.
pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.1.0/index.html
seems to work.
Requirement already satisfied: mmcv in /home/x/anaconda3/lib/python3.11/site-packages (2.1.0)
mim install -v -e .
still tries to compile the dependency.
(base) x@h:~/mmyolo$ python -m pip cache purge
Files removed: 35
(base) x@h:~/mmyolo$ pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.1.0/index.html
Looking in links: https://download.openmmlab.com/mmcv/dist/cu121/torch2.1.0/index.html
Requirement already satisfied: mmcv in /home/x/anaconda3/lib/python3.11/site-packages (2.1.0)
Requirement already satisfied: addict in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (2.4.0)
Requirement already satisfied: mmengine>=0.3.0 in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (0.10.2)
Requirement already satisfied: numpy in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (1.24.3)
Requirement already satisfied: packaging in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (23.1)
Requirement already satisfied: Pillow in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (10.0.1)
Requirement already satisfied: pyyaml in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (6.0.1)
Requirement already satisfied: yapf in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (0.31.0)
Requirement already satisfied: opencv-python>=3 in /home/x/anaconda3/lib/python3.11/site-packages (from mmcv) (4.9.0.80)
Requirement already satisfied: matplotlib in /home/x/anaconda3/lib/python3.11/site-packages (from mmengine>=0.3.0->mmcv) (3.8.0)
Requirement already satisfied: rich in /home/x/anaconda3/lib/python3.11/site-packages (from mmengine>=0.3.0->mmcv) (13.4.2)
Requirement already satisfied: termcolor in /home/x/anaconda3/lib/python3.11/site-packages (from mmengine>=0.3.0->mmcv) (2.4.0)
Requirement already satisfied: contourpy>=1.0.1 in /home/x/anaconda3/lib/python3.11/site-packages (from matplotlib->mmengine>=0.3.0->mmcv) (1.0.5)
Requirement already satisfied: cycler>=0.10 in /home/x/anaconda3/lib/python3.11/site-packages (from matplotlib->mmengine>=0.3.0->mmcv) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in /home/x/anaconda3/lib/python3.11/site-packages (from matplotlib->mmengine>=0.3.0->mmcv) (4.25.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/x/anaconda3/lib/python3.11/site-packages (from matplotlib->mmengine>=0.3.0->mmcv) (1.4.4)
Requirement already satisfied: pyparsing>=2.3.1 in /home/x/anaconda3/lib/python3.11/site-packages (from matplotlib->mmengine>=0.3.0->mmcv) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in /home/x/anaconda3/lib/python3.11/site-packages (from matplotlib->mmengine>=0.3.0->mmcv) (2.8.2)
Requirement already satisfied: markdown-it-py>=2.2.0 in /home/x/anaconda3/lib/python3.11/site-packages (from rich->mmengine>=0.3.0->mmcv) (2.2.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/x/anaconda3/lib/python3.11/site-packages (from rich->mmengine>=0.3.0->mmcv) (2.15.1)
Requirement already satisfied: mdurl~=0.1 in /home/x/anaconda3/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich->mmengine>=0.3.0->mmcv) (0.1.0)
Requirement already satisfied: six>=1.5 in /home/x/anaconda3/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib->mmengine>=0.3.0->mmcv) (1.16.0)
(base) x@h:~/mmyolo$ mim install -v -e .
Using pip 23.2.1 from /home/x/anaconda3/lib/python3.11/site-packages/pip (python 3.11)
Looking in links: https://download.openmmlab.com/mmcv/dist/cu121/torch2.1.0/index.html
Obtaining file:///home/x/mmyolo
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-d525c_is/mmyolo.egg-info
writing manifest file '/tmp/pip-pip-egg-info-d525c_is/mmyolo.egg-info/SOURCES.txt'
warning: no files found matching 'mmyolo/VERSION'
warning: no files found matching 'mmyolo/.mim/demo/*/*'
writing manifest file '/tmp/pip-pip-egg-info-d525c_is/mmyolo.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /home/x/anaconda3/lib/python3.11/site-packages (from mmyolo==0.6.0) (1.24.3)
Collecting prettytable (from mmyolo==0.6.0)
Obtaining dependency information for prettytable from https://files.pythonhosted.org/packages/4d/81/316b6a55a0d1f327d04cc7b0ba9d04058cb62de6c3a4d4b0df280cbe3b0b/prettytable-3.9.0-py3-none-any.whl.metadata
Downloading prettytable-3.9.0-py3-none-any.whl.metadata (26 kB)
Collecting mmcv<2.1.0,>=2.0.0rc4 (from mmyolo==0.6.0)
Downloading mmcv-2.0.1.tar.gz (469 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 469.5/469.5 kB 6.3 MB/s eta 0:00:00
Running command python setup.py egg_info
^C Preparing metadata (setup.py) ... canceled
I thought maybe the cache, that did not keep it from pulling the dep.
mmcv<2.1.0,>=2.0.0rc4
mmcv==2.1.0; i think i need something less than 2.1.0
from mmcv.
pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1.0/index.html
You could install mmcv with
pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.1.0/index.html
After I excute the command, MMCV==2.2.0 is installed to my machine by default, but I get following error:
AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0,
how to specify the version of mmcv to install?
from mmcv.
Related Issues (20)
- [Docs] mmcv 1.6.0 mmcv.cnn.bricks.conv_module.py class::ConvModule confusion in padding_mode
- [Bug] Windows packages on pypi.org do not contain _ext module HOT 5
- [Bug] Building wheels extremely slow on Google Colab (cu121, torch2.2.1) HOT 1
- Import Error when installing mmcv using pip and mim HOT 1
- 在mmcv的2.1.0版本中,没有mmcv.runner.utils这个文件夹了,要怎么使用mmcv.runner.utils.obj_from_dict导入数据呢? HOT 3
- [Bug] `using namespace` in header file
- [Bug] CUDA Error: illegal memory access HOT 1
- [Bug] AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.2.0. HOT 22
- [Bug] ImportError: cannot import name 'CUDA_HOME' from 'mmcv.utils' (D:\mmaction2-master\venv2\lib\site-packages\mmcv\utils\__init__.py)
- [Bug] Installing mmcv in docker fails and show error: [Errno 2] No such file or directory: 'which' HOT 2
- [Bug]Some issue in installing rtmdet_tiny_8xb32-300e_coco in mmdet HOT 1
- [Bug] Unable to install MMCV 2.1.0 The detected CUDA version (11.8) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions. HOT 3
- [Bug] chamfer_distance Error in calculation result
- [Docs] 系统没安装cuda和cudnn是否影响mmcv使用?
- [Feature] Adding 'CascadeRCNN in the models registry
- subprocess-exited-with-error HOT 3
- [Bug]
- [Bug] roi_align_rotated_npu算子问题
- [Bug] Using google colab. I can't "Building wheels for collected packages: mmcv-full" HOT 3
- [Bug] can not install mmcv-full==1.4.7 in torch1.13.1 cuda11.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmcv.