File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,19 @@ and the systemwide install use the same python version.
6262OSX
6363===
6464
65+ Short version
66+ -------------
67+
68+ If you are on Python 3, use ``venv `` instead of ``virtualenv ``::
69+
70+ python -m venv my-virtualenv
71+ source my-virtualenv/bin/activate
72+
73+ Otherwise you will need one of the workarounds below.
74+
75+ Long version
76+ ------------
77+
6578On OSX, two different types of Python Builds exist: a regular build and a
6679framework build. In order to interact correctly with OSX through some
6780GUI frameworks you need a framework build of Python.
@@ -80,7 +93,7 @@ The issue has been reported on the virtualenv bug tracker `here
8093Until this is fixed, one of the following workarounds must be used:
8194
8295``PYTHONHOME `` Script
83- ---------------------
96+ ^^^^^^^^^^^^^^^^^^^^^
8497
8598The best known workaround,
8699borrowed from the `WX wiki
@@ -114,7 +127,7 @@ framework build. To run an interactive ``IPython`` session with the framework
114127build within the virtual environment you can do ``frameworkpython -m IPython ``
115128
116129``PYTHONHOME `` Function
117- -----------------------
130+ ^^^^^^^^^^^^^^^^^^^^^^^
118131
119132Alternatively you can define a function in your ``.bashrc `` using
120133
@@ -132,7 +145,7 @@ This function can then be used in all of your virtualenvs without having to
132145fix every single one of them.
133146
134147PythonW Compiler
135- ----------------
148+ ^^^^^^^^^^^^^^^^
136149
137150In addition
138151`virtualenv-pythonw-osx <https://github.com/gldnspud/virtualenv-pythonw-osx >`_
You can’t perform that action at this time.
0 commit comments