Getting Python on Windows points USER_HOME

Marco Atzeri marco.atzeri@gmail.com
Tue Jan 21 06:31:00 GMT 2020


Am 21.01.2020 um 06:47 schrieb R Steiger:
> Hi Marco,
> 
> Thanks for the response.  As you seemed to hint, seems my Python installation was bent: I checked your dir listing against my Cygwin root directory (C:\cygwin64), and found that neither usr/bin nor usr/lib exist (usr/include/python3.8/pyconfig.h does exist). 

Please bottom posting and trim here.

/usr/bin and /usr/lib are cygwin mount to /bin and /lib
they do not exist in Windows tree structure

$ mount
D:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
D:/cygwin64/lib on /usr/lib type ntfs (binary,auto)


  I've made several attempts to do full reinstalls of python3.8, being 
careful to first scrape-off all previously-installed python files 
(including tools, other packages, and those in my Windows USER_HOME and 
on C:), and have yet to succeed in getting it to install in anything 
like the configuration you listed, and get a working Python.
> 
> Looking at C:\cygwin64\var\log\setup.log.full, there are a few thousand lines of the form "Installing file cygfile:///usr/bin/python3.8.exe" (preceded by about the same number of "unlink" + "rmdir" lines), but no indication of where the files are installed on disk.  The installer asks for no additional parameters, so it doesn't seem that I'm failing to provide some required bit of info.

the file list is under /etc/setup/python36.lst.gz (and similar)

you can read directly also with

$ cygcheck -l python36
/usr/bin/libpython3.6m.dll
/usr/bin/pydoc3.6
/usr/bin/python3.6
/usr/bin/python3.6m.exe
/usr/bin/pyvenv-3.6
/usr/include/python3.6m/pyconfig.h
/usr/lib/python3.6/lib-dynload/array.cpython-36m-x86_64-cygwin.dll
/usr/lib/python3.6/lib-dynload/audioop.cpython-36m-x86_64-cygwin.dll
/usr/lib/python3.6/lib-dynload/binascii.cpython-36m-x86_64-cygwin.dll
/usr/lib/python3.6/lib-dynload/cmath.cpython-36m-x86_64-cygwin.dll
....

and verify that all the files exist in their expected location

$ cygcheck -c python36
Cygwin Package Information
Package              Version        Status
python36             3.6.9-1        OK

> I have the following Qs:
> 
> 1. What might I be missing as part of the installation request?
> 2. Is there any way to make the "Installing ..." log lines a bit more verbose, specifically, to provide the installation target directories?  Or is there a standard mapping from the listed "cygfile:///..." path to the target directory?
> 3. Are there any errors that might be getting inserted into the log and not at the beginning or end, so would be hard to catch?  (I'm not seeing any.)
> 
> I've taken at least 4 runs at this wall, with zero successes.
> 
> Thanks,
> 
> -rjs

follow https://cygwin.com/problems.html and provide the
cygcheck.out as ATTACHMENT

Question: why you need Python 3.8 ?
The current default for Cygwin is 3.6.9

Regards
Marco




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list