Does TensorFlow 1.9 support Python 3.7












16















I'm hesitating whether to downgrade to Python 3.6 or install a new version of TensorFlow.



Does TensorFlow 1.9 support Python 3.7?










share|improve this question

























  • you can run python 3.7 with Tensorflow 1.12 from here github.com/fo40225/tensorflow-windows-wheel/tree/master/1.12.0

    – Umer
    Nov 22 '18 at 20:01











  • What do you mean by run it from there? shall I download the file and where to save it?

    – El Sheikh
    Dec 9 '18 at 17:29











  • I have built the .whl for tensorflow 1.12.0 with python 3.7.2 pip3 install tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl ensure pip3 is pointing to 3.7.2 file is here sourceforge.net/projects/getprathamos/files/Adyah/BD_ML/… right now only cpu build is available

    – Rakesh Khandelwal India
    Jan 18 at 18:19
















16















I'm hesitating whether to downgrade to Python 3.6 or install a new version of TensorFlow.



Does TensorFlow 1.9 support Python 3.7?










share|improve this question

























  • you can run python 3.7 with Tensorflow 1.12 from here github.com/fo40225/tensorflow-windows-wheel/tree/master/1.12.0

    – Umer
    Nov 22 '18 at 20:01











  • What do you mean by run it from there? shall I download the file and where to save it?

    – El Sheikh
    Dec 9 '18 at 17:29











  • I have built the .whl for tensorflow 1.12.0 with python 3.7.2 pip3 install tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl ensure pip3 is pointing to 3.7.2 file is here sourceforge.net/projects/getprathamos/files/Adyah/BD_ML/… right now only cpu build is available

    – Rakesh Khandelwal India
    Jan 18 at 18:19














16












16








16


2






I'm hesitating whether to downgrade to Python 3.6 or install a new version of TensorFlow.



Does TensorFlow 1.9 support Python 3.7?










share|improve this question
















I'm hesitating whether to downgrade to Python 3.6 or install a new version of TensorFlow.



Does TensorFlow 1.9 support Python 3.7?







python-3.x tensorflow






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 8 '18 at 20:34









nbro

5,60084994




5,60084994










asked Jul 8 '18 at 19:40









chenxuchenxu

101114




101114













  • you can run python 3.7 with Tensorflow 1.12 from here github.com/fo40225/tensorflow-windows-wheel/tree/master/1.12.0

    – Umer
    Nov 22 '18 at 20:01











  • What do you mean by run it from there? shall I download the file and where to save it?

    – El Sheikh
    Dec 9 '18 at 17:29











  • I have built the .whl for tensorflow 1.12.0 with python 3.7.2 pip3 install tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl ensure pip3 is pointing to 3.7.2 file is here sourceforge.net/projects/getprathamos/files/Adyah/BD_ML/… right now only cpu build is available

    – Rakesh Khandelwal India
    Jan 18 at 18:19



















  • you can run python 3.7 with Tensorflow 1.12 from here github.com/fo40225/tensorflow-windows-wheel/tree/master/1.12.0

    – Umer
    Nov 22 '18 at 20:01











  • What do you mean by run it from there? shall I download the file and where to save it?

    – El Sheikh
    Dec 9 '18 at 17:29











  • I have built the .whl for tensorflow 1.12.0 with python 3.7.2 pip3 install tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl ensure pip3 is pointing to 3.7.2 file is here sourceforge.net/projects/getprathamos/files/Adyah/BD_ML/… right now only cpu build is available

    – Rakesh Khandelwal India
    Jan 18 at 18:19

















you can run python 3.7 with Tensorflow 1.12 from here github.com/fo40225/tensorflow-windows-wheel/tree/master/1.12.0

– Umer
Nov 22 '18 at 20:01





you can run python 3.7 with Tensorflow 1.12 from here github.com/fo40225/tensorflow-windows-wheel/tree/master/1.12.0

– Umer
Nov 22 '18 at 20:01













What do you mean by run it from there? shall I download the file and where to save it?

– El Sheikh
Dec 9 '18 at 17:29





What do you mean by run it from there? shall I download the file and where to save it?

– El Sheikh
Dec 9 '18 at 17:29













