ERROR: No matching distribution found for tensorflow~=1.13.0 (from rasa_core)

I am trying to install pip3 install rasa_core in virtual environment and getting following error.

ERROR: Could not find a version that satisfies the requirement tensorflow~=1.13.0 (from rasa_core) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2) ERROR: No matching distribution found for tensorflow~=1.13.0 (from rasa_core)

Rasa Version : 2.0.2

Rasa SDK Version : 2.1.2

Rasa X Version : 0.33.2

Python Version : 3.8.5

OS : Ubuntu 20.04

@susajsnair If you are using conda do

conda install tensorflow==1.13.0

or try doing using pip only that will make you use …

Or try downgrading the python version to python 3.7.

@prakashr installed python 3.7.9 and created a virtual environment

pip install rasa resulted to another error

Traceback (most recent call last):

File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/urllib3/response.py”, line 425, in _error_catcher yield File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/urllib3/response.py”, line 507, in read data = self._fp.read(amt) if not fp_closed else b"" File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/cachecontrol/filewrapper.py”, line 62, in read data = self.__fp.read(amt) File “/usr/lib/python3.7/http/client.py”, line 461, in read n = self.readinto(b) File “/usr/lib/python3.7/http/client.py”, line 505, in readinto n = self.fp.readinto(b) File “/usr/lib/python3.7/socket.py”, line 589, in readinto return self._sock.recv_into(b) File “/usr/lib/python3.7/ssl.py”, line 1071, in recv_into return self.read(nbytes, buffer) File “/usr/lib/python3.7/ssl.py”, line 929, in read return self._sslobj.read(len, buffer) socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/cli/base_command.py”, line 186, in _main status = self.run(options, args) File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/commands/install.py”, line 357, in run resolver.resolve(requirement_set) File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py”, line 177, in resolve discovered_reqs.extend(self._resolve_one(requirement_set, req)) File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py”, line 333, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py”, line 282, in _get_abstract_dist_for abstract_dist = self.preparer.prepare_linked_requirement(req) File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/operations/prepare.py”, line 482, in prepare_linked_requirement hashes=hashes, File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/operations/prepare.py”, line 287, in unpack_url hashes=hashes, File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/operations/prepare.py”, line 159, in unpack_http_url link, downloader, temp_dir.path, hashes File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/operations/prepare.py”, line 303, in _download_http_url for chunk in download.chunks: File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/utils/ui.py”, line 160, in iter for x in it: File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/pip/_internal/network/utils.py”, line 39, in response_chunks decode_content=False, File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/urllib3/response.py”, line 564, in stream data = self.read(amt=amt, decode_content=decode_content) File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/urllib3/response.py”, line 529, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File “/usr/lib/python3.7/contextlib.py”, line 130, in exit self.gen.throw(type, value, traceback) File “/home/fingent/venvs/3.7_rasa/lib/python3.7/site-packages/urllib3/response.py”, line 430, in _error_catcher raise ReadTimeoutError(self._pool, None, “Read timed out.”) urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.

@Rasa Can u guys specify on which python version all theses components work properly.

its because your internet connection gone in somewhere while downloading try again giving

pip install rasa[full]

@susajsnair

@prakashr

I could install pip install rasa[full] in my env with following errors

ERROR: tensorflow 2.3.1 has requirement numpy<1.19.0,>=1.16.0, but you’ll have numpy 1.19.4 which is incompatible. ERROR: aiohttp 3.6.3 has requirement yarl<1.6.0,>=1.0, but you’ll have yarl 1.6.3 which is incompatible. ERROR: sanic 20.9.1 has requirement multidict==5.0.0, but you’ll have multidict 4.7.6 which is incompatible.

and after giving pip install rasa_core i am getting following errors, i doubts all of these packages work in same env.

ERROR: tensorflow-text 2.3.0 has requirement tensorflow<2.4,>=2.3.0, but you’ll have tensorflow 1.13.2 which is incompatible. ERROR: tensorflow-probability 0.11.1 has requirement cloudpickle>=1.3, but you’ll have cloudpickle 0.6.1 which is incompatible. ERROR: rasa 2.1.0 has requirement cloudpickle<1.5,>=1.2, but you’ll have cloudpickle 0.6.1 which is incompatible. ERROR: rasa 2.1.0 has requirement fbmessenger<6.1.0,>=6.0.0, but you’ll have fbmessenger 5.6.0 which is incompatible. ERROR: rasa 2.1.0 has requirement jsonschema<3.3,>=3.2, but you’ll have jsonschema 2.6.0 which is incompatible. ERROR: rasa 2.1.0 has requirement matplotlib<3.4,>=3.1, but you’ll have matplotlib 2.2.5 which is incompatible. ERROR: rasa 2.1.0 has requirement packaging<21.0,>=20.0, but you’ll have packaging 18.0 which is incompatible. ERROR: rasa 2.1.0 has requirement python-socketio<4.7,>=4.4, but you’ll have python-socketio 3.1.2 which is incompatible. ERROR: rasa 2.1.0 has requirement pytz<2021.0,>=2019.1, but you’ll have pytz 2018.9 which is incompatible. ERROR: rasa 2.1.0 has requirement redis<4.0,>=3.4, but you’ll have redis 2.10.6 which is incompatible. ERROR: rasa 2.1.0 has requirement ruamel.yaml<0.17.0,>=0.16.5, but you’ll have ruamel-yaml 0.15.100 which is incompatible. ERROR: rasa 2.1.0 has requirement scikit-learn<0.24,>=0.22, but you’ll have scikit-learn 0.20.4 which is incompatible. ERROR: rasa 2.1.0 has requirement slackclient<3.0.0,>=2.0.0, but you’ll have slackclient 1.3.2 which is incompatible. ERROR: rasa 2.1.0 has requirement tensorflow<2.4,>=2.3, but you’ll have tensorflow 1.13.2 which is incompatible. ERROR: rasa 2.1.0 has requirement tensorflow-estimator<2.4,>=2.3, but you’ll have tensorflow-estimator 1.13.0 which is incompatible. ERROR: rasa-nlu 0.15.1 has requirement future~=0.17.1, but you’ll have future 0.18.2 which is incompatible.

Do

pip install numpy==1.16.0
pip install yarl==1.0
pip install multidict==5.0.0

And try

pip install rasa

@susajsnair

@prakashr this may fix this temp issue, but there is no way to work rasa_core and rasa install and works in same environment. At the end it all leads to dependency issues.

@susajsnair rasa is the complete package it also consists of rasa core also… so it will be enough to work

@prakashr how could i access

from rasa_core.interpreter import RasaNLUInterpreter

in rasa 2