$ pipenv --two
Error %s while executing command %s [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz' /usr/local/bin/pythonz -c import sys; print(sys.version.split()[0])
['Traceback (most recent call last):\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/contextmanagers.py", line 148, in spinner\n yield _spinner\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 309, in run\n start_text=start_text\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 157, in _create_subprocess\n combine_stderr=combine_stderr)\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 132, in _spawn_subprocess\n return subprocess.Popen(cmd, **options)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in __init__\n restore_signals, start_new_session)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1344, in _execute_child\n raise child_exception_type(errno_num, err_msg, err_filename)\n', "FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz'\n"]
Error %s while executing command %s [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz' /usr/local/bin/pythonz -c import sys; print(sys.version.split()[0])
['Traceback (most recent call last):\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/contextmanagers.py", line 148, in spinner\n yield _spinner\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 309, in run\n start_text=start_text\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 157, in _create_subprocess\n combine_stderr=combine_stderr)\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 132, in _spawn_subprocess\n return subprocess.Popen(cmd, **options)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in __init__\n restore_signals, start_new_session)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1344, in _execute_child\n raise child_exception_type(errno_num, err_msg, err_filename)\n', "FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz'\n"]
Aucune journalisation des erreurs attendue lors de la création d'un virtualenv
La création de virtualenv semble avoir fonctionné, mais des erreurs inattendues ont été émises.
pipenv --two
pour créer un virtualenv Python 2.7$ pipenv --support
Version Pipenv: '2018.11.14'
Emplacement Pipenv: '/usr/local/lib/python3.6/site-packages/pipenv'
Emplacement Python: '/usr/local/opt/python/bin/python3.6'
Installations Python trouvées:
Erreur% s lors de l'exécution de la commande% s [Errno 2] Aucun fichier ou répertoire de ce type: '/ usr / local / bin / pythonz': '/ usr / local / bin / pythonz' / usr / local / bin / pythonz -c import sys; impression (sys.version.split () [0])
['Traceback (dernier appel le plus récent): \ n', 'File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/contextmanagers.py", ligne 148, dans le spinner \ n yield _spinner \ n ',' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", ligne 309, en cours d'exécution \ n start_text = start_text \ n ',' Fichier "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", ligne 157, dans _create_subprocess \ n combine_stderr = combine_stderr) \ n ',' File "/ usr / local /lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py ", ligne 132, dans _spawn_subprocess \ n return subprocess.Popen (cmd, * options) \ n ',' File" / usr / local /Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py ", ligne 709, dans __init __ \ n restore_signals, start_new_session) \ n ',' File" / usr /local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py ", ligne 1344, dans _execute_child \ n lever child_exception_type (errno_num, err_msg, err_filename) \ n ', "FileNotFoundError:
impression (sys.version.split () [0])['Traceback (dernier appel le plus récent): \ n', 'File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/contextmanagers.py", ligne 148, dans le spinner \ n yield _spinner \ n ',' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", ligne 309, en cours d'exécution \ n start_text = start_text \ n ',' Fichier "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", ligne 157, dans _create_subprocess \ n combine_stderr = combine_stderr) \ n ',' File "/ usr / local /lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py ", ligne 132, dans _spawn_subprocess \ n return subprocess.Popen (cmd, * options) \ n ',' File" / usr / local /Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py ", ligne 709, dans __init __ \ n restore_signals, start_new_session) \ n ',' File" / usr \ n ', "FileNotFoundError: [Errno 2] Aucun fichier ou répertoire de ce type: '/ usr / local / bin / pythonz': '/ usr / local / bin / pythonz' \ n "]
3.6.5
: /usr/local/bin/python3
3.6.5
: /usr/local/bin/python3.6m
2.7.15
: /usr/local/bin/python
2.7.15
: /usr/local/bin/pythonw
2.7.10
: /usr/bin/python
2.7.10
: /usr/bin/pythonw
2.7.10
: /usr/bin/python2.7
Informations PEP 508:
{'implementation_name': 'cpython',
'implementation_version': '3.6.5',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '17.7.0',
'platform_system': 'Darwin',
'platform_version': 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT '
'2018; root:xnu-4570.71.2~1/RELEASE_X86_64',
'python_full_version': '3.6.5',
'python_version': '3.6',
'sys_platform': 'darwin'}
Variables d'environnement système:
LC_ALL
PYENV_VIRTUALENV_DISABLE_PROMPT
LANG
XPC_FLAGS
HISTCONTROL
LESS
DISPLAY
TERM_SESSION_ID
EDITOR
__CF_USER_TEXT_ENCODING
GIT_EDITOR
SSH_AUTH_SOCK
USER
PAGER
LSCOLORS
ROOT
RBENV_SHELL
SSH_CLIENT_USER
PWD
MANPAGER
HOME
TERM_PROGRAM
TERM_PROGRAM_VERSION
Apple_PubSub_Socket_Render
SVN_EDITOR
TMPDIR
PIPENV_NOSPIN
XPC_SERVICE_NAME
TERM
SHELL
TNS_ADMIN
VAULT_ADDR
PYTHONDONTWRITEBYTECODE
SHLVL
MANPATH
LOGNAME
PATH
PIPENV_HIDE_EMOJIS
GCCDIR
HOMEBREW_GITHUB_API_TOKEN
_
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Variables d'environnement spécifiques à Pipenv:
PIPENV_NOSPIN
: 1
PIPENV_HIDE_EMOJIS
: 1
Variables d'environnement spécifiques au débogage:
PATH
: /usr/sbin:/usr/local/bin:/usr/local/sbin:/Users/callen/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/opt/X11/bin
SHELL
: /bin/bash
EDITOR
: /usr/local/bin/mate -w
LANG
: en_US.UTF-8
PWD
: /Users/callen/testapp
Contenu de Pipfile
('/ Users / callen / testapp / Pipfile'):
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
[requires]
python_version = "2.7"
Salut @commandtab ,
Nous avons fait une vérification rapide et ce problème ressemble beaucoup à
Cela pourrait être une coïncidence, mais si l'un de ces problèmes résout votre problème, j'ai fait du bon travail: sourire:
Sinon, les responsables de la maintenance aborderont ce problème sous peu.
À votre santé,
Votre quartier convivial ProBot
J'ai pu contourner ce problème en spécifiant le chemin vers l'exécutable Python, c'est-à-dire
$ pipenv install --dev --python `which python3.6`
Il semble que cela soit corrigé dans pythonfinder v1.1.9 , mais Pipenv vend actuellement la version 1.0.2
Commentaire le plus utile
J'ai pu contourner ce problème en spécifiant le chemin vers l'exécutable Python, c'est-à-dire