forked from dataprofessor/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fe0b47
commit 824db5e
Showing
3 changed files
with
2,280 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,240 @@ | ||
{ | ||
"nbformat": 4, | ||
"nbformat_minor": 0, | ||
"metadata": { | ||
"colab": { | ||
"name": "conda-on-google-colab.ipynb", | ||
"provenance": [], | ||
"collapsed_sections": [] | ||
}, | ||
"kernelspec": { | ||
"name": "python3", | ||
"display_name": "Python 3" | ||
} | ||
}, | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"metadata": { | ||
"id": "uyfFc8VufUyl", | ||
"colab_type": "code", | ||
"outputId": "36b12856-fc68-40b8-c203-0fcf8ab7244e", | ||
"colab": { | ||
"base_uri": "https://localhost:8080/", | ||
"height": 1000 | ||
} | ||
}, | ||
"source": [ | ||
"################################################################################\n", | ||
"# INSTALL CONDA ON GOOGLE COLAB\n", | ||
"################################################################################\n", | ||
"! wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh\n", | ||
"! chmod +x Miniconda3-py37_4.8.2-Linux-x86_64.sh\n", | ||
"! bash ./Miniconda3-py37_4.8.2-Linux-x86_64.sh -b -f -p /usr/local\n", | ||
"import sys\n", | ||
"sys.path.append('/usr/local/lib/python3.7/site-packages/')" | ||
], | ||
"execution_count": 0, | ||
"outputs": [ | ||
{ | ||
"output_type": "stream", | ||
"text": [ | ||
"--2020-04-06 03:23:37-- https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh\n", | ||
"Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.130.3, 104.16.131.3, 2606:4700::6810:8303, ...\n", | ||
"Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.130.3|:443... connected.\n", | ||
"HTTP request sent, awaiting response... 200 OK\n", | ||
"Length: 85055499 (81M) [application/x-sh]\n", | ||
"Saving to: ‘Miniconda3-py37_4.8.2-Linux-x86_64.sh.2’\n", | ||
"\n", | ||
"\r Miniconda 0%[ ] 0 --.-KB/s \r Miniconda3 48%[========> ] 39.24M 196MB/s \r Miniconda3- 93%[=================> ] 76.01M 189MB/s \rMiniconda3-py37_4.8 100%[===================>] 81.12M 187MB/s in 0.4s \n", | ||
"\n", | ||
"2020-04-06 03:23:37 (187 MB/s) - ‘Miniconda3-py37_4.8.2-Linux-x86_64.sh.2’ saved [85055499/85055499]\n", | ||
"\n", | ||
"PREFIX=/usr/local\n", | ||
"Unpacking payload ...\n", | ||
"Collecting package metadata (current_repodata.json): - \b\b\\ \b\bdone\n", | ||
"Solving environment: / \b\b- \b\b\\ \n", | ||
"The environment is inconsistent, please check the package plan carefully\n", | ||
"The following packages are causing the inconsistency:\n", | ||
"\n", | ||
" - defaults/linux-64::urllib3==1.25.8=py37_0\n", | ||
" - defaults/linux-64::ruamel_yaml==0.15.87=py37h7b6447c_0\n", | ||
" - defaults/linux-64::pyopenssl==19.1.0=py37_0\n", | ||
" - defaults/linux-64::pysocks==1.7.1=py37_0\n", | ||
" - defaults/linux-64::six==1.14.0=py37_0\n", | ||
" - defaults/linux-64::setuptools==45.2.0=py37_0\n", | ||
" - defaults/linux-64::idna==2.8=py37_0\n", | ||
" - defaults/noarch::tqdm==4.42.1=py_0\n", | ||
" - defaults/linux-64::asn1crypto==1.3.0=py37_0\n", | ||
" - defaults/linux-64::cffi==1.14.0=py37h2e261b9_0\n", | ||
" - defaults/linux-64::wheel==0.34.2=py37_0\n", | ||
" - defaults/linux-64::conda-package-handling==1.6.0=py37h7b6447c_0\n", | ||
" - defaults/linux-64::pip==20.0.2=py37_1\n", | ||
" - defaults/linux-64::cryptography==2.8=py37h1ba5d50_0\n", | ||
" - defaults/linux-64::python==3.7.6=h0371630_2\n", | ||
" - defaults/linux-64::pycparser==2.19=py37_0\n", | ||
" - defaults/linux-64::pycosat==0.6.3=py37h7b6447c_0\n", | ||
" - defaults/linux-64::requests==2.22.0=py37_1\n", | ||
" - defaults/linux-64::chardet==3.0.4=py37_1003\n", | ||
"\b\b| \b\b/ \b\bdone\n", | ||
"\n", | ||
"## Package Plan ##\n", | ||
"\n", | ||
" environment location: /usr/local\n", | ||
"\n", | ||
" added / updated specs:\n", | ||
" - _libgcc_mutex==0.1=main\n", | ||
" - asn1crypto==1.3.0=py37_0\n", | ||
" - ca-certificates==2020.1.1=0\n", | ||
" - certifi==2019.11.28=py37_0\n", | ||
" - cffi==1.14.0=py37h2e261b9_0\n", | ||
" - chardet==3.0.4=py37_1003\n", | ||
" - conda-package-handling==1.6.0=py37h7b6447c_0\n", | ||
" - conda==4.8.2=py37_0\n", | ||
" - cryptography==2.8=py37h1ba5d50_0\n", | ||
" - idna==2.8=py37_0\n", | ||
" - ld_impl_linux-64==2.33.1=h53a641e_7\n", | ||
" - libedit==3.1.20181209=hc058e9b_0\n", | ||
" - libffi==3.2.1=hd88cf55_4\n", | ||
" - libgcc-ng==9.1.0=hdf63c60_0\n", | ||
" - libstdcxx-ng==9.1.0=hdf63c60_0\n", | ||
" - ncurses==6.2=he6710b0_0\n", | ||
" - openssl==1.1.1d=h7b6447c_4\n", | ||
" - pip==20.0.2=py37_1\n", | ||
" - pycosat==0.6.3=py37h7b6447c_0\n", | ||
" - pycparser==2.19=py37_0\n", | ||
" - pyopenssl==19.1.0=py37_0\n", | ||
" - pysocks==1.7.1=py37_0\n", | ||
" - python==3.7.6=h0371630_2\n", | ||
" - readline==7.0=h7b6447c_5\n", | ||
" - requests==2.22.0=py37_1\n", | ||
" - ruamel_yaml==0.15.87=py37h7b6447c_0\n", | ||
" - setuptools==45.2.0=py37_0\n", | ||
" - six==1.14.0=py37_0\n", | ||
" - sqlite==3.31.1=h7b6447c_0\n", | ||
" - tk==8.6.8=hbc83047_0\n", | ||
" - tqdm==4.42.1=py_0\n", | ||
" - urllib3==1.25.8=py37_0\n", | ||
" - wheel==0.34.2=py37_0\n", | ||
" - xz==5.2.4=h14c3975_4\n", | ||
" - yaml==0.1.7=had09818_2\n", | ||
" - zlib==1.2.11=h7b6447c_3\n", | ||
"\n", | ||
"\n", | ||
"The following NEW packages will be INSTALLED:\n", | ||
"\n", | ||
" certifi pkgs/main/linux-64::certifi-2019.11.28-py37_0\n", | ||
" conda pkgs/main/linux-64::conda-4.8.2-py37_0\n", | ||
" openssl pkgs/main/linux-64::openssl-1.1.1d-h7b6447c_4\n", | ||
"\n", | ||
"\n", | ||
"Preparing transaction: \\ \b\bdone\n", | ||
"Executing transaction: / \b\b- \b\bdone\n", | ||
"installation finished.\n", | ||
"WARNING:\n", | ||
" You currently have a PYTHONPATH environment variable set. This may cause\n", | ||
" unexpected behavior when running the Python interpreter in Miniconda3.\n", | ||
" For best results, please verify that your PYTHONPATH only points to\n", | ||
" directories of packages that are compatible with the Python interpreter\n", | ||
" in Miniconda3: /usr/local\n" | ||
], | ||
"name": "stdout" | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"metadata": { | ||
"id": "QD319lDvf6Xp", | ||
"colab_type": "code", | ||
"outputId": "71cc1953-4fd9-4f85-fc0a-5a3f7e7688bd", | ||
"colab": { | ||
"base_uri": "https://localhost:8080/", | ||
"height": 996 | ||
} | ||
}, | ||
"source": [ | ||
"! conda install -c rdkit rdkit -y" | ||
], | ||
"execution_count": 0, | ||
"outputs": [ | ||
{ | ||
"output_type": "stream", | ||
"text": [ | ||
"Collecting package metadata (current_repodata.json): - \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\bdone\n", | ||
"Solving environment: - \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\bfailed with initial frozen solve. Retrying with flexible solve.\n", | ||
"Solving environment: / \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\bfailed with repodata from current_repodata.json, will retry with next repodata source.\n", | ||
"Collecting package metadata (repodata.json): - \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\bdone\n", | ||
"Solving environment: | \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\bdone\n", | ||
"\n", | ||
"## Package Plan ##\n", | ||
"\n", | ||
" environment location: /usr/local\n", | ||
"\n", | ||
" added / updated specs:\n", | ||
" - rdkit\n", | ||
"\n", | ||
"\n", | ||
"The following NEW packages will be INSTALLED:\n", | ||
"\n", | ||
" blas pkgs/main/linux-64::blas-1.0-mkl\n", | ||
" bzip2 pkgs/main/linux-64::bzip2-1.0.8-h7b6447c_0\n", | ||
" cairo pkgs/main/linux-64::cairo-1.14.12-h8948797_3\n", | ||
" fontconfig pkgs/main/linux-64::fontconfig-2.13.0-h9420a91_0\n", | ||
" freetype pkgs/main/linux-64::freetype-2.9.1-h8a8886c_1\n", | ||
" glib pkgs/main/linux-64::glib-2.63.1-h5a9c865_0\n", | ||
" icu pkgs/main/linux-64::icu-58.2-h9c2bf20_1\n", | ||
" intel-openmp pkgs/main/linux-64::intel-openmp-2020.0-166\n", | ||
" jpeg pkgs/main/linux-64::jpeg-9b-h024ee3a_2\n", | ||
" libboost pkgs/main/linux-64::libboost-1.67.0-h46d08c1_4\n", | ||
" libgfortran-ng pkgs/main/linux-64::libgfortran-ng-7.3.0-hdf63c60_0\n", | ||
" libpng pkgs/main/linux-64::libpng-1.6.37-hbc83047_0\n", | ||
" libtiff pkgs/main/linux-64::libtiff-4.1.0-h2733197_0\n", | ||
" libuuid pkgs/main/linux-64::libuuid-1.0.3-h1bed415_2\n", | ||
" libxcb pkgs/main/linux-64::libxcb-1.13-h1bed415_1\n", | ||
" libxml2 pkgs/main/linux-64::libxml2-2.9.9-hea5a465_1\n", | ||
" mkl pkgs/main/linux-64::mkl-2020.0-166\n", | ||
" mkl-service pkgs/main/linux-64::mkl-service-2.3.0-py37he904b0f_0\n", | ||
" mkl_fft pkgs/main/linux-64::mkl_fft-1.0.15-py37ha843d7b_0\n", | ||
" mkl_random pkgs/main/linux-64::mkl_random-1.1.0-py37hd6b4f25_0\n", | ||
" numpy pkgs/main/linux-64::numpy-1.18.1-py37h4f9e942_0\n", | ||
" numpy-base pkgs/main/linux-64::numpy-base-1.18.1-py37hde5b4d6_1\n", | ||
" olefile pkgs/main/linux-64::olefile-0.46-py37_0\n", | ||
" pandas pkgs/main/linux-64::pandas-1.0.3-py37h0573a6f_0\n", | ||
" pcre pkgs/main/linux-64::pcre-8.43-he6710b0_0\n", | ||
" pillow pkgs/main/linux-64::pillow-7.0.0-py37hb39fc2d_0\n", | ||
" pixman pkgs/main/linux-64::pixman-0.38.0-h7b6447c_0\n", | ||
" py-boost pkgs/main/linux-64::py-boost-1.67.0-py37h04863e7_4\n", | ||
" python-dateutil pkgs/main/noarch::python-dateutil-2.8.1-py_0\n", | ||
" pytz pkgs/main/noarch::pytz-2019.3-py_0\n", | ||
" rdkit rdkit/linux-64::rdkit-2020.03.1.0-py37hc20afe1_1\n", | ||
" zstd pkgs/main/linux-64::zstd-1.3.7-h0b5b093_0\n", | ||
"\n", | ||
"The following packages will be UPDATED:\n", | ||
"\n", | ||
" certifi 2019.11.28-py37_0 --> 2019.11.28-py37_1\n", | ||
" conda 4.8.2-py37_0 --> 4.8.3-py37_0\n", | ||
" openssl 1.1.1d-h7b6447c_4 --> 1.1.1f-h7b6447c_0\n", | ||
"\n", | ||
"\n", | ||
"Proceed ([y]/n)? " | ||
], | ||
"name": "stdout" | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"metadata": { | ||
"id": "M8MeOz0miqJ1", | ||
"colab_type": "code", | ||
"colab": {} | ||
}, | ||
"source": [ | ||
"" | ||
], | ||
"execution_count": 0, | ||
"outputs": [] | ||
} | ||
] | ||
} |
Oops, something went wrong.