(pyflag='1')
return sitepath
查找site-packages的路径地址
    return <str>: path.
查找site-packages的路径地址
    return <str>: path.
查找site - packages的路径地址 return <str > : path .
def search_packages_path(pyflag='1'):
    '''查找site-packages的路径地址
    return <str>: path.
    '''
    sitepath="."
    for x in sys.path:
        if pyflag == '1' and 'anaconda' not in x.lower():
            continue
        if 'AppData' in x:
            continue
        ix1 = x.find('site-packages')
        ix2 = x.find('dist-packages')
        if( (ix1>=0 and x[ix1:]=='site-packages') or (ix2>=0 and x[ix2:]=='dist-packages') ):
          sitepath = x
          break
    
    return sitepath
def search_packages_path ( pyflag = '1' ) : sitepath = "." for x in sys . path : if pyflag == '1' and 'anaconda' not in x . lower ( ) : continue if 'AppData' in x : continue ix1 = x . find ( 'site-packages' ) ix2 = x . find ( 'dist-packages' ) if ( ( ix1 >= 0 and x [ ix1 : ] == 'site-packages' ) or ( ix2 >= 0 and x [ ix2 : ] == 'dist-packages' ) ) : sitepath = x break return sitepath