spyder/juypter not working after downgrading python

旧街凉风 提交于 2019-12-12 04:10:28

问题


I had to download my python version from 3.5 to 3.4 because one of the packages I needed wasn't supported in 3.5. I downgraded the python version using the conda command prompt, and everything worked fine - got my package to install with all its dependencies and no conflicts. But now when I try to open Juypter notebook or Spyder, nothing happens. My IPython works just fine. I'm thinking maybe i have to downgrade Juypter and Spyder, but I'm not sure. Anyone have any ideas?


回答1:


After a day of searching I finally figured it out. I initially used

conda install python=3.4

Bad idea - ended up having to do a fresh install of anaconda to get spyder and juypter working again.

What ended up working is creating a separate environment.

conda create -n py34 python=3.4 anaconda
activate py34
... then install packages ...

This added spyder(py34), juypter(py34), and all its "py34 brothers and sisters" to my start menu. Using these new shortcuts/environment, I now have access to the packages I need by choosing the appropriate short cut. Yes, my start menu has extra python shortcuts now, but whatever - it works.

Just make sure Make sure you install the packages you're looking for before you close the anaconda console. Perfect for installing theano dependencies mingw and libpython.



来源:https://stackoverflow.com/questions/37244117/spyder-juypter-not-working-after-downgrading-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!