-
-
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
using conda python to create pipenv adds both python_version and python_full_version to pipfile #5395
Comments
If a full_python_version is specified when the project is installed it will be added in the [requires] section of the Pipfile in addition to the python_version. But this is just a recently added feature. |
@jerempy can you please submit this patch upstream in Plette? IMHO the rule should be oneof, but I am not familiar with |
when you have a moment @oz123 : sarugaku/plette#31 |
Thanks for the quick response! I made a comment there. |
FYI: We're seeing the same issue with vanilla (i.e not conda) Python. 2022.9.24 works fine. |
Thanks @stewartmiles -- I just pushed the buttons -- new release is building now. |
Hello,
If I use a miniconda environment's python for creating a pipenv environment, it adds BOTH, a python_version and python_full_version (e.g. 3.9 and 3.9.13) to the pipfile, and that throws an error.
System details:
I am using Ubuntu 22.04 via WSL.
System python is: 3.10.6
Pip version is: 22.2.2
Pipenv installed via pip (outside of any environment): 2022.10.9
Conda version is: 22.9.0
All are the latest right now
Steps to reproduce the error:
(mlzoomcamp is a conda environment with python 3.9.13 (but I also used a conda env with python 3.10 and the same issue persisted))
It installs numpy correctly, but then throws this error:
The pipenv file at this time looks like this:
I looked at the pipfile before the install command, and it has already added the 2 versions as soon as the environment was created.
I did find a fix, to manually remove the python_version line from pipfile.
Also, if I use the system python to create an environment, this issue doesn't happen, so this is most likely a conda issue. Do I have to manually remove the python_version each time from the pipfile?
The text was updated successfully, but these errors were encountered: