Skip to content

Commit

Permalink
Update ml-images-ReadMe.md
Browse files Browse the repository at this point in the history
Fix incorrect format in showing the context of pyvenv.cfg
  • Loading branch information
yesw2000 committed Sep 13, 2024
1 parent d163a1c commit 35b2fa7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ml-images-ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,13 @@ consequently concealing packages with identical names in the new environment.
Thankfully, the [pyvenv.cfg](https://python.readthedocs.io/en/latest/library/site.html?highlight=pyvenv%20cfg) file,
specifically designed for Python virtual environments, offers a solution to the above challenge:

> Singularity> cat pyvenv.cfg
> home = /cvmfs/unpacked.cern.ch/.flat/8e/8e1e32f4a80a16356dde5c933638471b7d43f042ee163b8cdba36c8b504227f6/opt/conda/bin
> **include-system-site-packages** = true
> version = 3.9.19
> Singularity>
```shell
Singularity> cat pyvenv.cfg
home = /cvmfs/unpacked.cern.ch/.flat/8e/8e1e32f4a80a16356dde5c933638471b7d43f042ee163b8cdba36c8b504227f6/opt/conda/bin
**include-system-site-packages** = true
version = 3.9.19
Singularity>
```

In the file, the parameter *include-system-site-packages* is set to true, and the `python3`
in the new environment directory is **sym-linked** to the `python3` from the image path.
Expand Down

0 comments on commit 35b2fa7

Please sign in to comment.