• <tfoot id='zb78D'></tfoot>
    <legend id='zb78D'><style id='zb78D'><dir id='zb78D'><q id='zb78D'></q></dir></style></legend>
    <i id='zb78D'><tr id='zb78D'><dt id='zb78D'><q id='zb78D'><span id='zb78D'><b id='zb78D'><form id='zb78D'><ins id='zb78D'></ins><ul id='zb78D'></ul><sub id='zb78D'></sub></form><legend id='zb78D'></legend><bdo id='zb78D'><pre id='zb78D'><center id='zb78D'></center></pre></bdo></b><th id='zb78D'></th></span></q></dt></tr></i><div id='zb78D'><tfoot id='zb78D'></tfoot><dl id='zb78D'><fieldset id='zb78D'></fieldset></dl></div>
    • <bdo id='zb78D'></bdo><ul id='zb78D'></ul>

        <small id='zb78D'></small><noframes id='zb78D'>

        如何指定用于创建虚拟环境的 python 版本?

        How to specify python version used to create Virtual Environment?(如何指定用于创建虚拟环境的 python 版本?)

          • <bdo id='UEHVU'></bdo><ul id='UEHVU'></ul>
            • <tfoot id='UEHVU'></tfoot>
            • <i id='UEHVU'><tr id='UEHVU'><dt id='UEHVU'><q id='UEHVU'><span id='UEHVU'><b id='UEHVU'><form id='UEHVU'><ins id='UEHVU'></ins><ul id='UEHVU'></ul><sub id='UEHVU'></sub></form><legend id='UEHVU'></legend><bdo id='UEHVU'><pre id='UEHVU'><center id='UEHVU'></center></pre></bdo></b><th id='UEHVU'></th></span></q></dt></tr></i><div id='UEHVU'><tfoot id='UEHVU'></tfoot><dl id='UEHVU'><fieldset id='UEHVU'></fieldset></dl></div>

                <legend id='UEHVU'><style id='UEHVU'><dir id='UEHVU'><q id='UEHVU'></q></dir></style></legend>

                    <tbody id='UEHVU'></tbody>

                  <small id='UEHVU'></small><noframes id='UEHVU'>

                1. 本文介绍了如何指定用于创建虚拟环境的 python 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  My Python virtual environments use python3.6 when I create them using virtualenv

                  ~ $ virtualenv my_env

                  but I need to use python3.5 as 3.6 is not currently supported by Opencv3.

                  I've tried using the --python=<py_version> flag when creating a virtual environment but this doesn't work.

                  How do I specify the python (3.x) version to install using virtualenv for Mac and/or Linux?

                  解决方案

                  Assuming that you have installed python3 or any desired version of Python (2.6, 2.7, 3.5, 3.6), Now while creating the virtual environment directly pass the python executable path. Hence here are few valid example

                  $ virtualenv new_p2_env # Creates a new default python environment (usually python 2)
                  
                  $ virtualenv -p python3 new_p3_env # Creates a new default python3 (python3 must be a valid command i.e found in the PATH) 
                  

                  And last

                  # Directly point to any version of python binary, this can be even another virtualenv's bin/python. 
                  $ virtualenv -p /path/to/any/bin/python new_env 
                  

                  这篇关于如何指定用于创建虚拟环境的 python 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Split a Pandas column of lists into multiple columns(将 Pandas 的列表列拆分为多列)
                  How does the @property decorator work in Python?(@property 装饰器在 Python 中是如何工作的?)
                  What is the difference between old style and new style classes in Python?(Python中的旧样式类和新样式类有什么区别?)
                  How to break out of multiple loops?(如何打破多个循环?)
                  How to put the legend out of the plot(如何将传说从情节中剔除)
                  Why is the output of my function printing out quot;Nonequot;?(为什么我的函数输出打印出“无?)

                  <tfoot id='z7xUd'></tfoot>
                    <tbody id='z7xUd'></tbody>
                2. <small id='z7xUd'></small><noframes id='z7xUd'>

                    1. <legend id='z7xUd'><style id='z7xUd'><dir id='z7xUd'><q id='z7xUd'></q></dir></style></legend>
                      <i id='z7xUd'><tr id='z7xUd'><dt id='z7xUd'><q id='z7xUd'><span id='z7xUd'><b id='z7xUd'><form id='z7xUd'><ins id='z7xUd'></ins><ul id='z7xUd'></ul><sub id='z7xUd'></sub></form><legend id='z7xUd'></legend><bdo id='z7xUd'><pre id='z7xUd'><center id='z7xUd'></center></pre></bdo></b><th id='z7xUd'></th></span></q></dt></tr></i><div id='z7xUd'><tfoot id='z7xUd'></tfoot><dl id='z7xUd'><fieldset id='z7xUd'></fieldset></dl></div>
                            <bdo id='z7xUd'></bdo><ul id='z7xUd'></ul>