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
epleone
V2EX  ›  Python

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

  •  
  •   epleone · 2017-05-04 09:01:26 +08:00 · 2043 次点击
    这是一个创建于 2521 天前的主题,其中的信息可能已经有所发展或是发生改变。
    求助如何导入 import cv2 ?可以在 config.yaml 中加上引用吗?
    2 条回复    2017-05-04 10:50:18 +08:00
    VicYu
        1
    VicYu  
       2017-05-04 09:16:53 +08:00
    你可以尝试一下压缩成 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  
       2017-05-04 10:50:18 +08:00
    你这个问题应该提工单,比较好。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2852 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 13:42 · PVG 21:42 · LAX 06:42 · JFK 09:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.