packaging-problems icon indicating copy to clipboard operation
packaging-problems copied to clipboard

When installing the Flask package, the build dependency check says that flit_core < 4 cannot be found. Please help me how to fix it.

Open ajk0822 opened this issue 1 year ago • 1 comments

OS version

Windows 10

Python version

latest version.

Pip version

24.0

Guide link

No response

Problem description

in local pc, I ran a command 'pip install flask-3.0.2.targz'. I am trying to download the package and install it locally.

Error message

No response

ajk0822 avatar Mar 01 '24 03:03 ajk0822

A .tar.gz is a source distribution. To install that, pip needs to build it first, and to build it, it needs a build backend, so it goes downloading the build backend (Flit) on PyPI, which is not possible if the machine doesn't have network access. Try the wheel (.whl) file instead. However, Flask has a number of dependencies that you will need too.

jeanas avatar Mar 02 '24 08:03 jeanas