python - Importing third-party modules within a virtualenv -


following trouble described here trying install older wpython inside virtualenv, downloaded dmg directly in browser, , (after needing right-click on .pkg), got installed.

when open intepreter, confirm can import wx.

yet when recreate virtualenv, activate it, , open intepreter:

(venv)macbook-pro-de-pyderman:projet pyderman$ python python 2.6.6 (r266:84374, aug 31 2010, 11:00:51)  [gcc 4.0.1 (apple inc. build 5493)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import wx traceback (most recent call last):   file "<stdin>", line 1, in <module> importerror: no module named wx 

is there step missing respect being able import third-party modules within virtualenv?

you should try creating virtualenv --system-site-packages option. allow access packages installed @ system level, ones install dmg image.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -