-
-
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
pipenv install --deploy --system creates virtualenv and then fails #4344
Comments
This error occurs with versions |
What is the output of |
This is a minimal amazon ami image so it's likely that the python package is present (which installs python2) but python-pip is not. I explicitly install python3-pip because of this split. |
With the python:3.8 docker hub image, pipenv 2020.6.2, and
|
the issue is fixed on master by pr #4319 , however, the fix hasn't been released yet. atm the way I'm by passing it is by doing the following
This takes the master commit with the fix, but not all of the subsequent changes |
Release v2020.8.13 Awesome !! |
Thank you all for testing! |
Issue description
I want to create an AMI to run some python code.
I do not want a virtualenv as the entire AMI is just to run this code.
I do not want to check the dependencies in any way, they were checked during development.
So I run the following script:
The
Pipfile
andPipfile.lock
have already been copied over.It fails to install the dependencies with the following message:
If I change
--deploy
to--ignore-pipfile
the same error occurs.I can't use
--ignore-outdated
as that triggers a separate error:Expected result
I don't want a virtualenv.
The system python works, just install the dependencies.
The system pip works as that is how I installed pipenv.
What combination of flags achieves this?
Actual result
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
$ pipenv --support
Pipenv version:
'2020.6.2'
Pipenv location:
'/usr/local/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/bin/python3'
Python installations found:
3.7.6
:/bin/python3
3.7.6
:/bin/python3.7
3.7.6
:/bin/python3.7m
3.7.6
:/usr/bin/python3
3.7.6
:/usr/bin/python3.7
3.7.6
:/usr/bin/python3.7m
2.7.18
:/bin/python2
2.7.18
:/bin/python2.7
2.7.18
:/usr/bin/python2
2.7.18
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
MAIL
LANG
PATH
LOGNAME
USER
USERNAME
HOME
SHELL
TERM
SUDO_COMMAND
SUDO_USER
SUDO_UID
SUDO_GID
XDG_SESSION_ID
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/sbin:/bin:/usr/sbin:/usr/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
Contents of
Pipfile
('/home/ec2-user/Pipfile'):Contents of
Pipfile.lock
('/home/ec2-user/Pipfile.lock'):The text was updated successfully, but these errors were encountered: