...
How to install a specific package?
Users can not and should not install packages in existing python environments.
Users need to create their own python environment to install their own packages.
Users could install a specific python package to avoid conflict or add functionality.
How to solve dependency conflict?
The conda
have has the capability to solve some dependency
conflictconflicts, but it cost time and is not
guarantee guaranteed to work.
- User
Users could create a python environment from scratch, then
Install the package which caused the conflict first.
Install other packages according to the conflicting package requirement.
How to use Customized Python Environment in HAL-OnDemand?
- Users need to install
conda install ipykernel
in order to select and/or switch their own conda environment in HAL-OnDemand.
Lists of Existing Anaconda EnvironmentsÂ
...
Code Block |
---|
language | bash |
---|
title | Create a New Env from Existing Env |
---|
|
conda create --name=<newnew_env>env --clone=opence-v1.5.1 |
The new Conda environment will be located within $HOME/.conda/envs/<newnew_env>env, then users can search and/or install python packages via Conda
Code Block |
---|
language | bash |
---|
title | Example: Search for a New Package |
---|
|
conda search r-tensorflow |
Create Conda Environment from Scratch
...
Code Block |
---|
language | bash |
---|
title | Create a New Env from Existing Env |
---|
|
conda create --name=<newnew_env_name>name |
Search Packages in All Default Channels
...
Install a package from the result of the search
Code Block |
---|
(<newnew_env_name>name)[<useruser_id>@halid@hal-login2 ~]# conda search openblas
...
openblas 0.3.12 pthreads_hca0ad1f_0 conda-forge
openblas 0.3.12 pthreads_hca0ad1f_1 conda-forge
openblas 0.3.13 h6ffa863_0 pkgs/main
openblas 0.3.13 h6ffa863_1 pkgs/main
openblas 0.3.13 openmp_h25a920f_0 conda-forge
openblas 0.3.13 pthreads_h92053e5_0 conda-forge
...
(<newnew_env_name>name)[<useruser_id>@halid@hal-login2 ~]# conda install openblas=0.3.13=openmp_h25a920f_0 |
...