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

新浪云 SAE 如何使用 openCV 的包?

  •  
  •   epleone · May 4, 2017 · 2760 views
    This topic created in 3431 days ago, the information mentioned may be changed or developed.
    求助如何导入 import cv2 ?可以在 config.yaml 中加上引用吗?
    2 replies  •  2017-05-04 10:50:18 +08:00
    VicYu
        1
    VicYu  
       May 4, 2017
    你可以尝试一下压缩成 zip 包

    ```
    $ unzip -l example.zip
    Archive: example.zip
    Length Date Time Name
    -------- ---- ---- ----
    8467 11-26-02 22:30 jwzthreading.py
    -------- -------
    8467 1 file
    $ ./python
    Python 2.3 (#1, Aug 1 2003, 19:54:32)
    >>> import sys
    >>> sys.path.insert(0, 'example.zip') # Add .zip file to front of path
    >>> import jwzthreading
    >>> jwzthreading.__file__
    'example.zip/jwzthreading.py'
    ```
    zhaixiaohu
        2
    zhaixiaohu  
       May 4, 2017
    你这个问题应该提工单,比较好。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2377 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:29 · PVG 13:29 · LAX 22:29 · JFK 01:29
    ♥ Do have faith in what you're doing.