channel=anaconda (a.k.a the default location) These locations are called "channels", which can be thought of as the remote/cloud repository in which anaconda looks for the package. $ conda create -name my-virtenv-R-4d1 -c conda-forge r-base=4.1 -yes Explaining Anaconda "channels"Īn overwhelming majority of research software (including R, Python, Julia and more) is available via anaconda in one of three locations. The commands below will create an isolated environment in your HOME folder in the following location ~/.conda/envs/my-virtenv-R-4d1 with only R 4.1 installed. At this point, you can use either conda to install additional Python packages into the environment or Python's native package manager, PyPi, to install whatever Python package(s). In many ways, you are the system administrator of this Python installation as you have full read/write/execute privileges inside of that folder in your HOME directory. Once the environment is activated, you have full control over what Python packages are installed into the environment. $ conda create -name my-virtenv-p圓9 python=3.9 -yes The commands below will create an isolated environment in your HOME folder in the following location ~/.conda/envs/my-virtenv-p圓9 with only Python 3.9 installed. Once activated, you can then install packages into that environment: conda install īelow we demonstrate examples of using anaconda to install Python and R. Then activate the environment: conda activate Where is the name your want for your environment. To create a new Conda environment in your home directory, enter: conda create -name
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |