Suppose your measure space has two disjoint measurable subsets $A,B$ both of finite measure. Then there is a map $f:\mathbb{R}^2 \to L^p(X)$ given by sending $(a,b)$ to the function
$$[f(a,b)](x) = \begin{cases} \frac{a}{\mu(A)^\frac{1}{p}} \text{ if } x \in A, \\ \frac{b}{\mu(B)^\frac{1}{p}} \text{ if } x \in B \\
0 \text{ otherwise.} \end{cases} $$
You can check that $\| f(a,b) \| = (a^p + b^p)^{1/p}$. On the other hand, if $L^p(X,\mu)$ is a Hilbert space then the parallelogram law holds, which would imply the parallelogram law for 2-d space with $p$-norm. Thus one is reduced to showing that $\mathbb{R}^2$ is a Hilbert space only under the $p = 2$ norm.
Edit: I should point out that the restriction I give at the beginning fails only (as far as I can see) in cases where all the $L^p$ (save maybe the uninteresting $L^\infty$ case) are one or zero dimensional.
Edit2: If a space has no sets of non-zero finite measure, then every $L^p$ function will be almost everywhere zero except for $p = \infty$, so yeah in this case we have $L^p$ a Hilbert space for some $p \neq 0$ , but only because it is zero.
Now suppose we have sets of finite non-zero measure but no disjoint pair. Suppose $A$ has non-zero finite measure, then this means that for any $B$ with non-zero finite measure we would have: $\mu(B) = \mu(A \cap B) = \mu(A)$. It follows from this (though I don't want to write out al the details) that $L^p(X)$ will be one dimensional, with the elements just rescalings of the indicator of the set $A$.