Categories
Python

How to Install Miniconda on Ubuntu 18.04

Here you will learn how to install Miniconda from command line on Ubuntu 18.04. The whole Miniconda installation only needs 3 steps, except creating and activating a conda environment.

Miniconda Introduction

Miniconda is an installer which is minimally free of Conda. It’s a thin, bootstrap version that includes just conda, Python, the packages they rely on, and a limited range of other useful modules like pip, zlib, and a few others. Using the command conda install to install additional conda packages from the Anaconda registry during the Miniconda installation on Ubuntu 18.04.

The most quick way to get conda is to setup Miniconda. If you wish to get conda plus over 7,500 open source packages at once, install Anaconda directly on your Ubuntu 18.04 machine.

As we will do below, you will install Anaconda on Ubuntu 18.04 as a non-root user, which does not need administrator permissions, and is the most stable installation. You can also install system-wide Anaconda which needs administrator permissions.

3 steps to install Miniconda on Ubuntu 18.04

  1. Download the latest shell script to Ubuntu 18.04

    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

    Downloading the latest Miniconda script will take around 100 MB and will take some time depending on your Internet connection.Downloading the latest Miniconda shell script to Ubuntu 18.04

  2. Make the miniconda installation script executable

    chmod +x Miniconda3-latest-Linux-x86_64.shMake the miniconda installation script executable and run it

  3. Run miniconda installation script on Ubuntu 18.04

    ./Miniconda3-latest-Linux-x86_64.sh

  4. [Optional] Create and activate an conda environment

    To create a conda environment, run conda create -n newenv

    You can also create the environment from a file like environment.yml, you can use use the conda env create -f command: conda env create -f environment.yml. The environment name will be the directory name.

A better understanding of installing miniconda

To get a better understanding, visit the documentation on the miniconda to take a look.

How to prevent Miniconda from activating base environment?

By default, conda init adds the base environment to your.bashrc file on your Ubuntu 18.04 OS which slows down your terminal.

You can delete them in your.bashrc file, or answer no to that question in the last step of your miniconda installation on Ubuntu 18.04.

And then add the followingΒ to your .bashrc file. If you have modified the default Miniconda installation directory, change ~/miniconda3/ to that directory.

source ~/miniconda3/etc/profile.d/conda.sh
if [[ -z ${CONDA_PREFIX+x} ]]; then
    export PATH="~/conda/bin:$PATH"
fi

To test it, open a new terminal tab or run source .bashrc. Run conda activate base, then you should see (base) in front of your Bash prompt.

Open a new terminal tab or run the .bashrc file to verify it. Run conda activate base, then you will see (base) in front of your Bash prompt.

The output of the miniconda installation shell script

For your reference, here is whole output of a successful miniconda installation on Ubuntu 18.04.

