question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install module - /bin/pip: No such file or directory

See original GitHub issue

Hello,

Trying to install a module fails with the following error: /bin/sh: /bin/pip: No such file or directory

I am using MacOS and have installed python and python3 using homebrew. Then installed pipenv using pip3.

which pip returns: /usr/local/bin/pip and pip itself is found as a command.

However, if I use python -m pip --version it points to the default MacOS python: pip 9.0.1 from /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg (python 2.7)

I am unaware where it tries to resolve pip from and does not find it. I am not sure if there is a problem with my $PATH paths or the issue is different.

Thank you for your time!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

68reactions
nzagorchevcommented, Sep 5, 2017

Seems the root cause was that pew was not working due to not set locale. Setting it in .bash_profile seems to resolve the issue.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Will further test and later update if this is solved.

23reactions
Manmanthancommented, Jul 17, 2018

$ hash -r Reset your bash cache. It will solve the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No such file or directory: '/usr/local/bin/pip' - Stack Overflow
My solution to the "No such file or directory" error was to add to $PATH the directory, where the 'pip' (and 'pip3') commands...
Read more >
[solved]python pip no longer installing packages
pip install lastgenre Traceback (most recent call last): File "/home/jmgant/.local/bin/pip", line 5, in <module> from pip.
Read more >
How do I correct the path for pip? - Unix & Linux Stack Exchange
Just put it into the relevant shell configuration file (for execution each time ... pip bash: /usr/local/bin/pip: No such file or directory.
Read more >
Unable to use pip install - python - Ask Ubuntu
Installing modules using pip from snap package is not possible. Module playsound installs using system's pip, but it is not visible to snap ......
Read more >
Frequently Encountered Pipenv Problems
☤ /bin/pip: No such file or directory¶. This may be related to your locale setting. See ☤ ValueError: unknown locale: UTF-8 for a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found