-
-
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
Allowing multiple python versions #2683
Comments
Hi, this has been proposed multiple times (the most informational thread is #1050, I believe), and the resolution is to refrain from doing it, since Pipenv wants to focus on the application aspect of Python development. In an application context, and it is wildly considered best practice to support only one Python minor version in a Python application. Note that the |
Thanks for your answer |
@uranusjr Are you sure that this is really only a warning, and not an error? I'm seeing pipenv exit with a non-zero exit code (1 in my case) and only printing this message. Should I file a bug? |
Use
|
This would be very useful considering python is making breaking changes that are not backward compatible. Specifying multiple versions allows projects to be installed by users without the extra headache. It's a win for all parties. |
Hi,
I'd like to allow multiple python versions on a project.
Is your feature request related to a problem? Please describe.
In the current case, my production environments are in 3.7 (docker image
python:slim-stretch
) while python 3.7 is not yet available in my dev environments (archlinux).But I'm pretty sure that my project will work equally on 3.6 and 3.7, and would like to avoid installing and using another interpreter.
Also, I am using features like f-strings which are not available in 3.5, so I can't specify
python_version ="3"
, because on other dev environments like xenial, one must install an interpreter >=3.6.Describe the solution you'd like
Allowing a version string in
Pipfile
, like:Describe alternatives you've considered
We could also allow a list, like
python_version = "3.6,3.7"
.$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/bin/python'
Other Python installations in
PATH
:2.7
:/usr/bin/python2.7
2.7
:/usr/bin/python2.7
3.5
:/usr/bin/python3.5m
3.5
:/usr/bin/python3.5
3.7
:/usr/local/bin/python3.7m
3.7
:/usr/local/bin/python3.7
3.7
:/usr/local/bin/python3.7
3.7.0
:/usr/local/bin/python
3.7.0
:/usr/local/bin/python
2.7.13
:/usr/bin/python
2.7.13
:/usr/bin/python2
3.7.0
:/usr/local/bin/python3
3.7.0
:/usr/local/bin/python3
3.5.3
:/usr/bin/python3
PEP 508 Information:
System environment variables:
EMAIL_USE_SSL
LANG
HOSTNAME
EMAIL_USE_TLS
GPG_KEY
EMAIL_USER
SECRET_KEY
PWD
HOME
DOMAIN_NAME
MEMCACHED
TERM
EMAIL_FQDN
ALLOWED_HOST
PYTHON_VERSION
POSTGRES_PASSWORD
EMAIL_HOST
SHLVL
DB
ADMIN_MAIL
PATH
PYTHON_PIP_VERSION
EMAIL_HOST_PASSWORD
_
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG
:C.UTF-8
PWD
:/app
Contents of
Pipfile
('/app/Pipfile'):Contents of
Pipfile.lock
('/app/Pipfile.lock'):The text was updated successfully, but these errors were encountered: