mim icon indicating copy to clipboard operation
mim copied to clipboard

mim: command not found

Open zimenglan-sysu-512 opened this issue 1 year ago • 5 comments

after installing mim in source-code style, but can't find the mim command.

zimenglan-sysu-512 avatar May 18 '23 09:05 zimenglan-sysu-512

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

jere357 avatar May 18 '23 15:05 jere357

pip install openmim got the same issue..... any help?

Kenneth-X avatar May 19 '23 06:05 Kenneth-X

Hi, what is your environment (os and python version)?

zhouzaida avatar May 19 '23 07:05 zhouzaida

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 :)

JennySeidenschwarz avatar May 26 '23 11:05 JennySeidenschwarz

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

nok avatar Jul 01 '23 23:07 nok