File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,19 @@ and the systemwide install use the same python version.
62
62
OSX
63
63
===
64
64
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
+
65
78
On OSX, two different types of Python Builds exist: a regular build and a
66
79
framework build. In order to interact correctly with OSX through some
67
80
GUI frameworks you need a framework build of Python.
@@ -80,7 +93,7 @@ The issue has been reported on the virtualenv bug tracker `here
80
93
Until this is fixed, one of the following workarounds must be used:
81
94
82
95
``PYTHONHOME `` Script
83
- ---------------------
96
+ ^^^^^^^^^^^^^^^^^^^^^
84
97
85
98
The best known workaround,
86
99
borrowed from the `WX wiki
@@ -114,7 +127,7 @@ framework build. To run an interactive ``IPython`` session with the framework
114
127
build within the virtual environment you can do ``frameworkpython -m IPython ``
115
128
116
129
``PYTHONHOME `` Function
117
- -----------------------
130
+ ^^^^^^^^^^^^^^^^^^^^^^^
118
131
119
132
Alternatively you can define a function in your ``.bashrc `` using
120
133
@@ -132,7 +145,7 @@ This function can then be used in all of your virtualenvs without having to
132
145
fix every single one of them.
133
146
134
147
PythonW Compiler
135
- ----------------
148
+ ^^^^^^^^^^^^^^^^
136
149
137
150
In addition
138
151
`virtualenv-pythonw-osx <https://github.com/gldnspud/virtualenv-pythonw-osx >`_
You can’t perform that action at this time.
0 commit comments