Your grammar book is needlessly pedantic on this point. The following are all acceptable in my opinion.
1. Constant practice is needed to learn to speak English well.
2. You need constant practice to learn to speak English well.
3. It is necessary for you to practice constantly to learn to speak English well.
Moving the infinitive phrase to the beginning of the sentence makes no difference.
- For Teachers