简体   繁体   中英

Switching to anaconda installation of python

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

You can uninstall Python 2.7 from your computer (not necessary though). After you have done so, you can use Anaconda to create a Python 2.7 virtual environment. This will allow you easily switch between Python 2.7 and 3.6.

To learn how you can create and manage virtual environments, check this site .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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