Python activating environment variables
13,429
If you use *csh or fish, use activate.csh
or activate.fish
instead of activate
:
falsetru@ubuntu:/tmp$ tcsh
ubuntu:/tmp> virtualenv aa
New python executable in aa/bin/python
Installing setuptools............done.
Installing pip...............done.
ubuntu:/tmp> source aa/bin/ac
activate activate.csh activate.fish activate_this.py
ubuntu:/tmp> source aa/bin/activate # <----------------
Badly placed ()'s.
ubuntu:/tmp> source aa/bin/activate.csh # <----------------
[aa] ubuntu:/tmp>
Related videos on Youtube
Author by
Admin
Updated on September 15, 2022Comments
-
Admin about 1 year
Using environment variables, successful in creating vartualenv but when I am trying to activate it by myenv/bin/activate it says badly places ()'s.
virtualenv my env source myenv/bin/activate badly placed()'s
I've also tried ./myenv/bin/activate. How do I solve this? where should I place ()'s?
-
Rubber Duck about 9 yearsconsider editing: find which shell you using echo $shell if ../csh then activate.csh etc
-
falsetru about 9 years@RubberDuck,
echo $SHELL
does not show current shell, but the login shell. See this question: stackoverflow.com/questions/3327013/…