Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot activate virtualenv environment -- tensorflow

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
like image 769
Joy Li Avatar asked May 18 '17 05:05

Joy Li


2 Answers

Tried:

source ~/tensor_flow/bin/activate

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

like image 166
levenshtein Avatar answered Oct 19 '22 23:10

levenshtein


Instead of using

source ~/tensorflow/bin/activate.csh

try:

csh ~/tensorflow/bin/activate.csh

this fixes the problem.

like image 28
Imanaba Avatar answered Oct 20 '22 00:10

Imanaba