A
A
Alan Chernov2017-05-08 16:13:51
linux
Alan Chernov, 2017-05-08 16:13:51

Why is virtualenv activated under root, but under user it gives an error -sh: 3: source: not found?

I'm trying to activate the virtual environment under the user and gives an error, although everything is activated under root.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
marazmiki, 2017-05-08
@alankaupervud

It seems that bash or something compatible is used as a shell under root, and something else is used under the user under which the error pops up. To test your guess, do echo $SHELLas root and normal user.

D
dummyman, 2017-05-08
@dummyman

Several conditions need to be checked:

  • user home folder exists
  • home folder is owned by the user
  • there is enough free space on the hard disk or RAM
  • writable folder /tmp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question