当我尝试将python-shell包用于react-native应用程序时收到此错误

时间:2020-06-23 09:57:30

标签: python react-native

错误:无法从child_process解析模块node_modules\python-shell\index.js:在项目中找不到child_process。

const options = { pythonPath: 'C:\ Users \ mahmo \ AppData \ Local \ Programs \ Python \ Python36 \', };

PythonShell.run(
  'C:\\Users\\user\\OneDrive\\Desktop\\mob\\src\\live_streaming.py',
  options,
  function(err) {
    if (err) {
      throw err;
    }
    console.log('finished');
  },
);

0 个答案:

没有答案