-
-
Save omz/62b80206913798380cb0 to your computer and use it in GitHub Desktop.
Install SymPy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
google link is not working anymore, for latest version (actually 1.1.1) use this link : download SymPy 1.1.1 from github