I am trying to compile the freshly downloaded Python 2.7.15. When the PCBuild/build.bat goes to pull-in the external modules along with their dependencies it encounters this error for each of the external modules.
F:\Dev\depot\tools\source\python\Python-2.7.15>.\PCbuild\get_externals.bat Using "F:\Dev\depot\tools\source\python\Python-2.7.15\PCbuild\\..\externals\pyth onx86\tools\python.exe" (found in externals directory) Fetching external libraries... e is e Fetching bzip2-1.0.6... Traceback (most recent call last): File "F:\Dev\depot\tools\source\python\Python-2.7.15\PCbuild\\get_external.py" , line 7, in <module> from urllib.request import urlretrieve File "F:\Dev\depot\tools\source\python\Python-2.7.15\externals\pythonx86\tools \lib\urllib\request.py", line 88, in <module> import http.client File "F:\Dev\depot\tools\source\python\Python-2.7.15\externals\pythonx86\tools \lib\http\client.py", line 71, in <module> import email.parser File "F:\Dev\depot\tools\source\python\Python-2.7.15\externals\pythonx86\tools \lib\email\parser.py", line 12, in <module> from email.feedparser import FeedParser, BytesFeedParser File "F:\Dev\depot\tools\source\python\Python-2.7.15\externals\pythonx86\tools \lib\email\feedparser.py", line 27, in <module> from email._policybase import compat32 File "F:\Dev\depot\tools\source\python\Python-2.7.15\externals\pythonx86\tools \lib\email\_policybase.py", line 9, in <module> from email.utils import _has_surrogates File "F:\Dev\depot\tools\source\python\Python-2.7.15\externals\pythonx86\tools \lib\email\utils.py", line 29, in <module> import socket File "F:\Dev\depot\tools\source\python\Python-2.7.15\externals\pythonx86\tools \lib\socket.py", line 49, in <module> import _socket ImportError: Module use of python27.dll conflicts with this version of Python. Fetching bsddb-4.7.25.0... Traceback (most recent call last): File "F:\Dev\depot\tools\source\python\Python-2.7.15\PCbuild\\get_external.py" I tried installing python versions 3.6.4 and 2.7.15 to see if it works because I read in the build script that if python is already installed then it will use that else it will install it's own python in externals and use it. But no luck! It keeps giving me the same error again and again. Even if I execute "builds.bat -e" it gets into the same trap though it goes ahead and compiles but then compiler throws error due to half-baked external modules. Any help will be highly appreciated ! --Amit Kumar Singh -- https://mail.python.org/mailman/listinfo/python-list