Getting Python on Windows points USER_HOME

Doug Henderson djndnbvg@gmail.com
Tue Jan 21 09:34:00 GMT 2020


On Mon, 20 Jan 2020 at 17:08, R Steiger <> wrote:
>
> Having installed the latest Cygwin-built Python distro (3.8.1), it thinks user-site is C:\Users\<myName>\AppData\Roaming ...

The latest python3 available via cygwin setup on 2020-01-21 is

$ python3.8 -V
Python 3.8.0b4

$ ls -l /usr/bin/python*.exe
-rwxr-xr-x 1 Admin None 9.1K Mar 20  2019 /usr/bin/python2.7.exe*
-rwxr-xr-x 1 Admin None 9.6K Jul 21  2019 /usr/bin/python3.5m.exe*
-rwxr-xr-x 1 Admin None 9.6K Jul 21  2019 /usr/bin/python3.6m.exe*
-rwxr-xr-x 1 Admin None 9.1K Jul 21  2019 /usr/bin/python3.7m.exe*
-rwxr-xr-x 1 Admin None 9.1K Sep 15 13:58 /usr/bin/python3.8.exe*

If you are running 3.8.1, as of today, you must have built it
yourself, or you are running the windows version of python. You can
check this by executing

$ which python3.8
/usr/bin/python3.8

If your python is in a directory outside the /usr/bin tree, you are
not running the cygwin version of python.

When running cygwin, my path looks like this:

$ echo $PATH
/home/Doug/bin:/home/Doug/local/bin:/usr/local/bin:/usr/bin:/usr/lib/lapack:/bin

If you have any windows folders in your path, they should (must)
follow these folders.

I set CYGWIN_NOWINPATH=1 in my system environment variables, and then
append only those windows folders that I need to run specific windows
apps.

> I've munged Lib/site.py and sysconfig.py to set base = "~" when os.name == "nt", but this doesn't do the trick.  What am I missing?

These are not necessary, and may have damaged your python 3.8.1 for
windows install. I suggest you undo these changes, or better yet
reinstall python 3.8.1 for windows.

HTH,
Doug
-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

--
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