码迷,mamicode.com
首页 > 编程语言 > 详细

Python: how to public a model

时间:2015-11-23 18:43:29      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

1, Create a folder fileFolder

2, create a file tester.py

3, create another file setup.py:

The content of setup.py

  from distutils.core import setup

  setup(name = ‘tester‘,
      version = ‘1.0.0‘,
      py_modules = [‘tester‘],
      author = ‘MengliChen‘,
      author_email = ‘v-mench@outlook.com‘,
      url = ‘http://www.baidu.com‘,
      description = ‘ A simple prnter of string lists‘
      )

4, public the file test.py: In the command type in python setup.py sdit

5, Install the build in your local VM: In the command type in python setup.py install

 

You can use the method in test.py by following code:

import tester

tester.methodName()

 

Python: how to public a model

标签:

原文地址:http://www.cnblogs.com/vision668/p/4989012.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!