Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mim: command not found #214

Open
zimenglan-sysu-512 opened this issue May 18, 2023 · 5 comments
Open

mim: command not found #214

zimenglan-sysu-512 opened this issue May 18, 2023 · 5 comments

Comments

@zimenglan-sysu-512
Copy link

zimenglan-sysu-512 commented May 18, 2023

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

@jere357
Copy link

jere357 commented May 18, 2023

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

@Kenneth-X
Copy link

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

@zhouzaida
Copy link
Collaborator

zhouzaida commented May 19, 2023

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

@JennySeidenschwarz
Copy link

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

@nok
Copy link

nok commented Jul 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants