Editing Python Installation

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 1: Line 1:
 
Title is a bit misleading as these are not general notes, but notes on how I install and how you might get some of my applications ( see the categoy below on Python Projects 0) [[Category:Python Projects]]
 
Title is a bit misleading as these are not general notes, but notes on how I install and how you might get some of my applications ( see the categoy below on Python Projects 0) [[Category:Python Projects]]
 +
 +
  
 
= Basic Install =
 
= Basic Install =
  
I use the Anaconda installation because it gives a wide range of Python Packages, A Package and Virtual Environment Manager, a very good Python IDE ( Spyder ), IPython, Juypter Notebooks... all in one install. Read below all the way through.
+
I use the Anaconda installation because it gives a wide range of Python Packages, A Package and Virtual Environment Manager, a very good Python IDE ( Spyder ), IPython, Juypter Notebooks... all in one install.
 
 
I have links at the bottom of the page.
 
* Download
 
* Install
 
* Run Anaconda from link on desktop ( if one is missing in window, type Navigator, right click, say open folder, say send shortcut to desktop )
 
* But install often goes to odd location like the hidden folder ProgramData.  This can cause ownership and permission issues.  So I pick my own directory like c:/apps/Anaconda  ... i own this, it is shorter, and there are no spaces in the full path name.  But do what you like best.
 
  
  
Line 29: Line 25:
 
When pip fails consider setup.py, usually will have a readme file in the package for your guidance... after this there is still google or the author of the software you are using this package for.
 
When pip fails consider setup.py, usually will have a readme file in the package for your guidance... after this there is still google or the author of the software you are using this package for.
  
= Some Packages I use -- Not in the Anaconda Distribution =
+
= Some Packages I use not in the Anaconda Distribution =
  
 
I always used conda first and if that does not work move on to pip if that does not work perhaps setup.py
 
I always used conda first and if that does not work move on to pip if that does not work perhaps setup.py
 +
  
  
Line 38: Line 35:
 
* Why:  For Python to access the system clipboard.  Get Copy and Paste working in your applications  
 
* Why:  For Python to access the system clipboard.  Get Copy and Paste working in your applications  
 
* Install: pip install pyperclip
 
* Install: pip install pyperclip
* May be used in Clipboard, EasyDB, TwitterDB ([[Category:Twitter Analysis DB]]) SmartTerminal
+
* May be used in Clipboard, EasyDB, TwitterDB  SmartTerminal
  
 
== Spacy ==
 
== Spacy ==
Line 47: Line 44:
  
 
== HTML ==
 
== HTML ==
 +
  
 
* Why:  For Python to process language into its base words or lemmas
 
* Why:  For Python to process language into its base words or lemmas
* This is an old package that I came across and liked, there may be better ones, but this did what I wanted for a couple of my applications.  It cannot currently be installed with conda or pip.  All the code, which I downloaded and decompressed is in each application where I use it ..../resources/HTML.py-0.04  The install is documented in the readme file, I used  '''"python setup.py install"''' from the source code (HTML) directory.  
+
* This is an old package that I came across and liked, there may be better ones, but this did what I wanted for a couple of my applications.  It cannot currently be installed with conda or pip.  All the code, which I downloaded and decompressed is in each application where I use it ..../resources/HTML.py-0.04  The install is documented in the readme file, I used  '''"python setup.py install"'''.  
  
 
* May be used in  EasyDB, TwitterDB   
 
* May be used in  EasyDB, TwitterDB   
 
* Links
 
* Links
 
= Working With Someone Else's Source =
 
 
So follow their directions.  If it is my code this is pretty minimal.  I have not started using requirements.txt but will if I get many requests.  In any case here is pretty much the last resort method:
 
 
* Run the code.
 
* Stop when an import fails.  Try to install with conda.... pip....  An unfortunate fact is that the package name for conda/pip is not always exactly like the import name ( but usually is ), so a bit of google may help.
 
* Usually after an install you can just restart the program, but I have sometimes found that restarting an IDE is necessary.
 
* Repeat with the next import that fails.
 
 
 
= Anaconda Links =
 
 
 
*'''[http://conda.pydata.org/docs/faq.html#pkg-installation FAQ — Conda documentation ]'''
 
*'''[https://www.continuum.io/anaconda-overview Anaconda Overview | Continuum ]'''
 
*'''[http://conda.pydata.org/docs/ Presentations & Blog Posts — Conda documentation ]'''
 
*'''[http://sjbyrnes.com/python/ Python « Steve Byrnes's Homepage ]'''
 
*'''[https://pythonhosted.org/spyder/installation.html Installation — Spyder 2.3 documentation ]'''
 
*'''[https://www.southampton.ac.uk/~fangohr/blog/installation-of-python-spyder-numpy-sympy-scipy-pytest-matplotlib-via-anaconda-2013.html Installation of Python, Spyder, Numpy, Sympy, Scipy, Pytest, Matplotlib via Anaconda (2013) — Computational Modelling Blog ]'''
 
*'''[https://spyder-ide.blogspot.com/ spyder ]'''
 
*'''[https://docs.continuum.io/anaconda/faq Anaconda FAQ | Continuum Analytics: Documentation ]'''
 
*'''[https://docs.continuum.io/anaconda/install Anaconda install | Continuum Analytics: Documentation ]'''
 
*'''[https://www.continuum.io/downloads Download Anaconda Now! | Continuum ]'''
 
*'''[https://jupyter.readthedocs.io/en/latest/install.html Installing Jupyter Notebook — Jupyter Documentation 4.1.1 alpha documentation ]'''
 
 
 
[[Category:Twitter Analysis DB]]
 

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)