0

I have Python 3.6 installed on my windows computer. I just installed GraphLab Create and now when I open up my Jupyter Notebooks, it shows Python 2 instead of Python 3 which it always was before. How do I go about changing it back to Python 3 in the easiest possible way? Thank you

bernando_vialli
  • 947
  • 4
  • 12
  • 27

2 Answers2

1

GraphLab Create only works in python-2.x. If you did use the GraphlabCreate.exe to install GraphLab, the .exe file installs Anaconda containing python 2.7 in your PC. So you have both python 2 and 3 versions in your system. You can find python3 jupyter notebook inside the Scripts folder in the location where you installed Anaconda3

Destiny
  • 141
  • 7
  • Inside the scripts folder it seems that I have 4 files, "jupyterlab.bat", "notebook.bat", "notebook-err-6.txt" and "notebook-out-6.txt". So what should I do? – bernando_vialli Jul 30 '18 at 15:30
  • Do you know, if I reinstall Jupyter Notebook, will it solve my problem? – bernando_vialli Jul 30 '18 at 15:34
  • 1
    Inside Scripts folder inside Anaconda3 , you will have jupyter-notebook.exe file – Destiny Jul 30 '18 at 15:37
  • 1
    try opening jupyter notebook – Destiny Jul 30 '18 at 15:43
  • ok I got it to work now, thank you! 1 question though, how can I avoid needing to go to windows explorer and opening it from there, and instead just immediately open the terminal and get it to work to save time? – bernando_vialli Jul 30 '18 at 15:44
  • 1
    To open from terminal, you need to add the location to your Windows path variable, else you can create a shortcut of jupyter notebook to your Desktop and open it from your Desktop. – Destiny Jul 30 '18 at 15:49
0

Add the correct version of python(in this case python3) to your windows PATH variable

refer this link

Once you have the PATH variable setup you should be able to start python3 interpreter from the windows command prompt whenever you type python

Now when you type jupyter notebook from the terminal it should start the python3 kernel by default

Thalish Sajeed
  • 1,351
  • 11
  • 25
  • It is showing for both of them that they are "is not recognized as an internal or external command, operable program or batch file." – bernando_vialli Jul 30 '18 at 14:52
  • Hmm. How do you usually start your jupyter notebook? – Thalish Sajeed Jul 30 '18 at 14:54
  • i just type "jupyter notebook" in the terminal or access it through opening up Anaconda, either or – bernando_vialli Jul 30 '18 at 14:55
  • @mkheifetz check the edited answer. you need to first configure your windows path variable so that you are able to start the python interpreter from the command line – Thalish Sajeed Jul 30 '18 at 15:04
  • but I don't understand, why do I need to do that if it worked before? I never got rid of it from anywhere, I just installed an extra program, GraphLab Create – bernando_vialli Jul 30 '18 at 15:05
  • I can't comment on what changed in your system. However based on your answer it seems python3 isnt configured as the default python execution environment on your system. If it was you'd have been able to start the python3 interpreter from your command line – Thalish Sajeed Jul 30 '18 at 15:07
  • I don't have administrative privledges to go in there on my computer. Are there other alternatives? The thing is, in order for it to stop working, according to what you are saying, it was supposed to previously have been there and then been deleted. But why would it get deleted if I am just installing another program? – bernando_vialli Jul 30 '18 at 15:10
  • will me uninstalling the other software help maybe? – bernando_vialli Jul 30 '18 at 15:14