mim
mim copied to clipboard
mim: command not found
after installing mim in source-code style, but can't find the mim command.
ok, i had the same issue, the problem was where the mim was installed - i deleted it and reinstalled openmim with sudo and now it works fine, hope this helps you as well (:
before this i tried installing it with pip and from source and nothing worked. Installing it with sudo pip worked. i think this kind of issue is also solved by using virtual envs not sure.
I think sudo solved my problem bcs non sudo pip couldnt install packages exactly where it wanted so it installed them in some random folder at /home/user/.local idk works now im chillin
pip install openmim got the same issue..... any help?
Hi, what is your environment (os and python version)?
It can't find where mim is installed, easy solution instead of mim install mmengine run:
<path/where/mim/isnatlled>/mim install mmengine
For me <path/where/mim/isnatlled> = /opt/anaconda3/envs/sf_av2/bin/mim :)
It's a good practice to use Python modules explicitly by using the argument -m
to avoid issues by a misconfiguration.
And the usage is very simple:
Install from source:
git clone https://github.com/open-mmlab/mim.git
cd mim
python -m pip install -e .
python -m mim --help
Install from PyPi:
python -m pip install openmim
python -m mim --help