Skip to content

Instantly share code, notes, and snippets.

@ctokheim
Last active April 3, 2023 08:15
Show Gist options
  • Save ctokheim/4507404 to your computer and use it in GitHub Desktop.
Save ctokheim/4507404 to your computer and use it in GitHub Desktop.

Revisions

  1. ctokheim revised this gist Jan 24, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    #########################################

    # installing python 2.7.3
    mkdir -p ~/local
    wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
    tar xvzf Python-2.7.3.tgz
    cd Python-2.7.3
  2. ctokheim revised this gist Jan 23, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,4 @@ cd pip-1.2.1
    ~/local/bin/pip install numpy # install numpy
    ~/local/bin/pip install scipy

    pip freeze # to check python module version info
    ~/local/bin/pip freeze # to check python module version info
  3. ctokheim revised this gist Jan 23, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ cd Python-2.7.3
    ./configure
    make
    make altinstall prefix=~/local # specify local installation directory
    ln -s ~/local/bin/python2.7 ~/local/bin/python
    cd ..

    # install setuptools and pip for package management
  4. ctokheim revised this gist Jan 23, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,9 @@

    #########################################
    # Installing python and necessary packages
    # locally.
    # locally. This script will install python
    # into the ~/local/bin directory and install
    # numpy + scipy
    #########################################

    # installing python 2.7.3
  5. ctokheim revised this gist Jan 23, 2013. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -26,10 +26,7 @@ cd pip-1.2.1
    ~/local/bin/python setup.py install # specify the path to the python you installed above

    # Now you can install other packages using pip
    pip install numpy # install numpy
    pip install scipy
    pip install networkx
    pip install pygr
    pip install matplotlib
    ~/local/bin/pip install numpy # install numpy
    ~/local/bin/pip install scipy

    pip freeze # to check python module version info
  6. ctokheim revised this gist Jan 22, 2013. 1 changed file with 9 additions and 4 deletions.
    13 changes: 9 additions & 4 deletions python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -11,20 +11,25 @@ tar xvzf Python-2.7.3.tgz
    cd Python-2.7.3
    ./configure
    make
    make altinstall prefix=~ # specify local installation directory
    make altinstall prefix=~/local # specify local installation directory
    cd ..

    # install setuptools and pip for package management
    wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
    tar xvzf setuptools-0.6c11.tar.gz
    cd setuptools-0.6c11
    ~/bin/python setup.py install # specify the path to the python you installed above
    ~/local/bin/python setup.py install # specify the path to the python you installed above
    cd ..
    wget http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz#md5=db8a6d8a4564d3dc7f337ebed67b1a85
    tar xvzf pip-1.2.1.tar.gz
    cd pip-1.2.1
    ~/bin/python setup.py install # specify the path to the python you installed above
    ~/local/bin/python setup.py install # specify the path to the python you installed above

    # Now you can install other packages using pip
    pip install numpy # example installation command
    pip install numpy # install numpy
    pip install scipy
    pip install networkx
    pip install pygr
    pip install matplotlib

    pip freeze # to check python module version info
  7. ctokheim revised this gist Jan 16, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/bash

    #########################################
    # Installing python and necessary packages
    # locally.
  8. ctokheim renamed this gist Jan 16, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.sh → python27_local_install.sh
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,14 @@ cd Python-2.7.3
    ./configure
    make
    make altinstall prefix=~ # specify local installation directory
    cd ..

    # install setuptools and pip for package management
    wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
    tar xvzf setuptools-0.6c11.tar.gz
    cd setuptools-0.6c11
    ~/bin/python setup.py install # specify the path to the python you installed above
    cd ..
    wget http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz#md5=db8a6d8a4564d3dc7f337ebed67b1a85
    tar xvzf pip-1.2.1.tar.gz
    cd pip-1.2.1
  9. ctokheim created this gist Jan 11, 2013.
    26 changes: 26 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    #########################################
    # Installing python and necessary packages
    # locally.
    #########################################

    # installing python 2.7.3
    wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
    tar xvzf Python-2.7.3.tgz
    cd Python-2.7.3
    ./configure
    make
    make altinstall prefix=~ # specify local installation directory

    # install setuptools and pip for package management
    wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
    tar xvzf setuptools-0.6c11.tar.gz
    cd setuptools-0.6c11
    ~/bin/python setup.py install # specify the path to the python you installed above
    wget http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz#md5=db8a6d8a4564d3dc7f337ebed67b1a85
    tar xvzf pip-1.2.1.tar.gz
    cd pip-1.2.1
    ~/bin/python setup.py install # specify the path to the python you installed above

    # Now you can install other packages using pip
    pip install numpy # example installation command
    pip freeze # to check python module version info