To see what's available in your version of the library, read the official documentation and plan your project accordingly.įor additional materials, check out our comparison of PyTorch vs. On Windows, use: conda list | findstr "torch"Īs a result, the output shows the torch library as pytorch along with the version number.Īfter this tutorial, you should know the version PyTorch version installed on your system.
Get conda python version install#
If you used conda to install PyTorch, check the version with: conda list | grep "torch" The conda package manager comes with the Anaconda installation by default. The output prints detailed information about the package, including the version. This package manager was spun out as a separate open-source package as it. Use the pip list command together with grep to filter out the results from the list: pip list | grep torchĪlternatively, use the findstr command on Windows: pip list | findstr "torch"Ģ. Package versions in Anaconda are managed by the package management system conda. If you installed the torch package via pip, there are two ways to check the PyTorch version.ġ. I now use Anaconda as my primary Python distribution and my company have also adopted it for use on all of their developer machines as well as their servers so I like to think I’m a relatively knowledgeable user. For example, 1.9.0+cu102 means the PyTorch version is 1.9.0, and the CUDA version is 10.2.Īlternatively, use your favorite Python IDE or code editor and run the same code. Robin's Blog Conda revisions: letting you ‘rollback’ to a previous version of your environment June 14, 2016. The output prints the installed PyTorch version along with the CUDA version. Import the torch library and check the version: import torch Jupyter Notebook, NumPy, matplotlib) you can install Anaconda, which will auto-magically use Python 3. Open the terminal or command prompt and run Python: python3Ģ. To load anaconda, type module load anaconda3/2022.01. To check the PyTorch version using Python code:ġ. To check what version of Python you have installed, type which python.
Get conda python version how to#
If you want to upgrade, follow our tutorial: How to Upgrade Python to 3.9. Note: The latest Python version is 3.9 at the time of writing this article.