python - ModuleNotFoundError:没有名为“tensorflow_quantum”的模块
问题描述
我正在使用 Python 3.8(64 位)
基本上,我尝试了互联网上所有可能的解决方案,比如更新 python 版本和 tensorflow 版本等。
但是当我尝试这样做时:
import tensorflow_quantum as tfq
终端总是说:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow_quantum'
有人对这个问题有任何想法吗?干杯
解决方案
请运行以下命令:
pip3 install --upgrade pip
pip3 install tensorflow==2.3.1
pip3 install -U tensorflow-quantum
推荐阅读
- node.js - 静态文件如何在 express js 中工作?
- c++ - 带推力减少的推力::复杂无法编译
- javascript - 谷歌广告词 | excludePlacementList -> addExcludedPlacement 不适用于通过 UI 工作的 Url
- facebook-instant-games - 排行榜奇怪的行为和问题
- html - Django 1.10 - 问题从模板传递值到视图
- javascript - 如何使用 v-for 使用 vue.js 渲染表格
- spring - jee:jndi-lookup 或 JndiObjectFactoryBean
- java - Java 9 Set.of(...) 不允许重复条目背后的原因
- dart - Flutter 执行顺序:build 和 initState
- jquery - 数据表为第 0 行第 0 列请求未知参数“0”