0

Is it possible to install Python 3.5.x on Windows 8.1? The primary goal is to install TensorFlow directly on my Windows.

It is not working. More specifically when using a 64 bit windows, and naturally trying the 64bits Python. The AMD name in the installation file is confusing, since my laptop is an Intel. But that is the only 64 bit option so I select that.

I try to set up via binaries. In the middle of installation a GUI tells me installation failed:

The Error Message

BTW, I have done my best to remove any remaining Python 32 bits from my system.

user25004
  • 1,868
  • 1
  • 22
  • 47
  • 2
    Yes, it's possible. – interjay Apr 10 '17 at 22:14
  • 1
    If you were [somewhat more specific](/help/mcve) on what problems you're facing, we'd probably be able to tell more. – ivan_pozdeev Apr 10 '17 at 22:22
  • Sure, I will elaborate more by editing my question. – user25004 Apr 10 '17 at 22:44
  • Did you download `Windows x86-64 executable installer`? – juanpa.arrivillaga Apr 10 '17 at 23:01
  • @juanpa.arrivillaga I downloaded python-3.5.3-amd64.exe. So yes. – user25004 Apr 10 '17 at 23:09
  • 1
    Possibly relevent: [this question](http://stackoverflow.com/questions/20650596/cannot-open-python-error-0xc000007b) – juanpa.arrivillaga Apr 10 '17 at 23:14
  • 1
    If you're overwriting an existing 32-bit Python 3.5, then you should have uninstalled and removed the directory beforehand to get a clean install. – Eryk Sun Apr 10 '17 at 23:40
  • I have uninstalled all existing Python's via Windows Uninstall many times. But looks like some dependencies are not fixed yet or so? – user25004 Apr 11 '17 at 00:44
  • 1
    Possible duplicate of [Cannot Open Python. Error 0xc000007b](http://stackoverflow.com/questions/20650596/cannot-open-python-error-0xc000007b) – ivan_pozdeev Apr 11 '17 at 01:42
  • 1
    Python 3.5 keeps its installed DLL dependencies (python35.dll, python3.dll, and vcruntime140.dll) in the installation directory. Unlike prior versions, an all-users install does not install anything in System32. The Universal C Runtime is there (e.g. ucrtbase.dll), but that's an OS component. Either something is being left behind from a previous install, or the Universal CRT is installed wrong. In case it's the latter, try installing [KB3118401](https://support.microsoft.com/en-us/kb/3118401) for Windows 8.1 x64. – Eryk Sun Apr 11 '17 at 01:46
  • How can I make sure nothing is left from past installation? I can install 32 bit python but not 64 bit. The uninstall seems to finish properly. – user25004 Apr 11 '17 at 01:58
  • 1
    I suggest `procmon` from the sysinternals suite. You'll see both which module fails to load and if the correct `python.exe` is being started (in case you happen to have another installation on `PATH`). – ivan_pozdeev Apr 11 '17 at 02:03
  • @eryksun It looks like the CRT is the problem actually. – user25004 Apr 11 '17 at 05:34

2 Answers2

1

Gooogling "python supported windows versions" brings up Using Python on Windows — Python 3.5.3 documentation1:

3.1.1. Supported Versions

As specified in PEP 11, a Python release only supports a Windows platform while Microsoft considers the platform under extended support. This means that Python 3.5 supports Windows Vista and newer. If you require Windows XP support then please install Python 3.4.


1Or rather, https://docs.python.org/3/using/windows.html from which you can switch to the 3.5's version of the article with the drop-down list in the upper-left corner

ivan_pozdeev
  • 33,874
  • 19
  • 107
  • 152
  • Is it true that tensorFlow only works with 64bit as opposed to 32 bit Pyhton, if we want to install it directly? – user25004 Apr 11 '17 at 01:38
  • 1
    @user25004 at https://pypi.python.org/pypi/tensorflow/1.1.0rc1 , there are only 64-bit precompiled versions as there are at https://storage.googleapis.com/tensorflow . Theoretically, you can compile for 32 bit from source (my guess is that it isn't worth the effort though). – ivan_pozdeev Apr 11 '17 at 01:52
  • I see. Thank you! – user25004 Apr 11 '17 at 02:03
0

After running windows update, I finally managed to install python 3.5 64 bits and then tensorflow on my windows 8.1.

user25004
  • 1,868
  • 1
  • 22
  • 47