This will depend on your nationality and ancestry. Persons with Indian ancestry who can prove it may apply for OCI, which they can eventually travel with. However, if you don't have Indian ancestry, you need to apply for a visa unless you are from a visa-exempt country with plans to spend only a few weeks in India.