Remove_filter (‘the_content’, ‘wpautop’) only pages

the_content filter apply to all posts which means pages and articles. What you can do is to add condition to its execution.

First you remove filter as you did

remove_filter('the_content', 'wpautop');

then you add another filter that will call the wpautop function depending on a test like this :

function my_the_content_filter($content) {
  if(/* you test if it's an article or whatever you want*/)
       $content = wpautop($content);
  return $content; 
}
add_filter( 'the_content', 'my_the_content_filter' );

like this you may control if the wpautop is called or not depending on your condition.

You do the same for the_excerpt