Does TensorFlow 1.9 support Python 3.7
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
add a comment |
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
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
add a comment |
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
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
python-3.x tensorflow
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
add a comment |
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
add a comment |
7 Answers
7
active
oldest
votes
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
add a comment |
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
add a comment |
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.
add a comment |
There is a whl built here. However in my run it was cpu version.
https://www.lfd.uci.edu/~gohlke/pythonlibs/
add a comment |
as of Aug 26tH, there is an update on the tensorflow github site
https://github.com/tensorflow/tensorflow/pull/21202
add a comment |
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
add a comment |
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
vsaltinstall
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Jul 8 '18 at 22:05
bconstanzobconstanzo
40028
40028
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Nov 25 '18 at 4:07
BiranchiBiranchi
8,77220103137
8,77220103137
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Aug 30 '18 at 11:43
answered Aug 28 '18 at 12:07
Poete MauditPoete Maudit
1,433621
1,433621
add a comment |
add a comment |
There is a whl built here. However in my run it was cpu version.
https://www.lfd.uci.edu/~gohlke/pythonlibs/
add a comment |
There is a whl built here. However in my run it was cpu version.
https://www.lfd.uci.edu/~gohlke/pythonlibs/
add a comment |
There is a whl built here. However in my run it was cpu version.
https://www.lfd.uci.edu/~gohlke/pythonlibs/
There is a whl built here. However in my run it was cpu version.
https://www.lfd.uci.edu/~gohlke/pythonlibs/
answered Aug 10 '18 at 0:59
halidziyahalidziya
336
336
add a comment |
add a comment |
as of Aug 26tH, there is an update on the tensorflow github site
https://github.com/tensorflow/tensorflow/pull/21202
add a comment |
as of Aug 26tH, there is an update on the tensorflow github site
https://github.com/tensorflow/tensorflow/pull/21202
add a comment |
as of Aug 26tH, there is an update on the tensorflow github site
https://github.com/tensorflow/tensorflow/pull/21202
as of Aug 26tH, there is an update on the tensorflow github site
https://github.com/tensorflow/tensorflow/pull/21202
answered Aug 27 '18 at 18:42
user3325025user3325025
28438
28438
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
edited Oct 20 '18 at 8:22
answered Oct 12 '18 at 16:37
Kohn1001Kohn1001
497411
497411
add a comment |
add a comment |
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
vsaltinstall
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
add a comment |
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
vsaltinstall
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
add a comment |
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
vsaltinstall
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
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
vsaltinstall
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
answered Sep 19 '18 at 18:12
belvederefbelvederef
8726
8726
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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