-
-
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 shell" doesn't work for Python2 #2514
Comments
Thanks for the report and sorry for the frustration. We do strongly recommend installing pipenv with python 3 which would provide a short term solution until next release |
No frustration at all. thank you for the prompt response! |
Here is a workaround I use on Windows. Put this in a batch file, say
Running Doing the same on Linux left as an exercice for the reader. |
What worked for me on Windows with Python 3.4 was to downgrade pipenv (for now). |
Issue description
Running "pipenv shell" for a Python 2.7 project fails.
Using:
Seems like "subprocess.run()" has been introduced in shells.py ( in #2371 ), while this api was introduced only from Python 3.
Expected result
A cmd shell with virtual environment active should be spawned.
Actual result
Steps to replicate
$ pipenv install
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'c:\\program files\\python27\\lib\\site-packages\\pipenv'
Python location:
'c:\\program files\\python27\\python.exe'
Other Python installations in
PATH
:2.7
:C:\Program Files\Python27\python.exe
2.7.15
:C:\Program Files\Python27\python.exe
PEP 508 Information:
System environment variables:
TMP
COMPUTERNAME
VS110COMNTOOLS
USERDOMAIN
PSMODULEPATH
COMMANDER_PATH
IWBPATH
COMMONPROGRAMFILES
PROCESSOR_IDENTIFIER
WECSDK
PROGRAMFILES
PROCESSOR_REVISION
PATH
SYSTEMROOT
PROGRAMFILES(X86)
COMSPEC
TEMP
COMMONPROGRAMFILES(X86)
PROCESSOR_ARCHITECTURE
PIPENV_VENV_IN_PROJECT
ALLUSERSPROFILE
LOCALAPPDATA
HOMEPATH
USERDOMAIN_ROAMINGPROFILE
VS120COMNTOOLS
PROGRAMW6432
USERNAME
LOGONSERVER
PROMPT
SESSIONNAME
PROGRAMDATA
SAP_IPV6_ACTIVE
COMMANDER_DRIVE
COMMANDER_EXE
USERDNSDOMAIN
PYTHONDONTWRITEBYTECODE
UATDATA
PATHEXT
PIP_PYTHON_PATH
CGROAMINGPATH
WINDIR
APPDATA
HOMEDRIVE
COMMANDER_INI
SYSTEMDRIVE
CANOE_INSTALLDIR
PUBLIC
NUMBER_OF_PROCESSORS
CANOE_INSTALLDIR64
PROCESSOR_LEVEL
PYTHON_HOME
COMMONPROGRAMW6432
OS
SNC_LIB
USERPROFILE
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:1
Debug–specific environment variables:
PATH
:C:\Program Files\Python27\;C:\Program Files\Python27\\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Micro Focus\StarTeam SDK 16.0\lib;C:\Program Files\Micro Focus\StarTeam SDK 16.0\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Git\cmd;C:\Users\xmnalepa\AppData\Local\Microsoft\WindowsApps;d:\Apps\Sysinternals Suite\;
Contents of
Pipfile
('D:\work\scripts\shell_issue\Pipfile'):Contents of
Pipfile.lock
('D:\work\scripts\shell_issue\Pipfile.lock'):The text was updated successfully, but these errors were encountered: