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

Python 如何运行 nodejs 开源模块, pyexecjs 是否只能简单执行

  •  
  •   qile1 · 2018-04-17 15:18:56 +08:00 · 3639 次点击
    这是一个创建于 2172 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,win10 安装 python3.6 后,gdcm 模块无法安装(据说 python2.7 可以安装成功),这个是我迄今为止找到的唯一处理包含压缩 jpg 的 dicom 文件办法,pydcm 无法直接读取有压缩的 dcm 文件 发现好多 js 开源代码可以处理 dcm 压缩图像,比如 https://unpkg.com/cornerstone-core 有没有办法将 js 执行结果传给 python 二次处理

    3 条回复    2018-08-20 02:40:49 +08:00
    golmic
        1
    golmic  
       2018-04-17 15:25:15 +08:00 via Android
    python 用 os.popen 调用 node 然后取结果,或者更简单的,直接 js 写文件 python 读就好。
    testsec
        2
    testsec  
       2018-04-17 22:33:06 +08:00 via iPhone
    PYexecJS 是只能执行简单的,1 楼的办法不错
    bestehen
        3
    bestehen  
       2018-08-20 02:40:49 +08:00
    @testsec 怎么说是简单的?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1048 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:35 · PVG 06:35 · LAX 15:35 · JFK 18:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.