Changes between Version 7 and Version 8 of cypress/AnacondaInstallPackage
- Timestamp:
- 11/30/22 18:11:04 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/AnacondaInstallPackage
v7 v8 1 1 ==== Install Packages to Anaconda Python ==== 2 2 3 For this example, we assume you have loaded the "anaconda3/ 5.1.0", but you can use another version if you want.3 For this example, we assume you have loaded the "anaconda3/2019.03", but you can use another version if you want. 4 4 5 5 {{{ 6 module load anaconda3/ 5.1.06 module load anaconda3/2019.03 7 7 }}} 8 8 9 'conda' is the command to add packages to Anaconda python distribution. However, since you don't have apermission in /share/apps/anaconda, it won't work.9 'conda' is the command to add packages to Anaconda python distribution. However, since you don't have permission in /share/apps/anaconda, it won't work. 10 10 There is a workaround. Here, for example, we want to add 'vtk' python wrapper library. You try: 11 11 … … 36 36 }}} 37 37 38 'my_root' is the name of environment that you decide.38 'my_root' is the name of the environment that you decide. 39 39 40 40 Also, in general in conda environments, python should not be using PYTHONPATH. (For more information, see https://conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#conda-reports-that-a-package-is-installed-but-it-appears-not-to-be.) … … 63 63 }}} 64 64 65 From next time, to use Anaconda python with your environment,65 Next time, to use Anaconda python with your environment, 66 66 {{{ 67 module load anaconda3/ 5.1.067 module load anaconda3/2019.03 68 68 export CONDA_ENVS_PATH=/lustre/project/mygroup/myuser/conda-envs 69 69 unset PYTHONPATH 70 70 source activate my_root 71 71 }}} 72 You have to state above commands in your script when you run python on batch jobs.72 You have to state the above commands in your script when you run python on batch jobs. 73 73