This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
python [2020/02/06 21:49] root |
python [2022/02/18 20:21] root old revision restored (2020/12/21 19:29) |
||
---|---|---|---|
Line 19: | Line 19: | ||
Some examples of conda commmands are shown below. This shows environments or subversions that have different Python module configurations. If unspecified you will be using the starred " | Some examples of conda commmands are shown below. This shows environments or subversions that have different Python module configurations. If unspecified you will be using the starred " | ||
+ | |||
< | < | ||
$ module load python/ | $ module load python/ | ||
- | $ source conda-3.7.3.sh | + | $ source |
(base) $ conda info --envs | (base) $ conda info --envs | ||
# conda environments: | # conda environments: | ||
Line 42: | Line 43: | ||
The first time you run '' | The first time you run '' | ||
+ | |||
< | < | ||
CommandNotFoundError: | CommandNotFoundError: | ||
Line 57: | Line 59: | ||
IMPORTANT: You may need to close and restart your shell after running 'conda init'. | IMPORTANT: You may need to close and restart your shell after running 'conda init'. | ||
</ | </ | ||
- | If you then do '' | + | |
+ | If you then do '' | ||
< | < | ||
- | $ cat conda-3.7.3.sh | + | $ cat / |
# >>> | # >>> | ||
# !! Contents within this block are managed by 'conda init' !! | # !! Contents within this block are managed by 'conda init' !! | ||
Line 78: | Line 82: | ||
< | < | ||
$ module load python/ | $ module load python/ | ||
- | $ source conda-3.7.3.sh | + | $ source |
(base) $ | (base) $ | ||
</ | </ | ||
Line 150: | Line 154: | ||
</ | </ | ||
To add a module not in the pip list, | To add a module not in the pip list, | ||
+ | |||
< | < | ||
pip install peppercorn --user | pip install peppercorn --user | ||
</ | </ | ||
+ | |||
To add a module with a different version than the pip list: | To add a module with a different version than the pip list: | ||
+ | |||
< | < | ||
pip install lxml --user --ignore-installed | pip install lxml --user --ignore-installed | ||
</ | </ | ||
+ | |||
To show your local modules, which will be used preferentially to the system modules: | To show your local modules, which will be used preferentially to the system modules: | ||
+ | |||
< | < | ||
$ pip list --user | $ pip list --user |