update: replace ~ with sys.prefix