V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
MyFaith
V2EX  ›  Python

Python 如何编写 setup.py

  •  
  •   MyFaith ·
    MyFaith · 2016-07-07 12:12:54 +08:00 · 3283 次点击
    这是一个创建于 2849 天前的主题,其中的信息可能已经有所发展或是发生改变。

    1.上传至 pip 后,可以使用 from x import x 或者 import x

    2.Python 在编写 setup.py 时,如何才能把文件生成到 bin 目录下 使用 pip instal xxx 安装后,可以直接使用 xxx 命令执行

    3 条回复    2016-07-07 13:02:17 +08:00
    lovepython
        1
    lovepython  
       2016-07-07 12:41:30 +08:00
    whiler
        2
    whiler  
       2016-07-07 12:45:19 +08:00
    MyFaith
        3
    MyFaith  
    OP
       2016-07-07 13:02:17 +08:00
    @lovepython
    @whiler
    谢谢, bin 那个问题已经解决了,但是当我安装好包之后, import 的时候 No module name 。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5278 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 05:43 · PVG 13:43 · LAX 22:43 · JFK 01:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.