To verify the installation, enter conda info. ![]() The installer is done when you see this output: Thank you for installing Anaconda!įor the installation to take effect, enter source ~/.bashrc. The installer prompts you “to initialize Anaconda3 by running conda init.” We recommend entering yes (if you enter no, conda will not modify your shell scripts). We recommend accepting the default install location. The installer prompts you to press Enter (or Return) to accept the default install location which is a directory named anaconda3 in the home directory. Scroll through the license agreement and agree to it by entering Yes. Press Enter (or Return), the file is large and takes a little while to download completely.Īfter the download is complete and you’re back at the command prompt, enter the following command, substituting the filename for the one you just downloaded: bash ~/Downloads/Anaconda3-2020.11-Linux-x86_64.sh The “Anaconda3-2020.11” portion changes as new versions are released. Remember to keep your software up to date by regularly checking for updates and installing them as needed.At the command prompt of the terminal, enter the following command, substituting the URL with the one you previously copied: wget With these powerful tools at your disposal, you can tackle even the most complex data science tasks. In this post, we walked through the process of installing Tensorflow and Anaconda on Ubuntu. This should output the version number of Tensorflow that you installed. You can also check the version of Tensorflow with the following command: tf._version_ If Tensorflow is installed correctly, you should see no errors. In the Python shell, import Tensorflow: import tensorflow as tf To test that Tensorflow is installed correctly, open a Python shell in your terminal: python Note that the version number may vary depending on which version of Tensorflow you want to install. If you want to install a specific version of Tensorflow, you can specify the version number with the following command: conda install tensorflow=2.4.1 This will install the latest version of Tensorflow available for your system. Next, run the following command to install Tensorflow: conda install tensorflow This ensures that all the necessary dependencies are installed and configured correctly.įirst, make sure the conda environment is active: conda activate base The easiest way to install Tensorflow is to use the conda package manager that comes with Anaconda. Now that we have Anaconda installed, we can move on to installing Tensorflow. Once the installation is complete, you can activate the default Anaconda environment with the following command: conda activate base ![]() Anaconda3-2021.05-Linux-x86_64.shįollow the prompts to complete the installation. ![]() Note that the name of the installer file may vary depending on the version you downloaded. Next, run the following command to make the Anaconda installer executable: chmod +x Anaconda3-2021.05-Linux-x86_64.sh ![]() Once the download is complete, open the terminal and navigate to the directory where the Anaconda installer was downloaded. You can download the latest version of Anaconda from the official website. The first step in our installation process is to install Anaconda.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |