| Store | Cart

[Distutils] Problem Report

From: Ჩ <stev...@hotmail.com>
Thu, 13 Aug 2015 16:42:53 +0800
Dear Maintainers:
This problem occurred when1. Windows platform2. Python is installed on non-Latin path (for example: path contains Chinese character).3. try to "pip install theano"
And I found the problem is in distutils.command.build_scripts module's copy_scripts function, on line 106
                    executable = os.fsencode(executable)                    shebang = b"#!" + executable + post_interp + b"\n"                    try:                        shebang.decode('utf-8')
actually os.fsencode will encode the path into GBK encoding on windows, it's certainly that will fail to decode via utf-8.
#executable = os.fsencode(executable) (delete this line)executable = executable.encode('utf-8')
Theano successfully installed after this patch.

Thank you!Bowen Yu 		 	   		  
Distutils-SIG maillist  -  Dist...@python.org

Recent Messages in this Thread
Aug 13, 2015 08:42 am
Erik Bray Aug 17, 2015 05:12 pm
Paul Moore Aug 17, 2015 07:37 pm
Messages in this thread