Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 18fc72a

Browse filesBrowse files
committed
Added simple solution of creating frameworkpython alias to OSX virtualenv fixing
1 parent 4654a9f commit 18fc72a
Copy full SHA for 18fc72a

File tree

Expand file treeCollapse file tree

1 file changed

+21
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+21
-1
lines changed

‎doc/faq/virtualenv_faq.rst

Copy file name to clipboardExpand all lines: doc/faq/virtualenv_faq.rst
+21-1Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ The issue has been reported on the virtualenv bug tracker `here
7777
<https://github.com/pypa/virtualenv/issues/54>`__ and `here
7878
<https://github.com/pypa/virtualenv/issues/609>`__
7979

80-
Until this is fixed, a workaround is needed. The best known workaround,
80+
Until this is fixed, one of the following workarounds.
81+
82+
``PYTHONHOME`` Script
83+
---------------------
84+
85+
The best known workaround,
8186
borrowed from the `WX wiki
8287
<http://wiki.wxpython.org/wxPythonVirtualenvOnMac>`_, is to use the non
8388
virtualenv python along with the PYTHONHOME environment variable. This can be
@@ -108,6 +113,21 @@ framework build within the virtualenv. To run a script you can do
108113
framework build. To run an interactive ``IPython`` session with the framework
109114
build within the virtual environment you can do ``frameworkpython -m IPython``
110115

116+
``PYTHONHOME`` Alias
117+
--------------------
118+
119+
Alternatively you can define an alias in your ``.bashrc`` using
120+
121+
.. code:: bash
122+
123+
alias frameworkpython='PYTHONHOME=$VIRTUAL_ENV /usr/local/bin/python'
124+
125+
This alias can then be used in all of your virtualenvs without having to
126+
fix every single one of them.
127+
128+
PythonW Compiler
129+
----------------
130+
111131
In addition
112132
`virtualenv-pythonw-osx <https://github.com/gldnspud/virtualenv-pythonw-osx>`_
113133
provides an alternative workaround which may be used to solve the issue.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.