將一個用戶下的virtualenv複製到另外一個用戶下。直接複製沒法使用,source後的python依舊是系統自帶的python。python
原始env名:/home/llx/work/nn/nnenv.bakpython2.7
目標env名:/home/llx/work/nn/nnenvspa
1. 在新用戶下建新的virtualenvit
virtualenv /home/llx/work/nn/nnenvvirtualenv
2. 將nnenv.bak/lib/python2.7/site-packages下全部文件替換到nnenv/lib/python2.7/site-packages/下文件
cd /home/llx/work/nn/nnenv.bak/lib/python2.7/site-packages/vi
cp -r * /home/llx/work/nn/nnenv/lib/python2.7/site-packages/系統