puppet-python icon indicating copy to clipboard operation
puppet-python copied to clipboard

systempkgs = true breaks pyvenv

Open Amar-Chaudhari opened this issue 8 years ago • 1 comments

Setting systempkgs => true, in pyvenv gives the following error -

Could not evaluate: Could not find command '/opt/jupyterhubenv_p34/bin/pip'

Virtual Env Dir:

 ls -l /opt/jupyterhubenv_p34/bin/
total 12
-rw-r--r--. 1 root root 2164 Sep 15 18:30 activate
-rw-r--r--. 1 root root 1280 Sep 15 18:30 activate.csh
-rw-r--r--. 1 root root 2416 Sep 15 18:30 activate.fish
lrwxrwxrwx. 1 root root    9 Sep 15 18:30 python -> python3.4
lrwxrwxrwx. 1 root root    9 Sep 15 18:30 python3 -> python3.4
lrwxrwxrwx. 1 root root   18 Sep 15 18:30 python3.4 -> /usr/bin/python3.4

Also default pip in the virtual env seems to be python2.7 :

(jupyterhubenv_p34) [vagrant@amar-test-centos7 ~]$ pip -V   
pip 7.1.0 from /usr/lib/python2.7/site-packages (python 2.7)

Amar-Chaudhari avatar Sep 15 '16 18:09 Amar-Chaudhari

I suspect this is because the system packages are python 2.7 and your pyvenv is 3.4. You don't want to be able to mix those versions.

vthyng avatar Apr 14 '17 16:04 vthyng