Getting started with Anaconda on "Ubuntu in VirtualBox" or "Linux on a hosted server":
Step 1: Install VirtualBox 6.0 or higher (by launching the .EXE file as administrator)
Step 2: Download the .ISO file for the latest "Ubuntu Desktop" (version used for this post: Ubuntu 18.04.2 LTS) from here "https://ubuntu.com/download/desktop"
Step 3: Install Ubuntu as shown in this post "https://survival8.blogspot.com/p/demonstrating-file-manager-in-virtualbox.html"
Step 4: Install Anaconda.
Step 4.1. Download file "Anaconda3-2019.03-Linux-x86_64.sh" from here "https://www.anaconda.com/distribution/"
Step 4.2. Copy-paste it onto the Ubuntu OS "Desktop" using "VirtualBox File Manager" as shown in the link in "Step 3".
Step 4.3. Make the file executable: "chmod 777 Anaconda3-2019.03-Linux-x86_64.sh"
Step 4.4. To install, run the Anaconda script: "bash Anaconda3-2019.03-Linux-x86_64.sh"
You will get this message on completion of installation:
=============================================
Environment modifying script:
modified /home/ashish/.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 Anaconda3!
Anaconda and JetBrains are working together to bring you Anaconda-powered
environments tightly integrated in the PyCharm IDE.
PyCharm for Anaconda is available at:
https://www.anaconda.com/pycharm
=============================================
Step 4.5. Anaconda is perfectly set up, next we install "datatable" Python package that failed to install on "Windows 10".
(base) ashish@ashish-VirtualBox:~$ pip install datatable
Collecting datatable
Downloading https://files.pythonhosted.org/packages/33/6b/02045aa871501bec23a17563c9fb70782fa5b152b2f03faaf1b147c667e0/datatable-0.8.0.tar.gz (589kB)
100% |████████████████████████████████| 593kB 594kB/s
Collecting typesentry>=0.2.6 (from datatable)
Downloading https://files.pythonhosted.org/packages/0f/37/3757249f05aac8a08d9742f9a35c17ab6895eb916b83bbf3a23eae6842b2/typesentry-0.2.7-py2.py3-none-any.whl
Collecting blessed (from datatable)
Downloading https://files.pythonhosted.org/packages/3f/96/1915827a8e411613d364dd3a56ef1fbfab84ee878070a69c21b10b5ad1bb/blessed-1.15.0-py2.py3-none-any.whl (60kB)
100% |████████████████████████████████| 61kB 454kB/s
Requirement already satisfied: colorama>=0.3 in ./anaconda3/lib/python3.7/site-packages (from typesentry>=0.2.6->datatable) (0.4.1)
Requirement already satisfied: wcwidth>=0.1.4 in ./anaconda3/lib/python3.7/site-packages (from blessed->datatable) (0.1.7)
Requirement already satisfied: six>=1.9.0 in ./anaconda3/lib/python3.7/site-packages (from blessed->datatable) (1.12.0)
Building wheels for collected packages: datatable
Building wheel for datatable (setup.py) ... done
Stored in directory: /home/ashish/.cache/pip/wheels/47/50/a3/6503b34f8d609b7141cf5007634080171ee38513f0e602dffd
Successfully built datatable
Installing collected packages: typesentry, blessed, datatable
Successfully installed blessed-1.15.0 datatable-0.8.0 typesentry-0.2.7
(base) ashish@ashish-VirtualBox:~$
Step 5. Setting up the environment in Linux on a hosted machine.
[admin@HOSTEDVM Downloads]$ ./Anaconda3-2019.03-Linux-x86_64.sh
#####
[/home/admin/anaconda3] >>>
PREFIX=/home/admin/anaconda3
installing: python-3.7.3-h0371630_0 ...
Python 3.7.3
installing: conda-env-2.6.0-1 ...
installing: blas-1.0-mkl ...
#####
AFTER INSTALLATION, IF 'conda' REMAINS AN UNIDENTIFIED COMMAND:
[admin@HOSTEDVM profile.d]$ source /home/admin/anaconda3/etc/profile.d/conda.sh
[admin@HOSTEDVM profile.d]$
#####
IF 'python' IS STILL LOADING THE PREPACKAGED INSTALLATION OF PYTHON.
[admin@HOSTEDVM profile.d]$ conda info --envs
WARNING: The conda.compat module is deprecated and will be removed in a future release.
# conda environments:
#
base * /home/admin/anaconda3
[admin@HOSTEDVM profile.d]$ conda activate base
(base) [admin@HOSTEDVM profile.d]$ python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
~~~ END ~~~
No comments:
Post a Comment