filmov
tv
Python Getting Started With setuptools setup.py setup.cfg and OpenStack pbr
![preview_player](https://i.ytimg.com/vi/H1_Eq8W9AYc/maxresdefault.jpg)
Показать описание
1)
Install setuptools
#sudo apt-get install python-setuptools
2)
select a python project/module which we need to to install using setuptools
3)
Open python console and try import your project/module and you should get error, since project/module not installed.
4)
import setuptools
import setuptools
Examples:
5)
* Check the folders and files which are created by above command
6)
--------------------------
a)
b)
Options for 'install' command:
--user install in user site-package
'/home/saju/.local/lib/python2.7/site-
packages'
--record filename in which to record list of
installed files
c)
d)
e)
f)
g)
h)
7)
import setuptools
* What is pbr
[metadata]
name= blabla
8)
#sudo pip uninstall regservice
9)
import setuptools
Then run following command to install the module and try to import the module in python console. You can use "#sudo pip uninstall regservice" to unstall the module
10)
import setuptools
Комментарии