Skip to content

Instantly share code, notes, and snippets.

@omz
Last active Apr 17, 2020
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@ppcharlier ppcharlier commented Aug 15, 2017

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