Asymptote http://asymptote.sourceforge.net is a powerful descriptive vector graphics language for technical drawing, inspired by MetaPost but with an improved C++-like syntax. Asymptote provides for figures the same high-quality level of typesetting that LaTeX does for scientific text.
The xasy graphical user interface now runs under both Python 2.7 and Python 3. Legacy versions (prior to 9.14) of Ghostscript can be supported by assigning settings.epsdriver="epswrite" (or by setting the environment variable ASYMPTOTE_EPSDRIVER to epswrite). The quiet flag suppresses noninteractive standard output when settings.verbosity <= 1. A progress function was added to the plain_strings module. The smoothcontour3 module was optimized to use Bezier triangles where appropriate, along with a built-in least-squares routine and an improved root finder based on quadratic interpolation. If settings.sysdir is empty, preference is given to a version of kpsewhich in the same directory as the executable for determining the correct sysdir. The handling of degenerate normals of Bezier triangles was fixed. Bugs in forking, integer formatting, dash adjustment, subpaths, and guide reversion were fixed. Version 1.30 of asymptote.sty (auto-generated) and version 0.35 (or later) of media9.sty are now required.
I have asymptote 2.38 installed on a MacBook Pro 2012 running OSX 10.10.5. I also have Python 2.7.10 and 3.6.0 installed. I am trying to use xasy but it fails to locate the PIL library, which is installed on my computer. From Python 3 I am able to import PIL and image, but I am unable to import them from Python 2. You indicate that the xasy graphical user interface runs uner Python 2.7 and 3. How do I specify that the Python 3 version of xasy is launched as opposed to the Python 2.7 version?