Skip to content

Instantly share code, notes, and snippets.

@omz
Last active April 17, 2020 14:21
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save omz/62b80206913798380cb0 to your computer and use it in GitHub Desktop.
Save omz/62b80206913798380cb0 to your computer and use it in GitHub Desktop.
Install SymPy
# Install SymPy
import urllib
import tarfile
import shutil
import console
import os
print 'Downloading SymPy...'
url = 'http://sympy.googlecode.com/files/sympy-0.7.2.tar.gz'
urllib.urlretrieve(url, 'sympy.tar.gz')
print 'Extracting...'
t = tarfile.open('sympy.tar.gz')
t.extractall()
if os.path.isdir('sympy'):
shutil.rmtree('sympy')
shutil.move('sympy-0.7.2/sympy', './sympy')
print 'Cleaning up...'
shutil.rmtree('sympy-0.7.2')
os.remove('sympy.tar.gz')
print 'Done.'
@ppcharlier
Copy link

google link is not working anymore, for latest version (actually 1.1.1) use this link : download SymPy 1.1.1 from github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment