mim
mim copied to clipboard
mim install mmcv-full in the wrong venv.
When install the mmcv-full package use openmim, the package is installed in the wrong venv.
Reproduction
- What command or script did you run?
In the
pytorch
venv, runningmim install mmcv-full
, and thenpip list
command cannot find the package in this venv. After deactivating thepytorch
venv usedeactivate
, themmcv-full
package appears.
Bug fix It seams that the mim install funcition cannot recognize the venv environment.
Hi, thanks for your report. Could you provide the full log?
Sorry for the late reply, I am not quite clear what the full log
is.
My environment is:
'sys.platform': 'win32', 'Python': '3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)]', 'CUDA available': True, 'GPU 0': 'GeForce GTX 850M', 'CUDA_HOME': 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.2', 'NVCC': 'Cuda compilation tools, release 10.2, V10.2.89', 'GCC': 'gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0', 'PyTorch': '1.7.1+cu101', 'PyTorch compiling details': 'PyTorch built with:\n - C++ Version: 199711\n - MSVC 192729112\n - Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191125 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v1.6.0 (Git Hash 5ef631a030a6f73131c77892041042805a06064f)\n - OpenMP 2019\n - CPU capability usage: AVX2\n - CUDA Runtime 10.1\n - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37\n - CuDNN 7.6.4\n - Magma 2.5.4\n - Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS=/DWIN32 /D_WINDOWS /GR
/EHsc /w /bigobj -openmp:experimental -DNDEBUG -DUSE_FBGEMM -DUSE_VULKAN_WRAPPER, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON, \n', 'TorchVision': '0.8.2+cu110', 'OpenCV': '4.5.2', 'MMCV': '1.3.18', 'MMCV Compiler': 'n/a', 'MMCV CUDA Compiler': 'n/a'
using python -c "from mmcv.utils import collect_env; print(collect_env())"
as mmcv recommended.
Could you provide some steps to reproduce the error?
- first, use
python -m venv test_mim
to create a venv environment. - second, use
pip install torch==1.10.0+cu102 torchvision==0.11.1+cu102 torchaudio===0.10.0+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html
as pytorch.org suggested to install the pytorch - then, use
pip install openmim
andmim install mmcv-full
to install mmcv and it will show up a successfully installed message. - last, use
pip list
in this venv, and you cannot find the installed mmcv package
Thank you for your patience. I will try to reproduce the error.
Encountered the same issue :(