virtualenv -p python3 ~/myenv
The option-p
selects the Python interpreter to use, e.g.,
--python=python2.5
will use the python2.5 interpreter to create the new
environment. The default is the python2 interpreter on your path.
source activate env-name
conda env export | grep -v "^prefix: " > environment.yml