clone by conda
1. step 1
conda create -n tf --clone rcnn
2. step 2
conda remove -n rcnn --all
3. Installation
This document contains detailed instructions for installing the necessary dependencied for TransT. The instructions have been tested on Ubuntu 18.04 system.
4. python -c参数,支持执行单行命令/脚本。
例:
> python -c "import os;print('hello'),print('world')"
> python -c "import os;print('hello');print('world')"
注意:要用双引号将命令包起来,import要以**;结尾,命令用[]括起来,多行命令用多个[]**
> python -c "import os,time;[print(i) for i in os.listdir()];[print(time.time())]"
> python -c "import os,time;[print(i) for i in os.listdir()],[print(time.time())]"
复杂的命令必须要用**[]**括起来,否则会报错。
格式上还可以多尝试一下:
> python -c "print('hello');print('world')"
> python -c "print('hello'),print('world')"
> python -c "[print('hello'),print('world')]"
> python -c "[print('hello')],[print('world')]"