Error when installing offline whl

Asked 2 years ago, Updated 2 years ago, 58 views

I'm trying to install a package on a PC that doesn't have an Internet connection like the title. Of course, pip install xxx on PCs with Internet access.You can do it like this. Master, please make a move.

python pip

2022-09-20 20:12

2 Answers

I don't have the click package needed for flask, so it's an error.

Python packages have dependencies, so you can copy and install them together.

pip download flask

If you do, you will probably receive flask and dependent package whl together. You can copy it all, take it, and install it.

Copy all installation files to an empty directory,

pip install *

Try it.

If there is an error, you can install it upside down one by one.

pip install click 

You can install it first.


2022-09-20 20:12

I solved it. As you said, pip install* had an error and installed each one. SSL authentication error occurred during additional pip download command. Resolved with the --trusted-host pypi.org option. Thanks once again.


2022-09-20 20:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.