[英]ERROR: Could not find a version that satisfies the requirement tensorflow-addons<0.8.0,>=0.7.1 (from rasa) (from versions: none)
I tried to install Rasa, with the command: pip3 install rasa
.我尝试使用以下命令安装 Rasa:
pip3 install rasa
。 However, I came up against an error about tensorflow, which is not automatically installed.但是,我遇到了一个关于 tensorflow 的错误,它不是自动安装的。 Then I used command:
pip3 install tensorflow
, unfortunately, an error appeared: ERROR: Could not find a version that satisfies the requirement tensorflow-addons<0.8.0,>=0.7.1 (from rasa) (from versions: none).然后我使用命令:
pip3 install tensorflow
,不幸的是,出现了错误:错误:找不到满足要求的版本 tensorflow-addons<0.8.0,>=0.7.1(来自 rasa)(来自版本:无)。 So how could I install Rasa, and Tensorflow as well?那么我该如何安装 Rasa 和 Tensorflow 呢? P/s: Python --version: 3.8.3;
P/s:Python——版本:3.8.3; pip --version: 20.1.1
pip --版本:20.1.1
There is a version compatibility section on TensorFlow Addons which states what combinations of [Python version | TensorFlow 插件上有一个版本兼容性部分,其中说明了 [Python 版本 | Tensorflow Version |
Tensorflow 版本 | Tensorflow Addons Version] is possible.
Tensorflow 插件版本]是可能的。
In your case, TensorFlow addons 0.7.1 is available only for Python versions <= 3.7.在您的情况下,TensorFlow 插件 0.7.1 仅适用于 Python 版本 <= 3.7。 The first version available for 3.8 is 0.10.0 which is incompatible with the Rasa requirement.
可用于 3.8 的第一个版本是 0.10.0,它与 Rasa 要求不兼容。 Maybe, you want to downgrade your python version and use a 3.7 one.
也许,您想降级您的 python 版本并使用 3.7 版本。
I've made the same mistake of installing the python version 3.8 when it says on the RASA installation notes that you've got to go for version 3.6 3.7 for now.我在安装 python 3.8 版时犯了同样的错误,因为它在 RASA 安装说明上说你现在必须使用 go 版本 3.6 3.7。
After having the right version of Python in my venv (macOS zsh) the installation worked fine.在我的 venv (macOS zsh) 中安装了正确版本的 Python 后,安装工作正常。 From the python site you can find the right version to prepare for your environment.
从 python 站点,您可以找到适合您的环境的正确版本。 Also it was advised that you prepare the python version for the venv and not your entire system (which I think is at python 2.x)
还建议您为 venv 而不是整个系统准备 python 版本(我认为在 python 2.x 中)
Making sure that you have all the components you need and the right version was key for RASA to not have issues during the install.确保您拥有所需的所有组件,并且正确的版本是 RASA 在安装过程中不会出现问题的关键。
I had to reinstall python 3.7 on my part because after verification it was missing from /usr/bin/ for some reason.我不得不重新安装 python 3.7,因为在验证后由于某种原因它从 /usr/bin/ 中丢失了。
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7
The following combination of versions worked for me and I was able to train the initial model以下版本组合对我有用,我能够训练初始 model
Python 3.7.7
tensorflow-addon 0.8.3
TensorFlow version 2.1.1
You can check tensorflow version by using the following command您可以使用以下命令检查 tensorflow 版本
python -c 'import tensorflow as tf; print(tf.__version__)'
I faced same problems and executed following commands:我遇到了同样的问题并执行了以下命令:
sudo apt-get update
sudo apt-get upgrade
sudo pip3 install --upgrade pip
pip3 install rasa
Now My System is:现在我的系统是:
Ubuntu 18.04.5 LTS
Python 3.6.9
pip 20.3.3
tensorflow 2.3.1
tensorflow_addons 0.12.0
and rasa on my system is working fine.我系统上的 rasa 工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.