RASA pip installation fail: Multiple requirements incompatible - rasa-core

I am trying to install RASA using instructions here
I created a virtual environment and did a pip install rasa. But below is the error message with multiple dependencies incompatible. Do I install all the specified versions from the error message individually?
I found multiple people having installation issues and tried my best to find a solution in the forum, but couldn't.
error message- list of dependencies

It looks like you are trying to install Rasa1.x in an environment where you had previously installed rasa-nlu and rasa-core separately (pre Rasa 1.x). These are old versions that you can't mix with post-1.x Rasa.
I would recommend creating a new virtual environment, making sure it is active, checking that no rasa-nlu or rasa-core is installed, then running pip install -U rasa or pip install -U rasa==<rasa version that you want> if you want a specific version.

Related

How can I install orion-ml?

The recommended method for installing orion-ml is via pip (e.g., pip install orion-ml) as stated in the github README.md
However, this simple command causes the error
INFO: pip is looking at multiple versions of baytune to determine which version is
compatible with other requirements. This could take a while.
Collecting baytune<0.3,>=0.2.3
Using cached baytune-0.2.4-py2.py3-none-any.whl (27 kB)
Using cached baytune-0.2.3-py2.py3-none-any.whl (27 kB)
INFO: pip is looking at multiple versions of mlblocks to determine which version is
compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver
with stricter constraints to reduce runtime. If you want to abort this run, you can press
Ctrl + C to do so. To improve how pip performs, tell us what happened here:
https://pip.pypa.io/surveys/backtracking
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine
which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of orion-ml to determine which version is
compatible with other requirements. This could take a while.
ERROR: Cannot install orion-ml because these package versions have conflicting dependencies.
The conflict is caused by:
mlprimitives 0.2.4 depends on tensorflow<2 and >=1.11.0
mlprimitives 0.2.3 depends on tensorflow<2 and >=1.11.0
mlprimitives 0.2.2 depends on tensorflow<2 and >=1.11.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
This tells us there is a version conflict. How can I resolve this? Thank you
I ran into the same issue and found out that orion-ml only worked with Python >=3.6, <3.8, but I had Python 3.9.2 installed which ended up pullig orion-ml 0.1.0 which is a very old version. I uninstalled 3.9.2 and installed a version under Python 3.8 and it worked
Install Anaconda:
https://www.anaconda.com/products/individual#download-section
Create a virtual environment with python version 3.7.(3.8.8 python makes an error installing "pip install orion-ml")
Run your python 3.7 virtual env.
pip install orion-ml : There's no error install "orion-ml" package.
Create a separate conda environment like:
conda create --name orion python=3.7 # or 3.6
conda activate orion
and then install tensorflow using:
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl
This will get you rid of the tensroflow error.

How to install justext package using Conda install when virtual environment is created?

I created virtual environment for python 3.4 version.I cant able to use pip from my network. I cant able to download files even. So i created virtual environment and started to install packages using conda install.
When i was using this command conda install -c syllabs_admin justext, i'm getting notification from my server like:
The following packages will be SUPERSEDED by a higher-priority channel:
python pkgs/free::python-3.4.5-0 --> pkgs/main::python-2.7.17-h9bab390_0
Can someone actually help me how to install this justext package for my python version 3.4 using conda install?
Unfortunately, no. There is no way that you can use conda install with any public channel to install justext and your python version. Checking the search function on anaconda.org, there are only two channels that provide justext:
moustik / justext 2.2.0
syllabs_admin / justext 2.2.0
Unfortunately, both have only python 2.7 packaged versions of the module.
you should try to fix your networking issues instead. It sounds really werid that conda install would be working while you claim to not be able to even download any files. Please talk to your IT department or Sys Admin about it or ask another question posting the errors you are getting when using pip install or wget https://files.pythonhosted.org/packages/6c/5f/c7b909b4b864ebcacfac23ce2f6f01a50c53628787cc14b3c06f79464cab/jusText-2.2.0-py2.py3-none-any.whl

'rasa' is not recognized as an internal or external command, operable program or batch file

