(open-mmlab) dutxutengfei@dutxutengfei:~$ mim install -h
Usage: mim install[OPTIONS] PACKAGE
Install package.
Example:
# install latest version of mmcv-full> mim install mmcv-full # wheel# install 1.3.1> mim install mmcv-full==1.3.1
# install master branch> mim install mmcv-full -f https://github.com/open-mmlab/mmcv.git
# install latest version of mmcls > mim install mmcls # install 0.11.0 >
mim installmmcls==0.11.0 # v0.11.0 # install master branch > miminstall mmcls -f https://github.com/open-mmlab/mmclassification.git #installlocal repo >git clone https://github.com/open-
mmlab/mmclassification.git >cd mmclassification > mim install.# install extension based on OpenMMLab > mim install mmcls-project -f
https://github.com/xxx/mmcls-project.git
Options:
-f, --find TEXT Url for finding package.
--default-timeout INTEGER Set the socket timeout(default 15 seconds).
-y, --yes Don’t ask for confirmation of uninstall
deletions.
--user Install to the Python user install directory
-e, --editable Install a package in editable mode.
-h, --help Show this message and exit.
(open-mmlab) dutxutengfei@dutxutengfei:~$ mim install -f https://github.com.cnpmjs.org/open-mmlab/mmsegmentation.git mmsegmentation
installing mmsegmentation from https://github.com.cnpmjs.org/open-mmlab/mmsegmentation.git.
正克隆到 '/tmp/tmpd45f2ext/mmsegmentation'...
remote: Enumerating objects: 3138, done.
remote: Counting objects: 100% (540/540), done.
remote: Compressing objects: 100% (355/355), done.
remote: Total 3138(delta 326), reused 286(delta 183), pack-reused 2598
接收对象中: 100% (3138/3138), 5.17 MiB |3.36 MiB/s, 完成.
处理 delta 中: 100% (2211/2211), 完成.
/home/dutxutengfei/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at /opt/conda/conda-bld/pytorch_1623448234945/work/c10/cuda/CUDAFunctions.cpp:115.)return torch._C._cuda_getDeviceCount()>0
No CUDA runtime is found, using CUDA_HOME='/usr'
Successfully installed dependencies.
Processing /tmp/tmpd45f2ext/mmsegmentation
DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Requirement already satisfied: matplotlib in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from mmsegmentation==0.15.0)(3.4.2)
Requirement already satisfied: numpy in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from mmsegmentation==0.15.0)(1.21.0)
Collecting prettytable
Downloading prettytable-2.1.0-py3-none-any.whl (22 kB)
Requirement already satisfied: kiwisolver>=1.0.1 in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from matplotlib->mmsegmentation==0.15.0)(1.3.1)
Requirement already satisfied: cycler>=0.10in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from matplotlib->mmsegmentation==0.15.0)(0.10.0)
Requirement already satisfied: python-dateutil>=2.7in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from matplotlib->mmsegmentation==0.15.0)(2.8.1)
Requirement already satisfied: pillow>=6.2.0 in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from matplotlib->mmsegmentation==0.15.0)(8.3.1)
Requirement already satisfied: pyparsing>=2.2.1 in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from matplotlib->mmsegmentation==0.15.0)(2.4.7)
Requirement already satisfied: six in ./anaconda3/envs/open-mmlab/lib/python3.8/site-packages (from cycler>=0.10->matplotlib->mmsegmentation==0.15.0)(1.16.0)
Collecting wcwidth
Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Building wheels for collected packages: mmsegmentation
Building wheel for mmsegmentation (setup.py)... done
Created wheel for mmsegmentation: filename=mmsegmentation-0.15.0-py3-none-any.whl size=491938sha256=12831bdf3b03f725208311a6ebf521b4f6414d2ef115ef5349d764ea93ae153a
Stored in directory: /tmp/pip-ephem-wheel-cache-l1aiuy82/wheels/7a/37/ec/062e341f394fe425915df7bb0f872fc3851ab20752157b10eb
Successfully built mmsegmentation
Installing collected packages: wcwidth, prettytable, mmsegmentation
Successfully installed mmsegmentation-0.15.0 prettytable-2.1.0 wcwidth-0.2.5
Successfully installed mmsegmentation.
(open-mmlab) dutxutengfei@dutxutengfei:~$