-
-
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
Failed to create virtual environment with ver 2022.11.11 #5477
Comments
@wyslmt Can you try to to uninstall your virtualenv version (if it was apt, use apt to uninstall it) and then install virtualenv from pypi with |
apt virtualenv is not installed
and i've reinstall the virtualenv
and the result is the same as above |
Ok interesting, thanks for checking. |
Does it help if you |
It seems to have no effec |
Ok, I think I know a way to improve this case for pipenv. What flavor of linux is this by the way @wyslmt ? |
I've opened a PR @wyslmt but I don't have a great way to test it myself -- are you able to help verify the branch above is solving your issue? |
The issue is caused on debian und Ubuntu which split puthon3-venv outside of python. Installing it should solve it. |
Well I know for a fact in Ubuntu we have venv combined with Python. |
Sorry for the late reply. Would you like me to test that branch? Is there a tutorial to test branch? |
It's now in the main branch but unreleased. You can pip install a git branch, from my phone right now. |
I have installed pipenv from main branch, but the version is 2022.11.1.dev0. Did I miss something?
|
That is correct @wyslmt -- the dev tag was not updated from the last publish to pypi due to a conflict on main, but that looks like you installed the latest main trunk correctly. |
So the fix should be included in the version which I install?
|
@wyslmt so the fix tries to import venv, if its available it uses |
puthon3-venv is not installed. Is it necessary? |
Are you using EC2 linux? Which distro is it? Please post |
@wyslmt It is necessary on older versions of Ubuntu. |
It's a personal computer. Ubuntu 20.04 installed by myself. ❯ cat /etc/os-release |
I think the problem is that your default python is 2.7.18 which installed the binary python. Which is then matched as the first python that pythonfinder (which is used by pipenv) . This python does not have a venv in the STL. /home/admin/.pyenv/versions/2.7.18/bin/pip install virtualenv And then try: pipenv --python /home/admin/.pyenv/versions/2.7.18/bin/python --creator virtualenv. |
I thought we changed pythonfinder to look for python3 first. |
I thought so too, but it seems it's doing weird stuff sorting alphabetically: |
Issue description
failed to create virtual environment with pipenv-2022.11.11, but success with pipenv-2020.11.15
Expected result
pipenv-2020.11.15 rsult:
Actual result
pipenv-2022.11.11 rsult:
pipenv --support result
❯ pipenv --support
$ pipenv --support
Pipenv version:
'2022.11.11'
Pipenv location:
'/home/admin/.pyenv/versions/3.7.7/lib/python3.7/site-packages/pipenv'
Python location:
'/home/admin/.pyenv/versions/3.7.7/bin/python'
OS Name:
'posix'
User pip version:
'22.3'
user Python installations found:
3.8.10
:/usr/bin/python
3.8.10
:/usr/bin/python3
3.8.10
:/usr/bin/python3.8
3.8.3
:/home/admin/.pyenv/versions/3.8.3/bin/python
3.7.7
:/home/admin/.pyenv/versions/3.7.7/bin/python
3.7.7
:/home/admin/.pyenv/versions/3.7.7/bin/python3
3.7.7
:/home/admin/.pyenv/versions/3.7.7/bin/python3.7
3.7.7
:/home/admin/.pyenv/versions/3.7.7/bin/python3.7m
3.7.7
:/home/admin/.pyenv/versions/3.7.7/bin/python
3.7.4
:/home/admin/.pyenv/versions/3.7.4/bin/python
3.6.9
:/home/admin/.pyenv/versions/3.6.9/bin/python
3.6.9
:/usr/bin/python3.6m
3.6.9
:/usr/bin/python3.6
2.7.18
:/home/admin/.pyenv/versions/2.7.18/bin/python2
2.7.16
:/home/admin/.pyenv/versions/2.7.16/bin/python2
PEP 508 Information:
System environment variables:
SHELL
LSCOLORS
PYENV_HOOK_PATH
PIPENV_VENV_IN_PROJECT
PYENV_SHELL
LESS
NVM_INC
_P9K_TTY
LC_ADDRESS
LC_NAME
P9K_TTY
LC_MONETARY
PYENV_VERSION
PWD
PYENV_VIRTUALENV_INIT
LOGNAME
XDG_SESSION_TYPE
MOTD_SHOWN
HOME
AUTOJUMP_ERROR_PATH
LC_PAPER
LANG
LS_COLORS
SSH_CONNECTION
PYENV_DIR
NVM_DIR
XDG_SESSION_CLASS
LC_IDENTIFICATION
TERM
ZSH
USER
AUTOJUMP_SOURCED
SHLVL
NVM_CD_FLAGS
PAGER
LC_TELEPHONE
LC_MEASUREMENT
XDG_SESSION_ID
XDG_RUNTIME_DIR
SSH_CLIENT
PYENV_ROOT
LC_TIME
P9K_SSH
PATH
DBUS_SESSION_BUS_ADDRESS
NVM_BIN
SSH_TTY
LC_NUMERIC
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:1
Debug–specific environment variables:
PATH
:/home/admin/.pyenv/versions/3.7.7/bin:/home/admin/.pyenv/libexec:/home/admin/.pyenv/plugins/python-build/bin:/home/admin/.pyenv/plugins/pyenv-virtualenv/bin:/home/admin/.pyenv/plugins/pyenv-update/bin:/home/admin/.pyenv/plugins/pyenv-installer/bin:/home/admin/.pyenv/plugins/pyenv-doctor/bin:/home/admin/.autojump/bin:/home/admin/.nvm/versions/node/v12.18.3/bin:/home/admin/.config/yarn/global/node_modules/.bin:/home/admin/Android/Sdk/platform-tools:/home/admin/.pyenv/plugins/pyenv-virtualenv/shims:/home/admin/.pyenv/shims:/home/admin/.pyenv/bin:/home/admin/.autojump/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SHELL
:/bin/zsh
LANG
:en_US.UTF-8
PWD
:/var/www/html/ai_algorithm
The text was updated successfully, but these errors were encountered: