-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add pyenv-win support #4525
Comments
Is pyenv-win on your path? |
@Mause |
pyenv-win is not supported; the main issue being it using a BAT script as a command, and is only executable directly in the command prompt, not as a separate process (i.e. the |
@uranusjr All right thx. I'll just install the correct python version before making the virtual environment for now |
Hey, I've been having similar issues. Mine seem to be related to how pipenv detects currently installed Python versions, I am using pyenv-win as well, but I have already installed the version required. From looking into the code it looks like pipenv expects a registry entry for each installed Python version which pyenv has not created. Do you think this is a pyenv issue? Or should pipenv be looking at
With Pipfile
Running
|
@MrShiny608 I think you need to set the local python version to 3.8.2 using pyenv before running pipenv. So you want pyenv global=3.7.7, local=3.8.2, then run pipenv which will now use the local 3.8.2. From what I can tell Pipenv with pyenv-win doesn't have any knowledge of what is installed and will only see the currently active python. So with 3.7.7 activated Pipenv thinks you only have that installed. Though the documentation is pretty lacking. My output from
The interesting bit compared to your output is it using Also ensure that |
I just ran into this too, and I think I was able to make some minor progress with it. Just to document this:
This looks much like #3551 (but I've not tired to look into yet).
Note:
|
I have been trying to work on a fix for myself mainly. Sadly I don't seem to find enough time to finish it at the moment. https://github.com/deify/pipenv/tree/pyenv-win-support The main bugs I had were fixed and as for now I am able to use it for my use-cases. There is no sufficient test implemented yet. Also for me I had to remove a file from the existing pyenv-win install. Maybe some1 is able to fix it properly or give me a hint on how to continue and I will have a look as soon as I find some time. I am using the following versions:
|
I'm no expert on this, but it looks like there are ways to use CreateProcess to run batch files, by calling See: https://stackoverflow.com/a/25919674/538403 Maybe that will make it simpler? |
I tried making a virtual environment with:
pipenv --python 3.8.6
It asked me this:
in which I said yes, but it threw me these errors:
Pipenv Version:
2020.11.4
Pyenv-Win Version:
2.64.3
Python Version:
3.9.0
The text was updated successfully, but these errors were encountered: