Generally not. We would not advise installing a heat pump in a greenhouse.
Whilst this may seem like a good idea, the benefits are minimal.
This is because heat pumps have quite powerful fan motors and transfer a lot of air.
Within a few minutes of operating, the heat pump will have extracted all of the air in the greenhouse.
You also need a vent to allow fresh air to enter the green house to replace the expelled air.
Within a couple of minutes the temperature of the air in the greenhouse will be the same as the external air.
The air is not in the greenhouse for long enough to warm sufficiently to provide much benefit.
If the air flow to the heat pump is restricted, it may in fact cause lower performance.
Heat pumps normally work best outdoors with a good supply of fresh air.