You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to update from Python 3.11 to 3.12. Created a new pipenv environment using a new pyenv version installation.
Python 3.12.9
pip 24.3.1
pipenv 2024.4.1
Trying to run pipenv lock results in an error of "metadata generation failed".
Trying to run pipenv run pip install pipenv (or any other package) results in:
Traceback (most recent call last):
File "/.../bin/pip", line 5, in <module>
from pip._internal.cli.main import main
File "/.../lib/python3.12/site-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/.../lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/.../lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/.../lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 19, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'
Running import distutils within the interactive interpreter results in the same error within the virtual environment, but works as expected after exiting the virtual environment.
The text was updated successfully, but these errors were encountered:
It seems this is somehow related to having access-parser = "*" in the Pipfile. This library is currently at version 0.0.6; I don't know if <1.0 is messing with the calculation, but adding --pre doesn't change anything. Removing that requirement from the Pipfile allows pipenv lock to work, but not pipenv run pip install pipenv.
Possibly related:
pipenv install
errors out withModuleNotFoundError: No module named 'distutils.cmd'
even though it is present on the system #5674Trying to update from Python 3.11 to 3.12. Created a new pipenv environment using a new pyenv version installation.
Python 3.12.9
pip 24.3.1
pipenv 2024.4.1
Trying to run
pipenv lock
results in an error of "metadata generation failed".Trying to run
pipenv run pip install pipenv
(or any other package) results in:Running
import distutils
within the interactive interpreter results in the same error within the virtual environment, but works as expected after exiting the virtual environment.The text was updated successfully, but these errors were encountered: