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.

pew which is in $PATH is not found

See original GitHub issue

For me on ubuntu there’s a warning about pew not being in the path, while it certainly is.

$ python --version
Python 3.5.4
$ pip --version
pip 9.0.1 from /home/bogn/.pyenv/versions/3.5.4/lib/python3.5/site-packages (python 3.5)
$ pyenv --version
pyenv 1.1.5-7-gaf8cca9
$ pipenv --version
pipenv, version 8.2.7
$ pipenv install flask
Creating a virtualenv for this project…
⠋Warning: it looks like pew is not in your PATH. We cannot continue until this is resolved.
$ pew version
1.1.0

At first I thought that the issue is that I modified the $PATH in ~/.bashrc, not in ~/.profile. But after adding it to .profile as well it still doesn’t work. Note that I’ve used pyenv and it’s plugin python-build to install python. Installing and uninstalling pew[pythonz] didn’t help either. Reinstalling pipenv also wasn’t succesful.

Expected result

I would have expected that pipenv creates a new env and installs flask into it.

Actual result

$ pipenv install flask --verbose Creating a virtualenv for this project… ⠋Warning: it looks like pew is not in your PATH. We cannot continue until this is resolved.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
premiumrainwatercommented, Oct 28, 2017

I have the same problem

I ran into this problem while I was following this guide and when running

pip install requests

and the error is this

Warning: PYENV_ROOT is not set. New python paths will probably not be exported properly after installation. Creating a virtualenv for this project… ⠋Warning: it looks like pew is not in your PATH. We cannot continue until this is resolved.

My $PATH returns this

`/Users/adeka/bin:/usr/local/bin:/Users/adeka/bin:/usr/local/bin:/Users/adeka/.pyenv/shims:/usr/local/Cellar/pyenv-virtualenv/1.1.1/shims:/Users/adeka/.pyenv/shims:/usr/local/Cellar/pyenv-virtualenv/1.1.1/shims:/Users/adeka/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin`

My pipenv -version rerturns this

`pipenv, version 8.2.7`

and when I run pip install pew i get this

Requirement already satisfied: pew in /Users/adeka/Library/Python/3.6/lib/python/site-packages Requirement already satisfied: setuptools>=17.1 in /usr/local/lib/python3.6/site-packages (from pew) Requirement already satisfied: virtualenv-clone>=0.2.5 in /usr/local/lib/python3.6/site-packages (from pew) Requirement already satisfied: virtualenv>=1.11 in /usr/local/lib/python3.6/site-packages (from pew)

I have tried a host of solutions but I haven’t been able to get it to work. I did not want to follow this solution as it seems unsafe.

Any help is appreciated. 😀

1reaction
uranusjrcommented, Feb 17, 2018

This is indeed a PATH issue then. You need to also add the Scripts directory (the one at the same location as python.exe) to your PATH. Commands such as pew and pip are installed there by default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "No command 'pew' found" every time I open the ...
Try it with echo $PATH . This is a list of all the paths where the system finds an executable. So that when...
Read more >
The Path Not Taken - Pew Research Center
A nationwide survey of Hispanic immigrants by the Pew Hispanic Center finds that more than nine-in-ten (93%) who have not yet naturalized ...
Read more >
Home Financing | The Pew Charitable Trusts
Pew studies the alternative financial arrangements that people use to buy lower-cost homes and examines the barriers that lenders face to offering small ......
Read more >
Virtual environments — Python Workshops 0.1.0 documentation
Pipenv and pew does not have the activate file so you need to configure your shell prompt to get similar as with venv....
Read more >
Do findings of two new polls show the path where America is ...
The other poll, released June 17, found that 81% of Americans believe in God. ... "Pew Research Center does not comment on research...
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