I use Windows 11 and Python 3.12.5 64-bit, installed from
https://www.python.org/downloads/
/>
I'm trying to install requirements from some repo, but this fails:
PS C:\Data\Repos\myrepo> pip install -r .\requirements.txt
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\jonathanb\AppData\Local\Programs\Python\Python312\Scripts\pip.exe\__main__.py", line 4, in
File "C:\Users\jonathanb\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\main.py", line 10, in
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\jonathanb\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\autocompletion.py", line 9, in
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\jonathanb\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in
from pip._internal.cli import cmdoptions
File "C:\Users\jonathanb\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\cmdoptions.py", line 18, in
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'
From several questions on this site (best one) I understand distutils was removed in Python 3.12, and if I want to use them I should run pip install setuptools. I tried that, and it failed the same way.
So question: How can I use pip to restore requirements?
pip install itself fails with "No module named 'distutils'"
Programing Coderfunda
September 10, 2024
No comments
Related Posts:
Why does emptyArray.every() return true in Javascript?Why emptyArray.every() returns true? It doesn´t make sense to me because there is no element which you can apply the callBackFunction on? Example: l… Read More
Prezet: Markdown Blogging for Laravelsubmitted by /u/amalinovic [link] [comments]… Read More
Let's build a Twitter clone with Livewire 3 & Laravel Reverb | 7 - Displaying Retweetssubmitted by /u/Tilly-w-e [link] [comments]… Read More
Python Web scraping [D:websockets.client] > GET %s HTTP/1.1 [D:websockets.client] > %s: %s doesn't show all the resultsI'm trying to make web scraping with Python 3.10, and the library requests-HTML 0.10.0. I attach the code: from requests_html import HTMLSession ur… Read More
winrt::hresult_class_not_registered - AudioEffectDefinition with custom effectI'm trying to create a winrt custom audio effect using this tutorial. #include "MyAudioEffect.g.h" auto effectName = winrt::name_of(); auto effect = … Read More
0 comments:
Post a Comment
Thanks