pipenv on top of python2 spack-created

12 views
Skip to first unread message

doutr...@llnl.gov

unread,
May 10, 2021, 4:08:43 PM5/10/21
to Spack
I built a "root" python2 with spack (conataining pytorch, scipy, horoved, etc..)

Now I would like to create a virtual env on top of this

From a blank terminal (no spacktivate or anything) I get:

/usr/workspace/aml_user/vidya/ALE/blueos_3_ppc64le_ib_p9/kull.spack.env/kull.pytorch/.spack-env/view/bin/python2 -m virtualenv --system-site-packages python2_20210510
/usr/workspace/aml_user/vidya/ALE/blueos_3_ppc64le_ib_p9/kull.spack.env/kull.pytorch/.spack-env/view/bin/python2: No module named virtualenv

After activating the correct spack and spactivating the env i get:

[]$ which python2
/usr/workspace/aml_user/vidya/ALE/blueos_3_ppc64le_ib_p9/kull.spack.env/kull.pytorch/.spack-env/view/bin/python2
[:ALE]$ /usr/workspace/aml_user/vidya/ALE/blueos_3_ppc64le_ib_p9/kull.spack.env/kull.pytorch/.spack-env/view/bin/python2 -m virtualenv --system-site-packages python2_20210510
New python executable in /usr/gapps/vidya/blueos_3_ppc64le_ib_p9/ALE/python2_20210510/bin/python2
Also creating executable in /usr/gapps/vidya/blueos_3_ppc64le_ib_p9/ALE/python2_20210510/bin/python
ERROR: The executable /usr/gapps/vidya/blueos_3_ppc64le_ib_p9/ALE/python2_20210510/bin/python2 is not functioning
ERROR: It thinks sys.prefix is u'/usr/WS1/aml_user/tools/spack/opt/spack/linux-rhel7-power9le/clang-9.0.blueos.kull/python-2.7.13-74bbkhnrrlgcqgay76fwmyjq36dnvtjb' (should be u'/usr/gapps/vidya/blueos_3_ppc64le_ib_p9/ALE/python2_20210510')
ERROR: virtualenv is not compatible with this system or executable


This is built with spack 0.16.1 on a p9 machine (rzansel)

Any hint welcome.
Reply all
Reply to author
Forward
0 new messages