Problem with python
Terry Reedy
tjreedy at udel.edu
Sat Sep 4 15:22:17 EDT 2021
On 9/4/2021 2:27 PM, Igor Korot wrote:
> Hi, ALL,
>
> [code]
> igor at WaylandGnome ~/bakefile $ python
> Python 3.9.6 (default, Aug 8 2021, 17:26:32)
> [GCC 10.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from distutils import sysconfig
In 3.10, distutils and d.sysconfig are deprecated, with suggestions to
use setuptools or sysconfig modules instead.
>>>> print sysconfig.get_python_inc()
> File "<stdin>", line 1
> print sysconfig.get_python_inc()
> ^
> SyntaxError: invalid syntax
In interactive mode, print is not usually needed.
>>> sysconfig.get_python_inc()
'C:\\Programs\\Python310\\include'
--
Terry Jan Reedy
More information about the Python-list
mailing list