python
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python [2020/02/18 20:38] – root | python [2025/10/15 19:51] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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 / | $ cat / | ||
| 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 | ||
python.1582058318.txt.gz · Last modified: (external edit)
