title: Run Python in Android Terminal
body: <p>I have a Android 5.1 CM12 (rooted, supersu, busybox) and try to access Python For Android (PythonForAndroid_r5.apk) by Android Terminal.</p>
  
  <p>I have followed this Tutorial:
  <a href="http://lifepluslinux.blogspot.de/2015/01/installing-python-on-android-50.html" rel="nofollow">http://lifepluslinux.blogspot.de/2015/01/installing-python-on-android-50.html</a></p>
  
  <p>this is the script I use (python2):</p>
  
  <pre><code>    export EXTERNAL_STORAGE=/mnt/sdcard
  
      PYTHONPATH=${EXTERNAL_STORAGE}/com.googlecode.pythonforandroid/extras/python
      PYTHONPATH=${PYTHONPATH}:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload
      export PYTHONPATH
      export TEMP=${EXTERNAL_STORAGE}/com.googlecode.pythonforandroid/extras/python/tmp
      export PYTHON_EGG_CACHE=$TEMP
      export PYTHONHOME=/data/data/com.googlecode.pythonforandroid/files/python
      export LD_LIBRARY_PATH=/data/data/com.googlecode.pythonforandroid/files/python/lib
  /data/data/com.googlecode.pythonforandroid/files/python/bin/python "$@"
  </code></pre>
  
  <p>python2 and sh are located in system/bin/</p>
  
  <p>but when I execute these script I get:</p>
  
  <pre><code>C:\Users\bla&gt;adb shell python2
  : not found/python2[2]:
  : is not an identifier: export: PYTHONPATH
  </code></pre>
  
  <p>What tell me this error! And how to fix it?</p>