How to import packages into python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to import packages into python

For eg. https://pypi.python.org/pypi/rarfile/ how I can import... What changes are made in python installation directory while successfully importing the package

9th Jul 2016, 5:11 PM
Rahul
4 Answers
+ 3
To use a package in python you can install it first. With the newer versions of python 2.7 or 3.x you should have the pip package. This module allow you to install any package from pypi with a single line in the console. You can type the following and the files will be install in your python directory automatically. ->> pip install rarfile
10th Jul 2016, 2:37 AM
Makdum makdum
Makdum makdum - avatar
+ 1
absolutely search python pip on google
10th Jul 2016, 3:56 AM
Makdum makdum
Makdum makdum - avatar
0
Is this command works for Windows???
10th Jul 2016, 3:33 AM
Rahul
0
yh I'm pretty sure it does work for Windows
2nd Sep 2016, 10:23 PM
Krishna Limani
Krishna Limani - avatar