推荐学习书目
› 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
zcsnbb
V2EX  ›  Python

我的目录结构是这样的 每个文件夹下都是有__init__的 没有写出来 我想在 insert 中导入 ccxt 应该如何写

  •  
  •   zcsnbb · Oct 26, 2018 · 2269 views
    This topic created in 2956 days ago, the information mentioned may be changed or developed.

    我写的是 from hunter.trade import ccxt 但是运行时提示我 no moudle named hunter

    2 replies  •  2018-10-29 10:53:59 +08:00
    zh826256645
    zh826256645
    Oct 27, 2018
    1
    首先, 你得确定你的运行文件和 hunter 是不是在同级目录下,或者 hunter 在不在你的 python 库中
    如果不满足上述条件, 就会出现 no moudle named hunter
    解决方法参考: https://blog.csdn.net/pwc1996/article/details/52577148
    zcsnbb
    zcsnbb
    OP
    Oct 29, 2018
    2
    了解了 python 的 import 中的坑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1613 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 16:16 · PVG 00:16 · LAX 08:16 · JFK 11:16
    ♥ Do have faith in what you're doing.