Or you could use your python version associated with anaconda !python3. In order to check the packages that are installed with Anaconda, navigate to the command line and enter the conda list.
In your jupyter notebook, you can install python packages through pip in a cell this way !pip install package-name The featured packages in Anaconda are Astropy, Cython, h5py, IPython, LLVM, LLVMpy, matplotlib, Mayavi, NetworkX, NLTK, Numexpr, Numba, numpy, pandas, Pytables, scikit-image, scikit-learn, scipy, Spyder, Qt/PySide, and VTK.
If it is version 10.x.x or above, then install your python package with this line of code subprocess.check_call() If you have pip installed in anaconda you can run the following in jupyter notebook or in your python shell that is linked to anaconda pip.main()Ĭheck your version of pip with pip._version_. Then open the Anaconda Prompt and type the below command to create a virtual environment to install a specific version of Tensorflow.
Download and install an individual edition of anaconda for your windows system. All of the code we discuss in these instructions will be run directly in the Anaconda Prompt. We can easily manage virtual environments and packages within them with the help of the conda package manager. this command will return only the package named anaconda (thanks to the and the end: yes it actually is a. This can be done using conda, Anaconda’s package manager: conda list anaconda. This is a modified version of the Windows Command Prompt that support specific Anaconda commands. So if you have already installed Anaconda and you want to check which version you have, all you need to do is to check the meta-package version. To access the prompt on Windows, open the Windows start menu and start typing ‘Anaconda Prompt’. Search in your Windows taskbar for the Anaconda Prompt. I find it easiest to use Anaconda with the Anaconda Prompt. Click ‘Finish’ to complete the Anaconda installation. Since some of the conda packages may lack support overtime it is required to install using pip and this is one way to do it It will take several minutes for the Anaconda installation to finish. It will automatically install to the anaconda environment without having to use conda install package-name
This should now successfully install packages using that virtual environment's pip!Īll you have to do is open Anaconda Prompt and type pip install package-name Install new packages by doing /anaconda/envs/venv_name/bin/pip install package_name. It should be somewhere like /anaconda/envs/venv_name/.
Show the TensorFlow version in the command line by running: python -c 'import tensorflow as tf print (tf.version)' Check with a specific version of Python by adding the version number to the python command: pythonThis will install pip to your venv directory.įind your anaconda directory, and find the actual venv folder. Check TensorFlow Version in Windows Command Line.
Run conda create -n venv_name and source activate venv_name, where venv_name is the name of your virtual environment. For others who run into this situation, I found this to be the most straightforward solution: