Chilli plants love heat. They are closely related to capsicums/bell peppers and also related to tomatoes (they are in the same family, the solanaceae), but chillies prefer their growing conditions a lot hotter.
Chilli seeds need 20°C to germinate, and it should be 30°C or more for the fruit to ripen. Night temperatures should not drop below 15°C. (At least not on a regular basis. The odd cool spell is ok.)
Chillies also don't mind humidity as much as sweet peppers or tomatoes do.
Most people will need to grow chillis in full sun. In the hottest, sunniest regions chillies still grow well with a bit of shade. Especially afternoon shade can even be beneficial. (The fruit can get sunburned.)
If you live in the tropics or subtropics, great. Your chillies should thrive. Even the "annual" varieties should live for two to three years and they produce fruit all year round.
If your climate is not tropical, don't despair. You can still grow chillies if you get decent summers. And you can extend the growing season by growing chilis indoors, just like you do with tomatoes.
In fact, chillis are also related to tomatoes, so the growing methods and requirements are similar. Except that chillies need more heat.
People with small gardens or balconies will be pleased to hear that you can grow chillis in pots.