Switching to anaconda installation of python

时间:2017-07-10 15:30:25

标签: python anaconda

I installed Python 2.7 on my computer awhile ago, and I believe I did not use Anaconda. I added Python 3.6 recently using an Anaconda environment, and am appreciating the benefits of using that. Is there a (somewhat) easy way to uninstall/reinstall Python 2.7 to be in the Anaconda environment as well so I can easily switch between them?

Update -- if I create an environment for Python 2.7 by doing the following, and Python 2.7 is already on my computer, does this reinstall Python 2.7?

$ conda create -n py2 python=2.7 anaconda

1 个答案:

答案 0 :(得分:0)

您可以从计算机上卸载Python 2.7(但不是必需的)。完成后,您可以使用Anaconda创建Python 2.7虚拟环境。这将允许您在Py​​thon 2.7和3.6之间轻松切换。

要了解如何创建和管理虚拟环境,请查看this site