The Visuddhimagga does say that:
1.  Now concentration was described under the heading of consciousness in the stanza:
When a wise man, established well in virtue, Develops consciousness and understanding* (Ch. I, §1).
And that has been developed in all its aspects by the bhikkhu who is thus possessed of the more advanced development of concentration that has
acquired with direct-knowledge the benefits [described in Chs. XII and XIII]. But understanding comes next. And that has still to be developed.
Because of the words 'One who is concentrated knows and sees correctly' (A.v,3), its proximate cause is concentration.
Now concentration is described under the heading of 'consciousness' in the phrase 'develops consciousness and understanding'
(Ch. I, §1). It should be developed by one who has taken his stand on virtue that has been purified by means of the special qualities of fewness
of wishes, etc., and perfected by observance of the ascetic practices. - VsM III,1
Understanding comes after concentration. The VsM does state that understanding requires concentration and concentration requires virtue (that may have to be perfected by observance of the ascetic practices).
The VsM does go into detail about suitable places and about obstacles to concentration. Judging by heavy requirements it suggests that for most people it is not some momentary and easily to obtain concentration but something that may have to be developed in a retreat setting.
A dwelling, family, and gain, A class, and building too as fifth, And travel, kin, affliction, books, And supernormal powers: ten." - VsM III, 29
As to unfavourable monastery :
"Herein, one that is unfavourable has any one of eighteen faults. These are: largeness, newness, dilapidatedness, a nearby road, a pond,
[edible] leaves, flowers, fruits, famousness, a nearby city, nearby timber trees, nearby arable fields, presence of incompatible persons, a nearby port of
entry, nearness to the border countries, nearness to the frontier of a kingdom, unsuitability, lack of good friends.  One with any of these faults is not
favourable. He should not live there. " - VsM - IV,2
So according to Classical Commentarial view, for wisdom one must have sufficient concentration and judging by the suggestions on impediments and unfourable places... It is a bit tougher than some think.
VsM is supposed to be step-by-step guide to purification, and chapter on Wisdom comes after chapters on virtue, ascetic practices and samadhi.
Samadhi in VsM is described as being a bit harder than a momentary state that can easily be achieved.