I have built the .whl for tensorflow 1.12.0 with python 3.7.2 pip3 install tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl ensure pip3 is pointing to 3.7.2 file is here sourceforge.net/projects/getprathamos/files/Adyah/BD_ML/… right now only cpu build is available

– Rakesh Khandelwal India
Jan 18 at 18:19





I have built the .whl for tensorflow 1.12.0 with python 3.7.2 pip3 install tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl ensure pip3 is pointing to 3.7.2 file is here sourceforge.net/projects/getprathamos/files/Adyah/BD_ML/… right now only cpu build is available

– Rakesh Khandelwal India
Jan 18 at 18:19












7 Answers
7






active

oldest

votes


















12














Not yet. It seems there are some variables named "async", which has become a keyword in 3.7. Shouldn't be too difficult to fix, but still a problem.



Source: https://github.com/tensorflow/tensorflow/issues/20444






share|improve this answer































    11














    I was able to install Tensorflow 1.12.0 with Python 3.7 on MacOS, with the following command.



    sudo python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl





    share|improve this answer































      6














      Probably not yet.



      First of all, you will probably get a SyntaxError: invalid syntax because some parameters and variables at the pywrap_tensorflow_internal.py module have the name async which is a reserved keyword in Python 3.7.0 (see also this post).



      However, you can solve this by simply changing the name of all these (Ctrl + R and Replace All) from async to for example async1.



      The problem is that then you will probably get a ImportError: No module named '_pywrap_tensorflow_internal' which perhaps may be fixed for any previous version before Python 3.7.0 as this post on StackOverflow suggests but personally I could not fix it on my laptop with Python 3.7.0 .



      Consequently, I simply downgraded to Python 3.6.6 and now Tensorflow is working fine.






      share|improve this answer

































        2














        There is a whl built here. However in my run it was cpu version.



        https://www.lfd.uci.edu/~gohlke/pythonlibs/






        share|improve this answer































          2














          as of Aug 26tH, there is an update on the tensorflow github site
          https://github.com/tensorflow/tensorflow/pull/21202






          share|improve this answer































            1














            Finally Worked for me!



            only on Python 3.6.4 (even 3.6.5 failed for me)
            Install Python3.6.4 from here:
            https://www.python.org/downloads/mac-osx/



            If you're facing issues with Python pkgs that you already had on you older version just revert it using this post:
            python location on mac osx






            share|improve this answer

































              0














              I found this to work after searching for a while.



              As Tensorflow only supports Python 3.6 as of now, you can install a different version of python alongside your standard one. Here are the steps I followed:




              • Download the Python3.6 tgz file from the official website (eg. Python-3.6.6.tgz)

              • Unpack it with tar -xvzf Python-3.6.6.tgz

              • cd Python-3.6.6

              • run ./configure

              • run make altinstall to install it (install vs altinstall explanation here Difference in details between "make install" and "make altinstall")


              You'll normally find your new python install under /usr/local/bin. Now you can create a new virtualenv specifying the python version with:




              • virtualenv --python=python3.6 env3.6

              • Get into the virtualenv running the command source env3.6/source/bin/activate.

              • Install tensorflow with the classic pip install tensorflow

              • Profit






              share|improve this answer























                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51235428%2fdoes-tensorflow-1-9-support-python-3-7%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                7 Answers
                7






                active

                oldest

                votes








                7 Answers
                7






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                12














                Not yet. It seems there are some variables named "async", which has become a keyword in 3.7. Shouldn't be too difficult to fix, but still a problem.



                Source: https://github.com/tensorflow/tensorflow/issues/20444






                share|improve this answer




























                  12














                  Not yet. It seems there are some variables named "async", which has become a keyword in 3.7. Shouldn't be too difficult to fix, but still a problem.



                  Source: https://github.com/tensorflow/tensorflow/issues/20444






                  share|improve this answer


























                    12












                    12








                    12







                    Not yet. It seems there are some variables named "async", which has become a keyword in 3.7. Shouldn't be too difficult to fix, but still a problem.



                    Source: https://github.com/tensorflow/tensorflow/issues/20444






                    share|improve this answer













                    Not yet. It seems there are some variables named "async", which has become a keyword in 3.7. Shouldn't be too difficult to fix, but still a problem.



                    Source: https://github.com/tensorflow/tensorflow/issues/20444







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jul 8 '18 at 22:05









                    bconstanzobconstanzo

                    40028




                    40028

























                        11














                        I was able to install Tensorflow 1.12.0 with Python 3.7 on MacOS, with the following command.



                        sudo python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl





                        share|improve this answer




























                          11














                          I was able to install Tensorflow 1.12.0 with Python 3.7 on MacOS, with the following command.



                          sudo python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl





                          share|improve this answer


























                            11












                            11








                            11







                            I was able to install Tensorflow 1.12.0 with Python 3.7 on MacOS, with the following command.



                            sudo python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl





                            share|improve this answer













                            I was able to install Tensorflow 1.12.0 with Python 3.7 on MacOS, with the following command.



                            sudo python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 25 '18 at 4:07









                            BiranchiBiranchi

                            8,77220103137




                            8,77220103137























                                6














                                Probably not yet.



                                First of all, you will probably get a SyntaxError: invalid syntax because some parameters and variables at the pywrap_tensorflow_internal.py module have the name async which is a reserved keyword in Python 3.7.0 (see also this post).



                                However, you can solve this by simply changing the name of all these (Ctrl + R and Replace All) from async to for example async1.



                                The problem is that then you will probably get a ImportError: No module named '_pywrap_tensorflow_internal' which perhaps may be fixed for any previous version before Python 3.7.0 as this post on StackOverflow suggests but personally I could not fix it on my laptop with Python 3.7.0 .



                                Consequently, I simply downgraded to Python 3.6.6 and now Tensorflow is working fine.






                                share|improve this answer






























                                  6














                                  Probably not yet.



                                  First of all, you will probably get a SyntaxError: invalid syntax because some parameters and variables at the pywrap_tensorflow_internal.py module have the name async which is a reserved keyword in Python 3.7.0 (see also this post).



                                  However, you can solve this by simply changing the name of all these (Ctrl + R and Replace All) from async to for example async1.



                                  The problem is that then you will probably get a ImportError: No module named '_pywrap_tensorflow_internal' which perhaps may be fixed for any previous version before Python 3.7.0 as this post on StackOverflow suggests but personally I could not fix it on my laptop with Python 3.7.0 .



                                  Consequently, I simply downgraded to Python 3.6.6 and now Tensorflow is working fine.






                                  share|improve this answer




























                                    6












                                    6








                                    6







                                    Probably not yet.



                                    First of all, you will probably get a SyntaxError: invalid syntax because some parameters and variables at the pywrap_tensorflow_internal.py module have the name async which is a reserved keyword in Python 3.7.0 (see also this post).



                                    However, you can solve this by simply changing the name of all these (Ctrl + R and Replace All) from async to for example async1.



                                    The problem is that then you will probably get a ImportError: No module named '_pywrap_tensorflow_internal' which perhaps may be fixed for any previous version before Python 3.7.0 as this post on StackOverflow suggests but personally I could not fix it on my laptop with Python 3.7.0 .



                                    Consequently, I simply downgraded to Python 3.6.6 and now Tensorflow is working fine.






                                    share|improve this answer















                                    Probably not yet.



                                    First of all, you will probably get a SyntaxError: invalid syntax because some parameters and variables at the pywrap_tensorflow_internal.py module have the name async which is a reserved keyword in Python 3.7.0 (see also this post).



                                    However, you can solve this by simply changing the name of all these (Ctrl + R and Replace All) from async to for example async1.



                                    The problem is that then you will probably get a ImportError: No module named '_pywrap_tensorflow_internal' which perhaps may be fixed for any previous version before Python 3.7.0 as this post on StackOverflow suggests but personally I could not fix it on my laptop with Python 3.7.0 .



                                    Consequently, I simply downgraded to Python 3.6.6 and now Tensorflow is working fine.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Aug 30 '18 at 11:43

























                                    answered Aug 28 '18 at 12:07









                                    Poete MauditPoete Maudit

                                    1,433621




                                    1,433621























                                        2














                                        There is a whl built here. However in my run it was cpu version.



                                        https://www.lfd.uci.edu/~gohlke/pythonlibs/






                                        share|improve this answer




























                                          2














                                          There is a whl built here. However in my run it was cpu version.



                                          https://www.lfd.uci.edu/~gohlke/pythonlibs/






                                          share|improve this answer


























                                            2












                                            2








                                            2







                                            There is a whl built here. However in my run it was cpu version.



                                            https://www.lfd.uci.edu/~gohlke/pythonlibs/






                                            share|improve this answer













                                            There is a whl built here. However in my run it was cpu version.



                                            https://www.lfd.uci.edu/~gohlke/pythonlibs/







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Aug 10 '18 at 0:59









                                            halidziyahalidziya

                                            336




                                            336























                                                2














                                                as of Aug 26tH, there is an update on the tensorflow github site
                                                https://github.com/tensorflow/tensorflow/pull/21202






                                                share|improve this answer




























                                                  2














                                                  as of Aug 26tH, there is an update on the tensorflow github site
                                                  https://github.com/tensorflow/tensorflow/pull/21202






                                                  share|improve this answer


























                                                    2












                                                    2








                                                    2







                                                    as of Aug 26tH, there is an update on the tensorflow github site
                                                    https://github.com/tensorflow/tensorflow/pull/21202






                                                    share|improve this answer













                                                    as of Aug 26tH, there is an update on the tensorflow github site
                                                    https://github.com/tensorflow/tensorflow/pull/21202







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Aug 27 '18 at 18:42









                                                    user3325025user3325025

                                                    28438




                                                    28438























                                                        1














                                                        Finally Worked for me!



                                                        only on Python 3.6.4 (even 3.6.5 failed for me)
                                                        Install Python3.6.4 from here:
                                                        https://www.python.org/downloads/mac-osx/



                                                        If you're facing issues with Python pkgs that you already had on you older version just revert it using this post:
                                                        python location on mac osx






                                                        share|improve this answer






























                                                          1














                                                          Finally Worked for me!



                                                          only on Python 3.6.4 (even 3.6.5 failed for me)
                                                          Install Python3.6.4 from here:
                                                          https://www.python.org/downloads/mac-osx/



                                                          If you're facing issues with Python pkgs that you already had on you older version just revert it using this post:
                                                          python location on mac osx






                                                          share|improve this answer




























                                                            1












                                                            1








                                                            1







                                                            Finally Worked for me!



                                                            only on Python 3.6.4 (even 3.6.5 failed for me)
                                                            Install Python3.6.4 from here:
                                                            https://www.python.org/downloads/mac-osx/



                                                            If you're facing issues with Python pkgs that you already had on you older version just revert it using this post:
                                                            python location on mac osx






                                                            share|improve this answer















                                                            Finally Worked for me!



                                                            only on Python 3.6.4 (even 3.6.5 failed for me)
                                                            Install Python3.6.4 from here:
                                                            https://www.python.org/downloads/mac-osx/



                                                            If you're facing issues with Python pkgs that you already had on you older version just revert it using this post:
                                                            python location on mac osx







                                                            share|improve this answer














                                                            share|improve this answer



                                                            share|improve this answer








                                                            edited Oct 20 '18 at 8:22

























                                                            answered Oct 12 '18 at 16:37









                                                            Kohn1001Kohn1001

                                                            497411




                                                            497411























                                                                0














                                                                I found this to work after searching for a while.



                                                                As Tensorflow only supports Python 3.6 as of now, you can install a different version of python alongside your standard one. Here are the steps I followed:




                                                                • Download the Python3.6 tgz file from the official website (eg. Python-3.6.6.tgz)

                                                                • Unpack it with tar -xvzf Python-3.6.6.tgz

                                                                • cd Python-3.6.6

                                                                • run ./configure

                                                                • run make altinstall to install it (install vs altinstall explanation here Difference in details between "make install" and "make altinstall")


                                                                You'll normally find your new python install under /usr/local/bin. Now you can create a new virtualenv specifying the python version with:




                                                                • virtualenv --python=python3.6 env3.6

                                                                • Get into the virtualenv running the command source env3.6/source/bin/activate.

                                                                • Install tensorflow with the classic pip install tensorflow

                                                                • Profit






                                                                share|improve this answer




























                                                                  0














                                                                  I found this to work after searching for a while.



                                                                  As Tensorflow only supports Python 3.6 as of now, you can install a different version of python alongside your standard one. Here are the steps I followed:




                                                                  • Download the Python3.6 tgz file from the official website (eg. Python-3.6.6.tgz)

                                                                  • Unpack it with tar -xvzf Python-3.6.6.tgz

                                                                  • cd Python-3.6.6

                                                                  • run ./configure

                                                                  • run make altinstall to install it (install vs altinstall explanation here Difference in details between "make install" and "make altinstall")


                                                                  You'll normally find your new python install under /usr/local/bin. Now you can create a new virtualenv specifying the python version with:




                                                                  • virtualenv --python=python3.6 env3.6

                                                                  • Get into the virtualenv running the command source env3.6/source/bin/activate.

                                                                  • Install tensorflow with the classic pip install tensorflow

                                                                  • Profit






                                                                  share|improve this answer


























                                                                    0












                                                                    0








                                                                    0







                                                                    I found this to work after searching for a while.



                                                                    As Tensorflow only supports Python 3.6 as of now, you can install a different version of python alongside your standard one. Here are the steps I followed:




                                                                    • Download the Python3.6 tgz file from the official website (eg. Python-3.6.6.tgz)

                                                                    • Unpack it with tar -xvzf Python-3.6.6.tgz

                                                                    • cd Python-3.6.6

                                                                    • run ./configure

                                                                    • run make altinstall to install it (install vs altinstall explanation here Difference in details between "make install" and "make altinstall")


                                                                    You'll normally find your new python install under /usr/local/bin. Now you can create a new virtualenv specifying the python version with:




                                                                    • virtualenv --python=python3.6 env3.6

                                                                    • Get into the virtualenv running the command source env3.6/source/bin/activate.

                                                                    • Install tensorflow with the classic pip install tensorflow

                                                                    • Profit






                                                                    share|improve this answer













                                                                    I found this to work after searching for a while.



                                                                    As Tensorflow only supports Python 3.6 as of now, you can install a different version of python alongside your standard one. Here are the steps I followed:




                                                                    • Download the Python3.6 tgz file from the official website (eg. Python-3.6.6.tgz)

                                                                    • Unpack it with tar -xvzf Python-3.6.6.tgz

                                                                    • cd Python-3.6.6

                                                                    • run ./configure

                                                                    • run make altinstall to install it (install vs altinstall explanation here Difference in details between "make install" and "make altinstall")


                                                                    You'll normally find your new python install under /usr/local/bin. Now you can create a new virtualenv specifying the python version with:




                                                                    • virtualenv --python=python3.6 env3.6

                                                                    • Get into the virtualenv running the command source env3.6/source/bin/activate.

                                                                    • Install tensorflow with the classic pip install tensorflow

                                                                    • Profit







                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered Sep 19 '18 at 18:12









                                                                    belvederefbelvederef

                                                                    8726




                                                                    8726






























                                                                        draft saved

                                                                        draft discarded




















































                                                                        Thanks for contributing an answer to Stack Overflow!


                                                                        • Please be sure to answer the question. Provide details and share your research!

                                                                        But avoid



                                                                        • Asking for help, clarification, or responding to other answers.

                                                                        • Making statements based on opinion; back them up with references or personal experience.


                                                                        To learn more, see our tips on writing great answers.




                                                                        draft saved


                                                                        draft discarded














                                                                        StackExchange.ready(
                                                                        function () {
                                                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51235428%2fdoes-tensorflow-1-9-support-python-3-7%23new-answer', 'question_page');
                                                                        }
                                                                        );

                                                                        Post as a guest















                                                                        Required, but never shown





















































                                                                        Required, but never shown














                                                                        Required, but never shown












                                                                        Required, but never shown







                                                                        Required, but never shown

































                                                                        Required, but never shown














                                                                        Required, but never shown












                                                                        Required, but never shown







                                                                        Required, but never shown







                                                                        Popular posts from this blog

                                                                        A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                                                                        Calculate evaluation metrics using cross_val_predict sklearn

                                                                        Insert data from modal to MySQL (multiple modal on website)