1

I've used pip before to install libraries to use them in my python scripts. Now I've installed ranger-fm from pip.

Silly question: how do I run it?

I did not expect to run it by simply entering 'ranger' at the command line. I did try

python3 -m ranger

which gives this error:

/Library/Developer/CommandLineTools/usr/bin/python3: No module named ranger.__main__; 'ranger' is a package and cannot be directly executed
0

1 Answer 1

2

Pip may have installed a ranger or ranger.py command. Try to use it directly. Also read the doc

Look perhaps in the directory ~/Library/Python/X.Y/bin where X.Y is your version of Python. Also try

python -c 'import site; print(site.getuserbase())'

to get the base directory containing the bin directory. If ranger is there, add the bin directory to your PATH environment variable.

5
  • "Pip may have installed a ranger command." It did not. I already stated that in my question. Commented Dec 19, 2023 at 17:11
  • I think this is more of a pip question than a ranger question. Commented Dec 19, 2023 at 17:11
  • @user1785730 If it did not install it as the command ranger, it may have installed it as ranger.py, as suggested by the contents of the repository. Commented Dec 19, 2023 at 20:10
  • But that would still tab complete. Anyway, command not found: ranger.py Commented Dec 19, 2023 at 22:14
  • 1
    Look perhaps in the directory ~/Library/Python/X.Y/bin where X.Y is your version of Python. Also try python -c 'import site; print(site.getuserbase())' to get the base directory containing the bin directory. If ranger is there, add the bin directory to your PATH. Commented Dec 20, 2023 at 5:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .