Работа над книгой "Django для начинающих". Успешно завершено 3 проекта. Начиная с главы 4. Забыл выйти из pipenv из предыдущего проекта. Создан новый каталог, выдан «pipenv install django == 2.2.5», что привело к следующему:
PS C:\users\phil\desktop\django\blog> pipenv install django==2.2.5
Creating a virtualenv for this project…
Pipfile: C:\Users\Phil\Desktop\django\Pipfile
Using c:\users\phil\appdata\local\programs\python\python38\python.exe (3.8.2) to create virtualenv…
[= ] Creating virtual environment...Already using interpreter c:\users\phil\appdata\local\programs\python\python38\python.exe
Using base prefix 'c:\\users\\phil\\appdata\\local\\programs\\python\\python38'
New python executable in C:\Users\Phil\.virtualenvs\django-nLBe_sZT\Scripts\python.exe
Command C:\Users\Phil\.virtu...T\Scripts\python.exe -m pip config list had error code 1
Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\pipenv\cli\command.py", line 235, in install
[pipenv.exceptions.VirtualenvCreationException]: retcode = do_install(
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\pipenv\core.py", line 1734, in do_install
[pipenv.exceptions.VirtualenvCreationException]: ensure_project(
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\pipenv\core.py", line 570, in ensure_project
[pipenv.exceptions.VirtualenvCreationException]: ensure_virtualenv(
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\pipenv\core.py", line 505, in ensure_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: do_create_virtualenv(
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\pipenv\core.py", line 934, in do_create_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: raise exceptions.VirtualenvCreationException(
[pipenv.exceptions.VirtualenvCreationException]: Traceback (most recent call last):
File "c:\users\phil\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\phil\appdata\local\programs\python\python38\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\virtualenv.py", line 2628, in <module>
main()
File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\virtualenv.py", line 860, in main
create_environment(
File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\virtualenv.py", line 1173, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\virtualenv.py", line 1019, in install_wheel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\virtualenv.py", line 1046, in _install_wheel_with_search_dir
config = _pip_config(py_executable, python_path)
File "c:\users\phil\appdata\local\programs\python\python38\lib\site-packages\virtualenv.py", line 1128, in _pip_config
config[key] = ast.literal_eval(value)
File "c:\users\phil\appdata\local\programs\python\python38\lib\ast.py", line 59, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "c:\users\phil\appdata\local\programs\python\python38\lib\ast.py", line 47, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 1
_bootstrap_external._w_long
^
IndentationError: unexpected indent
Failed to create virtual environment.
Использование: Windows 7 VSCode