How to add block to only user/uid and not user/uid/edit In my site the www.example/user/uid path contains the view and edit tabs. I want to add some blocks to only the view page and not edit page.

Using "user/* (Only the listed pages)" under the visibility settings of block configuration attaches the block to both pages. 

How can I make it appear on only the view page.

Thanks in anticipation.
Hope this will help you,

In Drupal 7, 


You can achive it by enabling PHP filter module, which allows embedded PHP code/snippets to be evaluated. GO to admin > modules and enable PHP filter.

&#60;?php
    global $user;
    if (arg(0) == 'user' &amp;&amp; $user->uid == arg(1) &amp;&amp; is_numeric(arg(1)) &amp;&amp; (arg(2) == NULL) ){
      return TRUE;
    }
    else {
      return FALSE;
    }
?&#62;


You can also refer Extended block visibility module. This will allows PHP block visibility to be defined in code.