Python activation environment variables

Using environment variables that successfully create vartualenv, but when I try to activate it with myenv / bin / activate, it says badely places () has.

virtualenv my env
source myenv/bin/activate
badly placed()'s

I also tried. / myenv / bin / activate. How can i solve this? where should i put ()?

+4
source share
2 answers

If you use * csh or fish, use activate.cshor activate.fishinstead 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>
+14
source

I had problems because of entering ".virtualenv / MyEnv / bin / activate" instead of ". Virtualenv / MyEnv / bin / activate" skipped the space. try it!

-2

Source: https://habr.com/ru/post/1526002/


All Articles