简体   繁体   English

降级python后spyder / juypter无法正常工作

[英]spyder/juypter not working after downgrading python

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. 我必须将我的python版本从3.5下载到3.4,因为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. 我使用conda命令提示符对python版本进行了降级,并且一切正常-使我的软件包以所有依赖项进行安装,并且没有冲突。 But now when I try to open Juypter notebook or Spyder, nothing happens. 但是现在当我尝试打开Juypter笔记本电脑或Spyder时,什么也没有发生。 My IPython works just fine. 我的IPython运行正常。 I'm thinking maybe i have to downgrade Juypter and Spyder, but I'm not sure. 我在想也许我必须降级Juypter和Spyder,但我不确定。 Anyone have any ideas? 有人有想法么?

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. 这将spyder(py34),juypter(py34)及其所有“ py34兄弟姐妹”添加到了我的开始菜单。 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. 是的,我的“开始”菜单现在具有额外的python快捷方式,但无论如何-它可以工作。

Just make sure Make sure you install the packages you're looking for before you close the anaconda console. 只需确保在关闭anaconda控制台之前确保已安装所需的软件包即可。 Perfect for installing theano dependencies mingw and libpython . 非常适合安装theano依赖项mingwlibpython

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM