virtualenv 指定 python 解释器的版本方法
使用如下命令为ubuntu系统安装virtualenv
sudoapt-getinstallpython-virtualenv
当我们使用virtualenv命令创建虚拟环境时,默认使用的python解释器为/usr/bin/python27(然后创建该解释器对应的副本),那么我们该如何指定解释器的版本呢?
使用参数-p
$sudovirtualenv-p~/anaconda3/bin/pythontest
以上这篇virtualenv指定python解释器的版本方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。