![]() You can confirm with the newly installed Python location by just typing the command ~]# which pythonīy using conda command we can easily manage the packages. If your installation is successful, then it will list all the installed packages in the alphabetical order just like above. # packages in environment at /usr/local/anaconda: To test your installation, in your Terminal window run the command ~]# conda list Our next step is to test our installation. To make the changes take effect, close and then re-open your Terminal window. > /usr/local/anaconda/ĭo you wish the installer to prepend the Anaconda3 install locationĪppending source /usr/local/anaconda/bin/activate to /root/.bashrcĪ backup will be made to: /root/.bashrc-anaconda3.bakįor this change to become active, you have to open a new terminal. ![]() The installer will then begin and proceed with a series of questions.ĭo you accept the license terms? Īnaconda3 will now be installed into this location: This will make running Conda commands a lot easier ~]# sh Anaconda3-5.0.0.1-Linux-x86_64.sh Towards the end, when it asks if you want to perpend Anaconda to your OS’ s PATH variable, select ‘ Yes’. You can run the installer using shell command sh just like this. Once you' ve downloaded the installer, you can open up a terminal and run it. Here python 3.6 for 64-bit architecture is downloaded. So, first download the Anaconda installer.ĭepending upon preferred python version, you can download the anaconda installer. In this tutorial, you will be briefed about the method to install Python Anaconda and Miniconda in CentOS 7.Ī minimum of 3GB disk space is required to download and install Anacondo and all its packages. However, if you use a third-party distribution, you are free to add/remove packages and update python as much as you want and your os will remain fully operational. ![]() If you update the core interpreter, it might affect certain OS utilities. Invoke python from your shell as follows: $ pythonĮnter the following short program inside the python interactive shell: > import tensorflow as tf> hello = tf.constant('Hello, TensorFlow!')> sess = tf.Session()> print(sess.To Install Python Anaconda and Miniconda in CentOS 7īasically, all the major Linux distributions come up with a base Python package. ![]() If you installed through Anaconda, activate your Anaconda environment. To install the GPU version of TensorFlow, enter the following command (on a single line): (tensorflow)C:> pip install -ignore-installed -upgrade tensorflow-gpu (tensorflow)C:> pip install -ignore-installed -upgrade tensorflow To install the CPU-only version of TensorFlow, enter the following command: Issue the appropriate command to install TensorFlow inside your conda environment.(tensorflow)C:> # Your prompt should change Activate the conda environment by issuing the following command:.Create a conda environment named tensorflow by invoking the following command:Ĭ:> conda create -n tensorflow pip python=3.5.Follow the instructions on the Anaconda download site to download and install Anaconda.To install Tensorflow we recommend the following steps from Tensorflow’s site:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |