Raspberries grow best in full sun, in moist, fertile, well-drained soil. They don't like wet feet, so choose a spot where water doesn't stand in spring, and avoid ground where tomatoes or potatoes grew recently.
Plant the canes about 2–3 feet apart in a row, with a wide path beside it so you can pick from both sides. Raspberries are self-fertile, so a single plant can fruit, and a row soon fills in as new canes come up from the roots.
Mulch with straw or wood chips to hold moisture and keep weeds down, and water in dry spells, especially while the berries are forming.