我有Python 3.6.8。作为我的Ubuntu 18笔记本电脑上Python的默认Python3版本。
当我使用virtualenv
创建虚拟环境时,我得到了Python 3.6.7。
23:14 /scratch-06: 1998$ python3 -V
Python 3.6.8
23:14 /scratch-06: 1999$ which python3
/usr/local/bin/python3
23:14 /scratch-06: 2000$ virtualenv venv-06
Using base prefix '/usr'
New python executable in /home/john/scratch-06/venv-06/bin/python3
Also creating executable in /home/john/scratch-06/venv-06/bin/python
Installing setuptools, pip, wheel...
done.
23:15 /scratch-06: 2001$ source venv-06/bin/activate
(venv-06) 23:15 /scratch-06: 2002$ python3 -V
Python 3.6.7
(venv-06) 23:15 /scratch-06: 2003$ which python3
/home/john/scratch-06/venv-06/bin/python3
(venv-06) 23:16 /scratch-06: 2004$
为什么它不给我3.6.8,如何控制它?