Methods to install python package
Python is the most popular programming language for a variety of tasks. The beauty of this language is that it is open-source which makes it freely available and benefits from a very active community of developers around the world. Python developers share their solutions as packages or modules with other python users. This tutorial explains various ways to install a python package.
Method 1 : Using pip
Method 2 : Using conda
Method 3 : Using Command Prompt/Terminal
Method 1 : Using pip
If you are using Jupyter Notebook or IPython Console, make sure to use ! before pip when you enter the command below. Otherwise it would return syntax error.
!pip install package_name
e.g pip install numpy
Method 2 : Using conda
Anaconda is the data science platform which comes with pre-installed popular python packages and powerful IDE (Spyder) to ease writing of python scripts.
If Anaconda is installed on your system (laptop),
click on Anaconda Prompt as shown in the image below.
conda install package-name
Method 3 : Using Command Prompt/Terminal
Type "Command Prompt" in the search bar on Windows OS. For admin rights, right-click and choose "Run as administrator".
Auf dieser Seite können Sie das Online-Video python packages installing methods mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer DR. AMIN UL HAQ PhD Postdoc 18 April 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!