Difference between revisions of "Python Installation"

From OpenCircuits
Jump to navigation Jump to search
Line 11: Line 11:
  
 
=== From Anaconda Navigator ===
 
=== From Anaconda Navigator ===
 +
 +
 +
The second page of Navigator called Environments is a nice way to create, modify and delete Python virtual environments.  On the left hand side you can choose your environment, and on the right hand side you can manage packages for the given environment.  If that does not entirely work for you, you can just pick your environment on the left and have it drop you to a command line ( terminal ) for that environment.  At that command line you can run python, conda, pip, or whatever you want.
  
 
=== Using Conda ===
 
=== Using Conda ===

Revision as of 15:28, 22 June 2020

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)


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.


Maintenance and Additions

From Anaconda Navigator

The second page of Navigator called Environments is a nice way to create, modify and delete Python virtual environments. On the left hand side you can choose your environment, and on the right hand side you can manage packages for the given environment. If that does not entirely work for you, you can just pick your environment on the left and have it drop you to a command line ( terminal ) for that environment. At that command line you can run python, conda, pip, or whatever you want.

Using Conda

Using Pip

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


Pyperclip

  • Why: For Python to access the system clipboard. Get Copy and Paste working in your applications
  • Install: pip install pyperclip
  • May be used in Clipboard, EasyDB, TwitterDB SmartTerminal

Spacy

  • Why: For Python to process language into its base words or lemmas
  • Install: with conda, but from command line. Directions at: TBD Command I used: After the install my code still had issues which I fixed with:


  • May be used in TwitterDB
  • Links:

HTML

  • 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".
  • May be used in EasyDB, TwitterDB
  • Links