How can I make a package from my PyCharm project available to other PyCharm projects on my computer?
<p>I am not sure if this is a Python or a PyCharm question. I think that it is quite simple, but I could not find a solution anywhere.</p>

<p>I have started to write a collection of modules with utility stuff. Now I want to import one of my packages in several of my other projects. What do I have to do to be able to simply write <code>import my_module</code>, so that Python finds the right one automatically?</p>

<p>I would like to set this up on a Mac and a PC, so advice on both platforms is appreciated.</p>

<p>It's not pyCharm issue. You have to give python information of the place your module live, to do that update <code>PYTHONPATH</code>, if you're using bash (OS X,GNU/Linux distro), add this to your <code>~/.bashrc</code> or <code>~/.bash_profile</code></p>

<pre><code>export PYTHONPATH="${PYTHONPATH}:/path/to/my_module"
</code></pre>

<p>Also you can checkout that article <a href="https://support.enthought.com/hc/en-us/articles/204469160-How-do-I-set-PYTHONPATH-and-other-environment-variables-for-Canopy-" rel="nofollow">How do I set PYTHONPATH </a> and SO <a href="http://stackoverflow.com/questions/19917492/how-to-use-pythonpath">How to use PYTHONPATH</a> question to get more info.</p>

<p>To avoid duplicating answer adding a link to give info of how to update PYTHONPATH on Windows: <a href="http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7?answertab=votes#tab-top">How to add to the pythonpath in windows 7?</a> </p>

<p>After you should be able to import your module.</p>

python pycharm