Share package between virtual environments

I'm getting started with PyCharm.  I want to use it to develop multiple wxPython projects. 

I have a virtual environment (created outside of PyCharm) in which I have installed wxPython.  I would like to share this package with virtual environments created by PyCharm.  (Installing wxPython takes a long time to build and is more than 400Mb.  I don't want multiple identical copies in each PyCharm venv.)

Should I just edit the PYTHONPATH environment variable to point to the pre-installed wxPython package or is there a better way?

0
2 comments

Hi, why don't install wxPython for the system interpreter, and then when you create venv from that interpreter in PyCharm you can select to inherit global packages.

0
Avatar
Permanently deleted user

Thanks for the quick response.  I'll give that a try. 

There's a small chance that I might have different versions of wxPython used by different projects.  But I'll cross that bridge when I come to it.

0

Please sign in to leave a comment.