How can I use both Anaconda versions (2.7 & 3.5)?

前端 未结 3 1856
失恋的感觉
失恋的感觉 2021-01-31 11:56

I was using the Anaconda 3.5 distro in a Windows 10 machine. Due to dependencies in libraries that I want to work with, I had to have the 2.7 version i

3条回答
  •  执念已碎
    2021-01-31 12:18

    You can make Python 3.5 environment with your Anaconda 2.7:

    conda create -n py35 python=3.5
    

    Now, activate it:

    activate py35
    

    Finally you can install the desired packages:

    conda install numpy
    

    or, the whole anaconda:

    conda install anaconda
    

    The advantage of this approach is that you can also create Python 3.4 or 3.6 environments. Furthermore, you can create environments with different combinations and versions of libraries.

    Actually, it makes sense to create a new environment for each larger project.

提交回复
热议问题