Please enable Javascript for better experience...
Python important package installation commands - Python v3.7
By Rahul Kumar Jha | Jun 3, 2020 | In Articles | Total Views [ 1748 ]
Taged In
(0 Like)
Rate

In this article, I have tried to put all the important package installation commands to be used in python and machine learning purpose. I will update this article periodically.

Introduction

This article will act as a repository for installing various python libraries like tensorflow, keras, pytorch etc. In later part, I will also try to include issues which occurs during installation.

Installing/Unsinstalling PyTorch

To install pytorch you can use this link https://pytorch.org/ where you can get all the relevant commands associated with different platform like windows, linux, mac etc.

Install pytorch with torchvision using PIP command

Command for CPU enabled

pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

For GUP enabled

pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.html

If you open pytorch.org URL, you will see a UI having option to select command based on your requirement. Here I am showing how to select pip command for windows with no Cuda (CPU enabled) and with CUDA (GPU enabled. Below figure show command with CPU enabled.

01

Below figure shows command with GU enabled

02

Share this

About the Author

Rahul Kumar Jha
Rahul Kumar Jha
Founder, Developer dotnet-concept.com

Public profile: user/profile/99900001


Has working experience in different phases of Software Development Life Cycle (SDLC) in CMS, Gaming, Health Care and Financial Services domain using Agile pattern. Working experience in Design patterns, ASP.NET, MVC, ANGULAR, ANGULAR JS, Windows application, WCF, ADO.NET, SQL Server and Test Driven Development (TDD) environment with JQuery, JavaScript, N-Unit, Entity Frameworks, LINQ, Code Refactoring and Business Objects Models.

User's Comments


 
Please SignUp/Login to comment...

Or comment as anonymous...
* Name
* Email ID
Comment
 
 
 
 
 
 
Sponsors