I am a relatively new user of PyCharm/python, and was looking for advice about how to efficiently install packages. I have made several separate 'projects' which have small amounts of code, but all have similar packages installed. Some of these packages take up quite a lot of disc space (e.g. tensor flow is taking up 1GB), and seem to have been installed separately for each project. Is there an easy way to make sure multiple projects have access to these package files without installing them multiple times? Thanks
see as described above
I would first like to recommend two ways of doing that just with python. It will work for PyCharm, but also without it.
PYTHONPATHenvironment variable. Simply add a path to the module to it before running your script.*.pthfile in your venvs. Search for it here.The way to do that in PyCharm could be reusing a single venv for multiple projects.
File > Settings > Project: ... > Python Interpreterand select the existing interpreter.Create Projectwindow, in the sectionPython Interpreter: ...selectPreviously configured interpreterand choose the existing interpreter.