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
答案 0 :(得分:0)
您可以从计算机上卸载Python 2.7(但不是必需的)。完成后,您可以使用Anaconda创建Python 2.7虚拟环境。这将允许您在Python 2.7和3.6之间轻松切换。
要了解如何创建和管理虚拟环境,请查看this site。