Download and install Anaconda Python and create virtual environment with Python 3.6

Download and install Anaconda Python and create virtual environment with Python 3.6 (work best with most of the deep learning libraries)

Download and install Anaconda Python 3.x:
For windows, download the windows 64 bit graphical installer and run installer to install
For Mac, download the MacOS 64 bit graphical installer and run installer to install
As part of Anaconda install process, you can optionally install PyCharm community edition as Python IDE
For Linux, copy the download link as below:
In a Linux terminal, such as putty.exe, run below command to download by type wget then paste the copy link address you just copied to clipboard, the whole command is
1
wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
Copied!
The above command will download a shell script file:
Anaconda3-2020.02-Linux-x86_64.sh
Just run this shell scrip to install inside the Linux terminal window:
1
sh Anaconda3-2020.02-Linux-x86_64.sh
Copied!
After you have installed Anaconda, make sure exit (log out) and enter (log in) again to update environment variable setup by Anaconda install.
Start Anaconda Navigator to create a virtual environment Spark, that uses Python 3.6 which we will use this virtual environment without affecting your existing Python environment.
If on OS command line:
If this is Windows, you need to get to Anaconda Powershell command window and run it as administrator user, by click Windows Start->Anaconda 3 (64 bit) right mouse click on Anaconda Powershell Prompt, then choose run as administrator
If this is Linux or Mac, just open a terminal window
1
conda update conda
2
conda create -n spark python=3.6 anaconda
Copied!
Install Jupyter Notebook under virtual environment Spark, launch Jupyter Notebook after install to test it
You can activate virtual environment spark on command line by:
1
conda activate spark
Copied!
deactivate by
1
conda deactivate
Copied!
Last modified 1yr ago
Copy link