Pipenv: no such file or directory
See original GitHub issueWhatever command I try to run I get this result:
Creating a virtualenv for this project...
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 11, in <module>
sys.exit(cli())
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pipenv/cli.py", line 1138, in check
ensure_project(three=three, python=python, validate=False)
File "/usr/local/lib/python2.7/site-packages/pipenv/cli.py", line 178, in ensure_project
ensure_virtualenv(three=three, python=python)
File "/usr/local/lib/python2.7/site-packages/pipenv/cli.py", line 157, in ensure_virtualenv
do_create_virtualenv(three=three, python=python)
File "/usr/local/lib/python2.7/site-packages/pipenv/cli.py", line 413, in do_create_virtualenv
c = delegator.run(cmd, block=False, timeout=PIPENV_TIMEOUT)
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/delegator.py", line 257, in run
c.run(block=block, binary=binary)
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/delegator.py", line 149, in run
s = PopenSpawn(self._popen_args, **pexpect_kwargs)
File "/usr/local/lib/python2.7/site-packages/pipenv/vendor/pexpect/popen_spawn.py", line 45, in __init__
self.proc = subprocess.Popen(cmd, **kwargs)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I’m running python2
installed via Homebrew. pipenv
has been installed via pip2
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
No such file or directory after installing pipenv - Stack Overflow
You need to run pipenv with the python associated with the pip3. so python3 -m pipenv shell considers that pip3 is associaed with...
Read more >pipenv install error: bad interpreter: No such file or directory ...
Try reinstalling pipenv (from Homebrew if that's how you installed it initially).
Read more >Frequently Encountered Pipenv Problems - Read the Docs
☤ /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 >Pipenv shell start error: FileNotFoundError: [Errno 2] No such ...
Hi all,. i'm trying to use pipenv, installing works, now I wanted to start the shell with pipenv shell and I got the...
Read more >[Example code]-No such file or directory after installing pipenv
I installed pipenv in my Ubuntu 20.04 with the following command: pip3 install --user pipenv. but now when I try to run pipenv...
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
I’ve just run in to this issue myself, and the fix for me was to ensure that
/home/{{user}}/.local/bin
was present in my pathPATH
. Note for linux users, this has to be the absolute path and not~/.local/bin
.Great - looks good!