In cmd command, pip install
The whl file of pytorch_lighting can be downloaded at https://github.com/PyTorchLightning/pytorch-lightning/releases
Download the whl file (address: reportlab · PyPI, select the appropriate version)
and put the whl file in a folder (mine is in the folder D:\python code\pytorch-lightning-1.7.3) Find the folder first Location----If the folder is not in the C drive, first use the d: command to go to the D drive, the F drive is similar,
Go to the specific folder through cd D:\python other librarise
and install the downloaded whl file through pip
pip install + file full name
But because I installed python on the computer itself, and also installed anaconda, so in the cmd terminal, my default environment is the python environment installed on the computer, so the installation path of the installation package is the file in the python on the C drive. In the folder, not in the python environment in anaconda, you can also enter the anaconda environment in the cmd terminal (to realize such a function, you need to configure the anaconda file path in the user environment and system environment variables). The conda info -e in the figure below is the anaconda command that can be called under the cmd terminal. And use activate XXX to activate anaconda's self-built XXX environment. You can also switch environments.
When using pip to install in the base environment of anaconda prompt, it is still installed in the self-built environment, but after activating other activation environments in anaconda prompt, it will be installed in the corresponding environment.
Install in the anaconda prompt environment, also use the pip command to install
Download the whl file (address: reportlab · PyPI, select the appropriate version)
and put the whl file in a folder (mine is in the folder D:\python code\pytorch-lightning-1.7.3) Find the folder first Location----If the folder is not in the C drive, first use the d: command to go to the D drive, and the F drive is similar
Go to the specific folder through cd D:\python other librarise
and install the downloaded whl file through pip
pip install + file full name
In anaconda, you can freely activate the environment you created in anaconda.
Just activate which environment you want to install in. As shown below,
The first line: I activated METER, an environment I created myself.
Then the next two lines are to enter the storage location of the whl file, just install it directly with pip.