Initialize Anaconda
出自 DDCC TCAD TOOL Manual
於 2019年4月22日 (一) 21:11 由 Yrwu (對話 | 貢獻) 所做的修訂 (已建立頁面,內容為 "# List environments --------------- $ conda env list # Create environment with preinstalled packages --------------- $ conda create -n my_env numpy #create my...")
- List environments ---------------
$ conda env list
- Create environment with preinstalled packages ---------------
$ conda create -n my_env numpy #create my_env, install numpy $ conda create -n py2 python=2 #create py2, install python ver.=2 $ conda create -n py3 python=3 #create py3, install python ver.=3 $ conda env list base * /Users/RAYMOND/anaconda3 my_env /Users/RAYMOND/anaconda3/envs/my_env py2 /Users/RAYMOND/anaconda3/envs/py2 py3 /Users/RAYMOND/anaconda3/envs/py3 /Users/RAYMOND/miniconda3 # Enter environment --------------- # * indicates which environment we are using $ source activate py2 (py2) $ conda env list base /Users/RAYMOND/anaconda3 my_env /Users/RAYMOND/anaconda3/envs/my_env py2 * /Users/RAYMOND/anaconda3/envs/py2 py3 /Users/RAYMOND/anaconda3/envs/py3 /Users/RAYMOND/miniconda3 (py2) $ python Python 2.7.14 |Anaconda, Inc.| (default, Mar 27 2018, 12:28:59) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
- Exit environment ---------------
(py2) $ source deactivate
- Delete environment ---------------
$ conda env remove -n my_env $ conda env remove -n py2 $ conda env remove -n py3 $ conda env list base * /Users/RAYMOND/anaconda3 /Users/RAYMOND/miniconda3