On Pycharm 5.0.4…
- Open the file (i.e. by double clicking in explorer)
- Navigate to File->Settings…
- Expand the Project tab on the left and select ‘project interpreter’ from the options that appear beneath
- Set your project interpreter from the dropdown menu, and you should be able now to run your file without creating a project