-
-
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 installs into python installation and not virtualenv #3261
Comments
Hey @m-stolle, We did a quick check and this issue looks very darn similar to
This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄 If not, the maintainers will get to this issue shortly. Cheers, |
I believe this is fixed on the master branch — @frostming is this covered by your change to environment targets? |
Also can you provide the text of the command you executed and the content of your |
Sure, Pipefile
Command: |
I guess this line can explain the issue.
@m-stolle pip will install site packages to PYTHONHOME. You should unset it and Python interpreter will still be working well. |
I compared the behavior with virtualenv. @techalchemy When PYTHONHOME is set, using |
I'm not totally certain whats best here, my initial instinct was yeah to just unset it the way we do with |
- Fixes #3261 Signed-off-by: Dan Ryan <dan@danryan.co>
I use this code to install pipenv |
Issue description
pipenv install
installs packages like pytest into PYTHONHOME Location and not the virtualenvExpected result
pytest is installed into virtualenv and pipenv run pytest works.
Actual result
Installing collected packages: pytest The scripts py.test.exe and pytest.exe are installed in 'D:\Python36\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed pytest-4.0.0.
pipenv run pytest
results in command pytest not foundSteps to replicate
$ pipenv --support
Pipenv version:
'2018.11.14'
Pipenv location:
'd:\\python36\\lib\\site-packages\\pipenv'
Python location:
'd:\\python36\\python.exe'
Python installations found:
3.6.7
:D:\Python36\python.exe
3.6.6
:D:\Python36-64\python.exe
PEP 508 Information:
System environment variables:
ALLUSERSPROFILE
APPDATA
CGROAMINGPATH
CLIENTNAME
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
DAS_HOME
DSPACE_RTT_TOOLS_2
FP_NO_HOST_CHECK
GOPATH
GOROOT
HOMEDRIVE
HOMEPATH
HTTPS_PROXY
LM_LICENSE_FILE
LOCALAPPDATA
LOGONSERVER
LSFORCEHOST
LSHOST
NUMBER_OF_PROCESSORS
OPENSSL_CONF
OS
PATH
PATHEXT
PLMVIS_82_LIBPATH
PROCESSOR_ARCHITECTURE
PROCESSOR_ARCHITEW6432
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PROMPT
PSMODULEPATH
PUBLIC
RTARCH
RTHOME
SECSPECIALMODE
SESSIONNAME
SILVER_HOME
SIL_USER_TYPE
SYSTEMDRIVE
SYSTEMROOT
TEMP
TERM
TMP
TSK_OPTIONS_FILE_SW160800V6_2R1
UATDATA
USERDNSDOMAIN
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
VS100COMNTOOLS
VS120COMNTOOLS
VS140COMNTOOLS
VS90COMNTOOLS
WINDIR
WINDOWS_TRACING_FLAGS
WINDOWS_TRACING_LOGFILE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
PYTHONHOME
Pipenv specific environment variables:
Debug specific environment variables:
PATH
:C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%PYTHONHOME%;%PYTHONHOME%\Scripts;D:\Sprachen\Perl\perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft 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\;l
The text was updated successfully, but these errors were encountered: