3/21/2023 0 Comments Install sklearn anaconda prompt![]() ![]() Just starting out with TensorFlow? Getting it installed is just the first step. However, if the installation was unsuccessful, you will get an error. If everything is okay, the command will return nothing other than the Python prompt. Now try to import the library: import tensorflow as tf In the previously opened command prompt, which should be using the virtual environment in which you installed TensorFlow, type python to get to the Python terminal: $ python To do so, we can run Python's import statement and see if we can successfully import the TensorFlow library. Now that TensorFlow has been installed, we can verify whether the installation was successful or not. The progress of the installation process will be shown on the command prompt. The command will prompt you to confirm the installation of these packages. Next, run the following command to install TensorFlow: $ conda install tensorflowĪ list of packages to be installed alongside TensorFlow will be shown. ![]() With pip, you can install TensorFlow with GPU support as follows: The command will take some time to execute, so remain patient. Here is the command: $ pip3 install -upgrade tensorflow To do so, go to the start menu on your Windows machine, search for "cmd", right click it and choose "Run as administrator".Īfter that, you only have to run one simple command to install TensorFlow. Run the windows command prompt as an administrator. It is now finally time to install TensorFlow. Since you have installed the latest version of Python, that is, Python 3.x, you have pip3, and not pip. To do so, go to the command prompt and type: $ pip3 -version Once the installation completes, check for the version of pip running on your system. Download the latest version of Python from the official Python website and install it. To get the pip package manager, you first need to install Python. The package can install TensorFlow together with its dependencies.Īnaconda is also a great option for installing TensorFlow, but it is not shipped with Python like pip is, therefore you must download and install it separately.īoth packages are open source, so feel free to choose the one you like. Python comes with the pip package manager, so if you have already installed Python, then you should have pip as well. On Windows, TensorFlow can be installed via either "pip" or "anaconda".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |