ยง2024-12-14
- The most basic way to create a new environment is with the following command:
conda create -n <env-name>
- To add packages while creating an environment, specify them after the environment name:
conda create -n myenvironment python numpy pandas
For example:
alexlai@ApiServer:~$ ~/anaconda3/bin/conda create -n PY-3.10.15-R-4.4.2 python=3.10.15 r-base=4.4.2
Channels:
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- r-base=4.4.2*
Current channels:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
``