python - 无法激活 virtualenv 环境 -- tensorflow

标签 python tensorflow virtualenv

我正在尝试安装 tensorflow。我使用 pip3 成功下载了 tensorflow。但是当我尝试通过以下方式激活环境时:

source ~/tensorflow/bin/activate 
我的提示没有改变。

当我尝试时:

source ~/tensorflow/bin/activate.csh

它说:

-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

最佳答案

尝试过:

source ~/tensor_flow/bin/activate

[没有 .csh 扩展名] 它对我有用。

关于python - 无法激活 virtualenv 环境 -- tensorflow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44039049/

相关文章:

tensorflow - Tensorflow lite 对象检测示例中相机的屏幕尺寸

python - 使用 virtualenv 恢复 `--no-site-packages` 选项

python - 为什么 matplotlib 直方图的 `normed` 参数没有任何作用?

python - 是否有用于实时视频输入的 Python 库?

python - Python 中的振荡值

python - Python中IF语句的评估

tensorflow - 如何重命名符合名称范围的变量?

python - 过滤 Tensorflow 数据集中的 NaN 值

python - 安装 virtualenvwrapper-powershell 时参数错误

python - pip 和 virtualenv(没有 virtualenvwrapper): pip install package_name gives permission denied but using sudo installs globally