vh@varhowto-com:~$ ./Miniconda3-latest-Linux-x86_64.sh
Welcome to Miniconda3 py38_4.8.3
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
End User License Agreement - Anaconda Individual Edition
Copyright 2015-2020, Anaconda, Inc.
All rights reserved under the 3-clause BSD License:
This End User License Agreement (the "Agreement") is a legal agreement between y
ou and Anaconda, Inc. ("Anaconda") and governs your use of Anaconda Individual E
dition (which was formerly known as Anaconda Distribution).
Subject to the terms of this Agreement, Anaconda hereby grants you a non-exclusi
ve, non-transferable license to:
Install and use the Anaconda Individual Edition (which was formerly known as
Anaconda Distribution),
Modify and create derivative works of sample source code delivered in Anacon
da Individual Edition; and
Redistribute code files in source (if provided to you by Anaconda as source)
and binary forms, with or without modification subject to the requirements set
forth below.
Anaconda may, at its option, make available patches, workarounds or other update
s to Anaconda Individual Edition. Unless the updates are provided with their separate governing terms, they are deemed part of Anaconda Individual Edition licensed to you as provided in this Agreement. Thi
s Agreement does not entitle you to any support for Anaconda Individual Edition.
Anaconda reserves all rights not expressly granted to you in this Agreement.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Anaconda nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
You acknowledge that, as between you and Anaconda, Anaconda owns all right, title, and interest, including all intellectual property rights, in and to Anaconda Individual Edition and, with respect to third-
party products distributed with or in Anaconda Individual Edition, the applicable third-party licensors own all right, title and interest, including all intellectual property rights, in and to such products
. If you send or transmit any communications or materials to Anaconda suggesting or recommending changes to the software or documentation, including without limitation, new features or functionality relati
ng thereto, or any comments, questions, suggestions or the like ("Feedback"), Anaconda is free to use such Feedback. You hereby assign to Anaconda all right, title, and interest in, and Anaconda is free to
use, without any attribution or compensation to any party, any ideas, know-how, concepts, techniques or other intellectual property rights contained in the Feedback, for any purpose whatsoever, although Ana
conda is not required to use any Feedback.
THIS SOFTWARE IS PROVIDED BY ANACONDA AND ITS CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULA
R PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANACONDA BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GO
ODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) AR
ISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
TO THE MAXIMUM EXTENT PERMITTED BY LAW, ANACONDA AND ITS AFFILIATES SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR ANY LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS
OF GOODWILL, OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE OF ANACONDA INDIVIDUAL EDITION, WHETHER SUCH LIABILITY ARISES FROM
ANY CLAIM BASED UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR THEORY OF LIABILITY. IN NO EVENT WILL THE TOTAL CUMULATIVE LIABILI
TY OF ANACONDA AND ITS AFFILIATES UNDER OR ARISING OUT OF THIS AGREEMENT EXCEED US.00.
If you want to terminate this Agreement, you may do so by discontinuing use of Anaconda Individual Edition. Anaconda may, at any time, terminate this Agreement and the license granted hereunder if you fail
to comply with any term of this Agreement. Upon any termination of this Agreement, you agree to promptly discontinue use of the Anaconda Individual Edition and destroy all copies in your possession or co
ntrol. Upon any termination of this Agreement all provisions survive except for the licenses granted to you.
This Agreement is governed by and construed in accordance with the internal laws of the State of Texas without giving effect to any choice or conflict of law provision or rule that would require or permit t
he application of the laws of any jurisdiction other than those of the State of Texas. Any legal suit, action, or proceeding arising out of or related to this Agreement or the licenses granted hereunder by
you must be instituted exclusively in the federal courts of the United States or the courts of the State of Texas in each case located in Travis County, Texas, and you irrevocably submit to the jurisdiction
of such courts in any such suit, action, or proceeding.
Notice of Third Party Software Licenses
Anaconda Individual Edition contains software packages or tools licensed on an open source basis from third parties and binary packages of these third party tools. These third party software packages or too
ls are provided on an "as is" basis and are subject to their respective license agreements as well as this Agreement. These licenses may be accessed from within the Anaconda Individual Edition software or a
t http://docs.anaconda.com/anaconda/pkg-docs. Information regarding which license is applicable is available from within many of the third party software packages and tools and at https://repo.anaconda.com/
pkgs/main/ and https://repo.anaconda.com/pkgs/r/. Anaconda reserves the right, in its sole discretion, to change which third party tools are provided in Anaconda Individual Edition.
Intel Math Kernel Library
Anaconda Individual Edition contains re-distributable, run-time, shared-library files from the Intel Math Kernel Library ("MKL binaries").
Copyright 2018 Intel Corporation. License available at https://software.intel.com/en-us/license/intel-simplified-software-license (the "MKL License").
You may use and redistribute the MKL binaries, without modification, provided the following conditions are met:
Redistributions must reproduce the above copyright notice and the following terms of use in the MKL binaries and in the documentation and/or other materials provided with the distribution.
Neither the name of Intel nor the names of its suppliers may be used to endorse or promote products derived from the MKL binaries without specific prior written permission.
No reverse engineering, decompilation, or disassembly of the MKL binaries is permitted.
You are specifically authorized to use and redistribute the MKL binaries with your installation of Anaconda Individual Edition subject to the terms set forth in the MKL License. You are also authorized to r
edistribute the MKL binaries with Anaconda Individual Edition or in the Anaconda package that contains the MKL binaries. If needed, instructions for removing the MKL binaries after installation of Anaconda
Individual Edition are available at https://docs.anaconda.com.
cuDNN Software
Anaconda Individual Edition also contains cuDNN software binaries ("cuDNN binaries") from NVIDIA Corporation. You are specifically authorized to use the cuDNN binaries with your installation of Anaconda Ind
ividual Edition subject to your compliance with the license agreement located at https://docs.nvidia.com/deeplearning/sdk/cudnn-sla/index.html. You are also authorized to redistribute the cuDNN binaries wit
h an Anaconda Individual Edition package that contains the cuDNN binaries. You can add or remove the cuDNN binaries utilizing the install and uninstall features in Anaconda Individual Edition.
cuDNN binaries contain source code provided by NVIDIA Corporation.
Export; Cryptography Notice
You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. Anaconda Individual Edition i
ncludes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any
encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See the Wassenaa
r Arrangement http://www.wassenaar.org/ for more information.
Anaconda has self-classified this software as Export Commodity Control Number (ECCN) 5D992.c, which includes mass market information security software using or performing cryptographic functions with asymme
tric algorithms. No license is required for export of this software to non-embargoed countries. The Intel Math Kernel Library contained in Anaconda Individual Edition is classified by Intel as ECCN 5D992.c
with no license required for export to non-embargoed countries.
The following packages are included in this distribution that relate to cryptography:
openssl
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Transport Layer Security (TLS) and Secure Sockets Layer (SSL)
protocols as well as a full-strength general purpose cryptography library.
pycrypto
A collection of both secure hash functions (such as SHA256 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).
pyopenssl
A thin Python wrapper around (a subset of) the OpenSSL library.
kerberos (krb5, non-Windows platforms)
A network authentication protocol designed to provide strong authentication for client/server applications by using secret-key cryptography.
cryptography
A Python library which exposes cryptographic recipes and primitives.
pycryptodome
A fork of PyCrypto. It is a self-contained Python package of low-level cryptographic primitives.
pycryptodomex
A stand-alone version of pycryptodome.
libsodium
A software library for encryption, decryption, signatures, password hashing and more.
pynacl
A Python binding to the Networking and Cryptography library, a crypto library with the stated goal of improving usability, security and speed.
Last updated February 25, 2020
Do you accept the license terms? [yes|no]
[no] >>>
Please answer 'yes' or 'no':'
yes
Miniconda3 will now be installed into this location:
/home/4/miniconda3
Press ENTER to confirm the location
Press CTRL-C to abort the installation
Or specify a different location below
[/home/vh/miniconda3] >>>
PREFIX=/home/vh/miniconda3
Unpacking payload …
Collecting package metadata (current_repodata.json): done
Solving environment: done
Package Plan
environment location: /home/vh/miniconda3
added / updated specs:
_libgcc_mutex==0.1=main
ca-certificates==2020.1.1=0
certifi==2020.4.5.1=py38_0
cffi==1.14.0=py38he30daa8_1
chardet==3.0.4=py38_1003
conda-package-handling==1.6.1=py38h7b6447c_0
conda==4.8.3=py38_0
cryptography==2.9.2=py38h1ba5d50_0
idna==2.9=py_1
ld_impl_linux-64==2.33.1=h53a641e_7
libedit==3.1.20181209=hc058e9b_0
libffi==3.3=he6710b0_1
libgcc-ng==9.1.0=hdf63c60_0
libstdcxx-ng==9.1.0=hdf63c60_0
ncurses==6.2=he6710b0_1
openssl==1.1.1g=h7b6447c_0
pip==20.0.2=py38_3
pycosat==0.6.3=py38h7b6447c_1
pycparser==2.20=py_0
pyopenssl==19.1.0=py38_0
pysocks==1.7.1=py38_0
python==3.8.3=hcff3b4d_0
readline==8.0=h7b6447c_0
requests==2.23.0=py38_0
ruamel_yaml==0.15.87=py38h7b6447c_0
setuptools==46.4.0=py38_0
six==1.14.0=py38_0
sqlite==3.31.1=h62c20be_1
tk==8.6.8=hbc83047_0
tqdm==4.46.0=py_0
urllib3==1.25.8=py38_0
wheel==0.34.2=py38_0
xz==5.2.5=h7b6447c_0
yaml==0.1.7=had09818_2
zlib==1.2.11=h7b6447c_3
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
ca-certificates pkgs/main/linux-64::ca-certificates-2020.1.1-0
certifi pkgs/main/linux-64::certifi-2020.4.5.1-py38_0
cffi pkgs/main/linux-64::cffi-1.14.0-py38he30daa8_1
chardet pkgs/main/linux-64::chardet-3.0.4-py38_1003
conda pkgs/main/linux-64::conda-4.8.3-py38_0
conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.6.1-py38h7b6447c_0
cryptography pkgs/main/linux-64::cryptography-2.9.2-py38h1ba5d50_0
idna pkgs/main/noarch::idna-2.9-py_1
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.33.1-h53a641e_7
libedit pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0
libffi pkgs/main/linux-64::libffi-3.3-he6710b0_1
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_1
openssl pkgs/main/linux-64::openssl-1.1.1g-h7b6447c_0
pip pkgs/main/linux-64::pip-20.0.2-py38_3
pycosat pkgs/main/linux-64::pycosat-0.6.3-py38h7b6447c_1
pycparser pkgs/main/noarch::pycparser-2.20-py_0
pyopenssl pkgs/main/linux-64::pyopenssl-19.1.0-py38_0
pysocks pkgs/main/linux-64::pysocks-1.7.1-py38_0
python pkgs/main/linux-64::python-3.8.3-hcff3b4d_0
readline pkgs/main/linux-64::readline-8.0-h7b6447c_0
requests pkgs/main/linux-64::requests-2.23.0-py38_0
ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.87-py38h7b6447c_0
setuptools pkgs/main/linux-64::setuptools-46.4.0-py38_0
six pkgs/main/linux-64::six-1.14.0-py38_0
sqlite pkgs/main/linux-64::sqlite-3.31.1-h62c20be_1
tk pkgs/main/linux-64::tk-8.6.8-hbc83047_0
tqdm pkgs/main/noarch::tqdm-4.46.0-py_0
urllib3 pkgs/main/linux-64::urllib3-1.25.8-py38_0
wheel pkgs/main/linux-64::wheel-0.34.2-py38_0
xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
yaml pkgs/main/linux-64::yaml-0.1.7-had09818_2
zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Preparing transaction: done
Executing transaction: done
installation finished.
WARNING:
You currently have a PYTHONPATH environment variable set. This may cause
unexpected behavior when running the Python interpreter in Miniconda3.
For best results, please verify that your PYTHONPATH only points to
directories of packages that are compatible with the Python interpreter
in Miniconda3: /home/vh/miniconda3
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
./Miniconda3-latest-Linux-x86_64.sh: 486: ./Miniconda3-latest-Linux-x86_64.sh: [[: not found
no change /home/vh/miniconda3/condabin/conda
no change /home/vh/miniconda3/bin/conda
no change /home/vh/miniconda3/bin/conda-env
no change /home/vh/miniconda3/bin/activate
no change /home/vh/miniconda3/bin/deactivate
no change /home/vh/miniconda3/etc/profile.d/conda.sh
no change /home/vh/miniconda3/etc/fish/conf.d/conda.fish
no change /home/vh/miniconda3/shell/condabin/Conda.psm1
no change /home/vh/miniconda3/shell/condabin/conda-hook.ps1
no change /home/vh/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change /home/vh/miniconda3/etc/profile.d/conda.csh
modified /home/vh/.bashrc
==> For changes to take effect, close and re-open your current shell. <==
If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:
conda config --set auto_activate_base false
Thank you for installing Miniconda3!

The output of creating conda environment

After installing Miniconda on Ubuntu 18.04, you can create a conda environment. Here is the sample output of conda environment creation from this GitHub repo for your reference: https://github.com/chrischute/squad

$ conda env create -f environment.yml
Collecting package metadata (repodata.json): done
Solving environment: done




==> WARNING: A newer version of conda exists. <==
  current version: 4.8.2
  latest version: 4.8.3


Please update conda by running


    $ conda update -n base -c defaults conda






Downloading and Extracting Packages
werkzeug-1.0.1       | 239 KB    | ########################################################################################################################################## | 100%
libcblas-3.8.0       | 10 KB     | ########################################################################################################################################## | 100%
ca-certificates-2020 | 146 KB    | ########################################################################################################################################## | 100%
plac-0.9.6           | 18 KB     | ########################################################################################################################################## | 100%
python-3.6.10        | 34.1 MB   | ########################################################################################################################################## | 100%
chardet-3.0.4        | 188 KB    | ########################################################################################################################################## | 100%
sqlite-3.30.1        | 2.0 MB    | ########################################################################################################################################## | 100%
xz-5.2.5             | 430 KB    | ########################################################################################################################################## | 100%
keras-preprocessing- | 33 KB     | ########################################################################################################################################## | 100%
libpng-1.6.37        | 308 KB    | ########################################################################################################################################## | 100%
wrapt-1.10.11        | 45 KB     | ########################################################################################################################################## | 100%
libedit-3.1.20170329 | 172 KB    | ########################################################################################################################################## | 100%
liblapack-3.8.0      | 10 KB     | ########################################################################################################################################## | 100%
mkl-2020.0           | 202.0 MB  | ########################################################################################################################################## | 100%
c-ares-1.15.0        | 100 KB    | ########################################################################################################################################## | 100%
libgfortran-ng-7.3.0 | 1.7 MB    | ########################################################################################################################################## | 100%
tensorflow-estimator | 181 KB    | ########################################################################################################################################## | 100%
setuptools-46.1.3    | 653 KB    | ########################################################################################################################################## | 100%
markdown-3.2.1       | 61 KB     | ########################################################################################################################################## | 100%
msgpack-numpy-0.4.3. | 8 KB      | ########################################################################################################################################## | 100%
requests-2.23.0      | 47 KB     | ########################################################################################################################################## | 100%
msgpack-python-0.6.2 | 89 KB     | ########################################################################################################################################## | 100%
certifi-2020.4.5.1   | 151 KB    | ########################################################################################################################################## | 100%
libstdcxx-ng-9.2.0   | 4.5 MB    | ########################################################################################################################################## | 100%
cymem-2.0.3          | 41 KB     | ########################################################################################################################################## | 100%
tk-8.6.10            | 3.2 MB    | ########################################################################################################################################## | 100%
libffi-3.2.1         | 47 KB     | ########################################################################################################################################## | 100%
tensorflow-base-1.13 | 73.9 MB   | ########################################################################################################################################## | 100%
murmurhash-1.0.0     | 16 KB     | ########################################################################################################################################## | 100%
pyopenssl-19.1.0     | 47 KB     | ########################################################################################################################################## | 100%
llvm-openmp-10.0.0   | 2.8 MB    | ########################################################################################################################################## | 100%
keras-applications-1 | 30 KB     | ########################################################################################################################################## | 100%
grpcio-1.23.0        | 1.1 MB    | ########################################################################################################################################## | 100%
pytorch-1.0.0        | 498.6 MB  | ########################################################################################################################################## | 100%
tensorflow-1.13.1    | 23 KB     | ########################################################################################################################################## | 100%
astor-0.7.1          | 22 KB     | ########################################################################################################################################## | 100%
toolz-0.10.0         | 46 KB     | ########################################################################################################################################## | 100%
readline-8.0         | 441 KB    | ########################################################################################################################################## | 100%
h5py-2.10.0          | 1.2 MB    | ########################################################################################################################################## | 100%
_openmp_mutex-4.5    | 5 KB      | ########################################################################################################################################## | 100%
idna-2.9             | 52 KB     | ########################################################################################################################################## | 100%
numpy-1.18.1         | 5.2 MB    | ########################################################################################################################################## | 100%
pycparser-2.20       | 89 KB     | ########################################################################################################################################## | 100%
thinc-6.12.1         | 1.5 MB    | ########################################################################################################################################## | 100%
urllib3-1.25.9       | 92 KB     | ########################################################################################################################################## | 100%
spacy-2.0.16         | 47.9 MB   | ########################################################################################################################################## | 100%
absl-py-0.9.0        | 162 KB    | ########################################################################################################################################## | 100%
wheel-0.34.2         | 24 KB     | ########################################################################################################################################## | 100%
gast-0.3.3           | 12 KB     | ########################################################################################################################################## | 100%
libopenblas-0.3.9    | 7.8 MB    | ########################################################################################################################################## | 100%
hdf5-1.10.5          | 3.1 MB    | ########################################################################################################################################## | 100%
ld_impl_linux-64-2.3 | 616 KB    | ########################################################################################################################################## | 100%
scipy-1.4.1          | 18.9 MB   | ########################################################################################################################################## | 100%
libprotobuf-3.11.4   | 4.8 MB    | ########################################################################################################################################## | 100%
openssl-1.1.1g       | 2.1 MB    | ########################################################################################################################################## | 100%
preshed-2.0.1        | 85 KB     | ########################################################################################################################################## | 100%
zlib-1.2.11          | 105 KB    | ########################################################################################################################################## | 100%
tensorboardx-2.0     | 77 KB     | ########################################################################################################################################## | 100%
cytoolz-0.9.0.1      | 416 KB    | ########################################################################################################################################## | 100%
tensorboard-1.13.1   | 3.3 MB    | ########################################################################################################################################## | 100%
python_abi-3.6       | 4 KB      | ########################################################################################################################################## | 100%
mock-3.0.5           | 44 KB     | ########################################################################################################################################## | 100%
termcolor-1.1.0      | 6 KB      | ########################################################################################################################################## | 100%
regex-2018.01.10     | 338 KB    | ########################################################################################################################################## | 100%
libcurl-7.69.1       | 573 KB    | ########################################################################################################################################## | 100%
libblas-3.8.0        | 10 KB     | ########################################################################################################################################## | 100%
six-1.14.0           | 13 KB     | ########################################################################################################################################## | 100%
ujson-2.0.3          | 46 KB     | ########################################################################################################################################## | 100%
brotlipy-0.7.0       | 346 KB    | ########################################################################################################################################## | 100%
dill-0.2.9           | 113 KB    | ########################################################################################################################################## | 100%
pip-20.0.2           | 1.0 MB    | ########################################################################################################################################## | 100%
cryptography-2.8     | 628 KB    | ########################################################################################################################################## | 100%
ncurses-6.1          | 1.3 MB    | ########################################################################################################################################## | 100%
tqdm-4.45.0          | 48 KB     | ########################################################################################################################################## | 100%
cffi-1.14.0          | 221 KB    | ########################################################################################################################################## | 100%
_libgcc_mutex-0.1    | 3 KB      | ########################################################################################################################################## | 100%
libssh2-1.8.2        | 257 KB    | ########################################################################################################################################## | 100%
protobuf-3.11.4      | 699 KB    | ########################################################################################################################################## | 100%
ninja-1.10.0         | 1.9 MB    | ########################################################################################################################################## | 100%
pysocks-1.7.1        | 27 KB     | ########################################################################################################################################## | 100%
krb5-1.17.1          | 1.5 MB    | ########################################################################################################################################## | 100%
libgcc-ng-9.2.0      | 8.2 MB    | ########################################################################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Ran pip subprocess with arguments:
['/home/zhao/miniconda3/envs/squad/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/zhao/Downloads/add_self_att/condaenv.r1yix2p7.requirements.txt']
Pip subprocess output:
Requirement already up-to-date: torch==1.0.0 in /home/zhao/miniconda3/envs/squad/lib/python3.6/site-packages (from -r /home/zhao/Downloads/add_self_att/condaenv.r1yix2p7.requirements.txt (line 1)) (1.0.0)


#
# To activate this environment, use
#
#     $ conda activate squad
#
# To deactivate an active environment, use
#
#     $ conda deactivate


(base) zhao@zhao18:~/Downloads/add_self_att$ conda activate squad
(squad) zhao@zhao18:~/Downloads/add_self_att$ ls
args.py  data  environment.yml  layers.py  models.py  __pycache__  save  setup.py  test.py  train.py  util.py
(squad) zhao@zhao18:~/Downloads/add_self_att$ cd data/
(squad) zhao@zhao18:~/.../add_self_att/data$ ls
dev-v2.0.json  test-v2.0.json  train-v2.0.json
(squad) zhao@zhao18:~/.../add_self_att/data$ python setup.py
python: can't open file 'setup.py': [Errno 2] No such file or directory
(squad) zhao@zhao18:~/.../add_self_att/data$ cd ..
(squad) zhao@zhao18:~/Downloads/add_self_att$ python setup.py
Downloading GloVe word vectors...
glove.840B.300d.zip: 2.18GB [17:01, 2.13MB/s]
Unzipping GloVe word vectors...
Downloading spacy language model...
Collecting en_core_web_sm==2.0.0
  Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz (37.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 37.4 MB 6.9 MB/s

Like

By VarHowto Editor

Welcome to VarHowto!

Leave a Reply

Your email address will not be published. Required fields are marked *