Unable to run the rasa init command and getting following error:
'rasa' is not recognized as an internal or external command, operable program or batch file.
I have following version of RASA in my environment:
rasa-core 0.13.2
rasa-core-sdk 0.12.2
rasa-nlu 0.14.6
rasa-sdk 1.2.0
Sams answer is right. Rasa is probably not in your environment variable path.
Have you already tried:
py -m rasa init
or
python -m rasa init
If this doesn't work you may find answers at the rasa community forum
Did you try pip based installation as mentioned here
You can do
pip install rasa
If you have already done that I suspect that you need to add rasa in the environment variable PATH
Also are you using virtualenv? or conda environment? I would suggest using that to do the installation.
I had this issue with python 3.9. It worked after downgrading the python version to 3.8. It required recreating my conda environment.
Hopefully you got it working by now, but if not you can either
1) Try setting the Python path in Advanced System Settings > Environment Variables. (ideally we want it in a top-level folder)
2) Re-install Python using the graphical installer. Run the regular Python installer as administrator. BE SURE to click the little ‘Add to PATH’ checkbox, or all this will be for naught!! (For me personally this is a lot easier than manually adjusting the path in environment variables.)
Then choose “Custom install location.” Clicking “Install for all users” should automatically change the install path to the C:Program Files folder.
3) You may also be able to do this without a full reinstall by selecting Programs > Programs and Features > Modify/Repair.
Go to Settings -> Manage App Execution Aliases -> Turn Python Off - since I had both Python and Python3 enabled, the VSCODE was not letting me access the virtual environment I created in the Project Folder. This solved my issue.
Wrong Path in cmd Terminal of VSCODE:
C:\User....\Project>rasa --version
'rasa' was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
Correct Path in cmd Terminal of VSCODE (after turning off Python in Computer App Settings):
(venv) C:\User....\Project>rasa --version
Rasa Version : 2.3.4
Rasa SDK Version : 2.3.1
Rasa X Version : 0.37.1
Python Version : 3.7.10
The accepted answer says to set the environment variables which made me curious but the problem is I do not know the rasa installation path to set the environment variables.
Step 1:
So I'll write down how I figured this out. First, if you don't have the Anaconda package manager install it from the official website. (While installing click the checkbox to add Anaconda to your PATH environment variable.)
Step 2:
Now open up the anaconda prompt and go to the directory where you want to run rasa.
Step 3:
Then we can create a new conda environment by running conda create --name installingrasa python==3.8.5 to keep all of our dependencies together in a centralized place. Finally activate the environment by conda activate installingrasa
Step 4:
Install UJSON and Tensorflow that will help us to work with rasa.
conda install ujson
conda install tensorflow
Step 5:
Ultimately we can install rasa. Here we are going to install it via pip rather than conda. (there is no conda version fr rasa at the moment I'm writing this)
pip install rasa
Step 6:
In order to run Tensorflow on windows, we need to download visual c++ separately. Find the executable from the official website. And now we can run rasa init without errors and initialize new bot.
try this code while creating a virtual environment
conda create --name filename python==3.8
Looks like this is an issue of python 3.9. After playing around a lot with 3.9, I downgraded my python to 3.8 and it worked without a glitch.
You can create a conda environment with a different python version by using the option python==3.8 in the conda create command line.
The above solutions didn't worked for me.
After a lot of searching I found that rasa was located at C:\Users\tejas\AppData\Roaming\Python\Python36\Scripts\rasa.py (installed using pip install rasa)
As I was working anaconda environment named as(RASA)
I didn’t found rasa.py at C:\Users\tejas\anaconda3\envs\RASA\Scripts nor in
C:\Users\tejas\anaconda3\Scripts
So I just copy pasted rasa.py at these 2 locations and it worked for me in anaconda environment.
You might forget to install the rasa package. You can follow the steps to install rasa on your machine.
Create a new virtual environment named venv
You can also install rasa without virtual environment. but it would be better to track the dependencies if we are in a virtual environment.
python3 -m venv venv
Activate the virtual environment
For windows: venv\Scripts\activate
For Ubuntu: source ./venv/bin/activate
Install rasa package
pip3 install -U pip
pip3 install rasa
For more: Rasa installation
Try this command,
pip3 install -U --user pip && pip3 install rasa
It worked for me, This command will upgrade your pip to the latest version, and rasa will be successfully installed, and check it by typing rasa --version.
If it still doesn't work, download the python 3.7 version using miniconda,set the environment using miniconda, and then install rasa using this command again

How to install mlflow using pip install

I'm working on a Window 10 machine and trying to pip install mlflow but I'm getting the following error message.
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
mlflow from https://files.pythonhosted.org/packages/01/ec/8c9448968d4662e8354b9c3a62e635f8929ed507a45af3d9fdb84be51270/mlflow-1.0.0-py3-none-any.whl#sha256=0f2f116a377b9da538642eaf688caa0a7166ee1ede30c8734830eb9e789574b4:
Expected sha256 0f2f116a377b9da538642eaf688caa0a7166ee1ede30c8734830eb9e789574b4
Got eb34ea16ecfe02d474ce50fd1f88aba82d56dcce9e8fdd30193ab39edf32ac9e
It is trying to check cache for packages. They were likely compiled in linux or some other OS and you are trying to install them in Windows.
This should fix your issue:
pip install --no-cache-dir mlflow

Forcing pip to look at a locally installed package instead of a globally installed package

I'm using pip to install a software package with multiple dependencies onto a linux environment. Everything runs smooth when I call the pip install <package> up until the very end, when I get the error that a globally installed dependency package is out of date, meaning I should update the global version. Due to reasons beyond my control, doing this is out of the question. So, I installed an updated version to ~/bin. How do I tell pip to look there for the updated version?

Resources