colab使用github上的项目
import os
work_dir = “/content/TensorFlow-Tutorials/”
if not os.path.exists(work_dir):
!git clone https://github.com/Hvass-Labs/TensorFlow-Tutorials.git
os.chdir(work_dir)
切换1.x版本tensorflow
%tensorflow_version 1.x
import tensorflow as tf
tf.version
github直接用
!pip install git+https://github.com/Koukyosyumei/secure_ml
切换路径
使用!cd 是没用的
import os
os.chdir("/content/pylearn2")