我正在尝试在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)