Editing Pi Setup Dec 2018 - Stretch

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 285: Line 285:
 
= Get Python 3.6 =
 
= Get Python 3.6 =
  
* Why 3.6?  Well it is almost up to date, and I love f-strings  "print the str of an expression {some_expression}" I do not want to program without it.
+
* Most methods I have tried are not very satisfactoryIncluding building from source.
  
* Most methods I have tried are not very satisfactoryIncluding building from source. Problems include lack of software distribution command like pip to upgrade it.
+
* What did work?: berryconda which also gave me conda and pip useful install toolsLink: tbd
  
* What did work?: berryconda which also gave me conda and pip useful install tools.  Link:  *'''[https://github.com/jjhelmus/berryconda jjhelmus/berryconda: Conda based Python distribution for the Raspberry Pi ]'''  After install pretty much typing '''python joe.py''' worked.  But in some cases it did not.  So in some files I used the command more explicitly: 
 
 
<pre>
 
 
# -------------- smart_terminal:run ------------
 
 
proc = Popen( [r"cd  /home/pi/SmartTerminal/; /home/pi/berryconda3/bin/python smart_terminal.py"], shell=True )
 
 
# -------------- smart_plug_graph:run ------------
 
 
proc = Popen( [r"cd /home/pi/smart_plug/  ; /home/pi/berryconda3/bin/python smart_plug_graph.py"], shell=True ) 
 
 
# -------------- smart_plug:run ------------
 
 
proc = Popen( [r"cd /home/pi/smart_plug/  ; /home/pi/berryconda3/bin/python smart_plug.py"], shell=True ) 
 
 
#proc = Popen( [ "leafpad /home/pi/smart_plug/smart_plug.py"], shell=True ) #
 
 
print( " autoexec.py all done " )
 
 
 
</pre>
 
 
And conda  install ...... works.  I cannot remember if pip was in place, if not install with conda.  Then the conda and pip installs go into your 3.6 install.
 
  
 
= Change Terminal Colors =
 
= Change Terminal Colors =

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)