Reputation:
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?
Upvotes: 18
Views: 19622
Reputation: 1
I had trouble because of typing
".virtualenv/MyEnv/bin/activate"
instead of
". virtualenv/MyEnv/bin/activate"
missed the blank space. try!
Upvotes: -2
Reputation: 369064
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>
Upvotes: 49