cannot activate virtualenv environment -- tensorflow

Viewed 5402

I'm trying to install tensorflow. I downloaded tensorflow successfully using pip3. But when I try to activate environment by:

source ~/tensorflow/bin/activate 
my prompt doesn't change.

When I tried:

source ~/tensorflow/bin/activate.csh

it says:

-bash: alias: deactivate: not found
-bash: alias: `test $?_OLD_VIRTUAL_PATH !': invalid alias name
-bash: setenv: command not found
-bash: setenv: command not found
-bash: /Users/bingyaoli/tensorflow/bin/activate.csh: line 37: syntax error: unexpected end of file

3 Answers

Tried:

source ~/tensor_flow/bin/activate

[sans the .csh extension] and it worked for me.

It's because you're not as the sudo user at the terminal.

Try giving "su username"

then it will ask password; give that and then give

"source ~/tensorflow/venv/bin/activate" (based on whatever path you have),

it will work!

Related