Installing Python and Clifford

Hugo Hadfield 2018

Installing Python

  • If you already have Python 3 then don't worry!
  • You can check by typing python3 (or py -3 for windows) in a terminal and checking that it launches python
  • If you don't have Python then I would recommend Anaconda
  •  
  • Go to https://www.anaconda.com/download/
  • Download the Python 3.7 version and run the installer
  • After installation check you can access Python by running python3 in a terminal

Installing Clifford

  • In the last slide, if you already had Python3 installed you now need to check if you have conda
  • Type "conda" in a terminal window, if it says that it cannot find conda then you can install via pip. Run:

pip3 install clifford

  • If you did have conda installed, or you have freshly installed Anaconda in the previous slide then run:

conda install clifford -c conda-forge

  • Followed by:

conda install numba=0.40.0

Test your Clifford installation

  • In a terminal window type

python3

  • And then after python launches

from clifford.g3c import *

  • Check that no errors are thrown
  •  
  • If an error is thrown then exit python go to a new terminal window and, if you are using conda then ensure numba is at the correct version:

conda install numba=0.40.0

  • If you are using pip then type

pip3 install numba==0.40.1

 

Install pyganja

 

git clone https://github.com/pygae/pyganja.git
cd pyganja
git submodule init
git submodule update
python3 setup.py install

You should now be all set up :)

Installing Python and Clifford

By Hugo Hadfield

Installing Python and Clifford

  • 211
Loading comments...

More from Hugo Hadfield