pip offline installation package through whl file

(Author: Chen Yuju data-master )
In the offline environment, we have no way to install the package directly through pip install. At this time, we need to install the python package through the offline file.
Most python packages can be found at this URL:

https://pypi.org/

If not, you can generally find open source project code on github.
insert image description here
Enter the package you want, find the corresponding version,
insert image description here
select download files
insert image description here
to find the whl file of the corresponding version of your python, note that not only py2 and py3, but also py27 or py37.
After downloading whl, install it via pip.

pip install folder:xxx.whl

folder is the path where the whl file is stored

During the installation process, the following error may appear:
toad is not a supported wheel on this platform

The reason for this error is the version problem. The problem I encountered at the time was that the python environment was 3.7, and my toad was 3.6, which caused the installation to fail. At this time, re-download the corresponding version of the package and install it again. Remember to uninstall the previous failed installation first. pip uninstall toad, then install again.

Reference link:

https://blog.csdn.net/xiuxiuen_michelle/article/details/81080694

Guess you like

Origin blog.csdn.net/weixin_39750084/article/details/106459875
Recommended