擅长:python、mysql、java
<p>创建环境时使用此选项:</p>
<pre><code>virtualenv python=/usr/bin/python3.6
</code></pre>
<p>但是如果您想使用venv,首先,检查您的终端中的<code>python3</code>是否如您所愿引用<code>python3.6</code>。在</p>
<p>如果不是-使用python3.6的完整路径运行命令,而不是<code>python3 -m venv venv</code>中的唯一<code>python3</code>。在</p>
<p>编辑:为什么你的别名python3是指python3.7-这可能取决于你使用的操作系统和安装顺序。很难说。在</p>