"Compiling" Python to run on another machine
<p>I have created a simple-medium complexity script written in Python using Pycharm on my laptop and I wish to run this on my Raspberry Pi using Crontab. All of my past programming experience has been with C++ and C# in Windows and so I would normally just do a build of the project and it all gets compiled and linked into a single executable file.</p>

<p>For Python how do you "compile" the script so that it can be run on another PC? I use some external libraries (requests and ImgurClient) which I had to install using the Pycharm app. I guess I'm correct in thinking that these need to be taken across to the RaspPi too? My script is in two files and so do I need to copy both of these files across? Is there a way to build them into a single file to use easily?</p>

<p>This is my first script which I've written just from my knowledge of other languages and a bit of Googling. Just don't know how to proceed now that I have the actual script.</p>

<p>As the other answers have said, you can just run your code on the Pi, because Python code is interpreted and not complied.</p>

<p>That being said, you will need to install any python packages, like the ImgurClient beforehand. If you did this with PyCharm on you PC, you will likely have to use <a href="http://www.pythonforbeginners.com/basics/python-pip-usage" rel="nofollow">pip</a> on the Pi.</p>

python cron pycharm