我在使用 Conda 安装 OpenCV 时遇到问题。我尝试运行许多命令,但没有一个有效。例如,当我运行conda install -c anaconda opencv(根据https://anaconda.org/anaconda/opencv)时,我收到此错误:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- opencv -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. …Run Code Online (Sandbox Code Playgroud) 我目前正在使用React JS 和 Google Spreadsheets,并且正在关注与本文类似的内容。但是,我遇到了问题。每当我尝试连接到电子表格时,我的 React 应用程序都会成功运行几秒钟,然后崩溃,并显示以下错误消息:

目前,这是我的代码:
import {
GoogleSpreadsheet
} from 'google-spreadsheet';
function App() {
const setup = async () => {
const doc = new GoogleSpreadsheet('my spreadsheet-id'); // Obviously putting in my real spreadsheet id and data instead of this in my real code
await doc.useServiceAccountAuth({
client_email: 'my client-email',
private_key: 'my private-key'
});
await doc.loadInfo(); // loads document properties and worksheets
const sheet = doc.sheetsByIndex[0]; // or use doc.sheetsById[id]
console.log(sheet.title);
console.log(sheet.rowCount);
}
Run Code Online (Sandbox Code Playgroud)
我的应用程序函数确实有一个渲染方法,我最终运行设置函数来连接到我的电子表格。 …