How to add block to only user/uid and not user/uid/edit
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.