Cannot install module - /bin/pip: No such file or directory
See original GitHub issueHello,
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:
- Created 6 years ago
- Reactions:1
- Comments:16 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.Will further test and later update if this is solved.
$ hash -r Reset your bash cache. It will solve the problem.