降级python后spyder/juypter无法正常工作 [英] spyder/juypter not working after downgrading python

查看:153
本文介绍了降级python后spyder/juypter无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将我的python版本从3.5下载到3.4,因为3.5中不支持我需要的软件包之一.我使用conda命令提示符对python版本进行了降级,并且一切正常-使我的软件包以所有依赖项进行安装,并且没有冲突.但是现在当我尝试打开Juypter笔记本电脑或Spyder时,什么也没有发生.我的IPython正常工作.我在想也许我必须降级Juypter和Spyder,但是我不确定.有人有什么想法吗?

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?

推荐答案

经过一天的搜索,我终于弄清楚了. 我最初使用

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

conda install python=3.4

坏主意-最终不得不重新安装anaconda才能使spyder和juypter重新工作.

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 ...

这将spyder(py34),juypter(py34)及其所有"py34兄弟姐妹"添加到了我的开始菜单.使用这些新的快捷方式/环境,我现在可以通过选择适当的快捷方式来访问所需的软件包.是的,我的开始"菜单现在具有额外的python快捷键,但无论如何-可以.

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.

只需确保在关闭anaconda控制台之前确保已安装所需的软件包即可.非常适合安装theano依赖项mingwlibpython.

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.

这篇关于降级python后spyder/juypter无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