相关疑难解决方法(0)

是否可以在Google-colab中激活virtualenv?(/ bin / sh:1:来源:找不到)

我正在尝试在Google Colab中安装theano进行测试。我已经安装virtualenv并创建了一个环境:

!pip3 install virtualenv
!virtualenv theanoEnv
Run Code Online (Sandbox Code Playgroud)

但是,即使明确提到了“ activate”命令的位置,也无法激活虚拟环境。

!source /content/theanoEnv/bin/activate theanoEnv
Run Code Online (Sandbox Code Playgroud)

错误消息是:

/bin/sh: 1: source: not found
Run Code Online (Sandbox Code Playgroud)

甚至有可能做?

source /[SomeVirtualEnv]/bin/activate SomeVirtualEnv
Run Code Online (Sandbox Code Playgroud)

virtualenv theano google-colaboratory

7
推荐指数
2
解决办法
2329
查看次数

标签 统计

google-colaboratory ×1

theano ×1

virtualenv ×1