-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
pew which is in $PATH is not found #913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Installing pew and pipenv via pipsi didn't help either. Another note: I had pipenv working in September. That was with an older Python (3.4.2). But somehow it vanished and is also no longer in that version ;-) Sadly it's now no longer installable. |
I completely removed python 3.5.4 and installed 3.6.2. The first things I did (differently) this time was |
Sorry you encountered this issue. Typically in order to provide insight it would require more context. You referenced your path, but we would need to see it. In all likelihood the issue is that the subshell that pipenv is spawning is not provided with the environment information to access pew. The code in question is literally just, essentially, |
Also pew is the backup "fancy" install method. Do you have the env variable set to always do fancy installs with pipenv? |
I have the same problem I ran into this problem while I was following this guide and when running
and the error is this
My
My
and when I run
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. 😀 |
@anubhavdeka can you provide more info, like the output of |
@anubhavdeka you need to have the pyenv shims directory ahead of /usr/local/bin on your path and you need to set the environment variable as described. Your path is pretty misconfigured too, you have the same paths appearing like 4 times each. You will also probably want |
Also as I was just reminded you will want to make sure to configure your locale correctly with these environment variables: LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8 |
@techalchemy thank you! I noticed that as well. Here's the info you asked! For
and for
I think most of my problems are with the
I am going to remove the duplicate entries and try again. Hope the information you asked for helps! 😀 |
Yes I added the |
Thanks for using pipenv @anubhavdeka |
what if I'm on windows? what is the course of action? setting up these variables does not work. |
@ninrod then I suspect it would just mean that you need pew to be on your path, which means that the path where python libraries are installed needs to be on your path |
@techalchemy, very interesting. I'll try that. Also, I cannot run pipenv directly on my path. I have to go through python: |
@ninrod What platform are you on , and how did you install Pipenv? You may need to add additional PATH configuration under certain circumstances. |
@uranusjr I'm on windows 10, sadly. I just downloaded the instaler from python.org and put the python/bin folder in my path. Now I'm able to use python through window cmd shell. But pip is not on my path. To use pip I have to issue |
This is indeed a PATH issue then. You need to also add the |
yes! that was it. now everything is working lovely. in my case, I had to add the |
@ninrod how did you add the path to the global path? |
in windows, you just open my computer, right click, properties and then you have an entry where you can add environment variables. |
FYI, changing "~/.local/bin/" to "$HOME/.local/bin" in my .bash_aliases fixed the issue. |
For me on ubuntu there's a warning about pew not being in the path, while it certainly is.
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.
The text was updated successfully, but these errors were encountered: