New2Data
New2Data

Reputation: 43

Locate Python binary location in windows (Tensorflow)

I'm trying to follow tensorflow instructions in R but am stuck on providing the Python binary path location on Windows. I believe the instructions are given to Mac environment? I would like to know where can I locate my Python binary on my windows environment.

Link to Tutorial: https://github.com/rstudio/tensorflow

Sys.setenv(TENSORFLOW_PYTHON="/usr/local/bin/python")

Upvotes: 2

Views: 2469

Answers (1)

Harshdeep Sokhey
Harshdeep Sokhey

Reputation: 324

Try this on the command prompt:

python -c "import sys; print(sys.executable)"

That will give you the full executable path for the python version that you are using.

Output: [Your output may be different]

C:\Users\<username>\AppData\Local\Programs\Python\Python35\python.exe

Upvotes: 1

Related Questions