-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPython_Package_Manager.py
More file actions
46 lines (27 loc) · 1022 Bytes
/
Copy pathPython_Package_Manager.py
File metadata and controls
46 lines (27 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
### Python Package Manager ###
"""
PIP(https://pypi.org/) stands for Preferred installer program. We use pip to install different Python packages.
Package is a Python module that can contain one or more modules or other packages.
A module or modules that we can install to our application is a package. In programming,
we do not have to write every utility program, instead we install packages and import them to our
applications.
"""
import numpy
import mypackage.arithmetics # pip install numpy
print(numpy.version.version)
numpy_array = numpy.array([23, 35, 52, 30, 30, 24, 67])
print(type(numpy_array))
print(numpy_array * 2)
import pandas # pip install pandas
## pip list
## pip uninstall pandas
## pip show numpy
## pip install requests
import requests
#response = requests.get("https://pokeapi.co/api/v2/pokemon?limit=151")
#print(response)
#print(response.status_code)
#print(response.json())
## Arithmetics Package
from mypackage import arithmetics
print(arithmetics.sum_two_values(1, 4))