We would begin with a line about Python String from the book "Pg 191, Learning Python (O'Reilly, 5e)":
Strictly speaking, Python strings are categorized as immutable sequences, meaning that the characters they contain have a left-to-right positional order and that they cannot be changed in place. In fact, strings are the first representative of the larger class of objects called sequences that we will study here. Pay special attention to the sequence operations introduced in this post, because they will work the same on other sequence types we’ll explore later, such as lists and tuples.
Table 7-1. Common string literals and operations
Operation
Interpretation
S = ''
Empty string
S = "spam's"
Double quotes, same as single
S = 's\np\ta\x00m'
Escape sequences
S = """...multiline..."""
Triple-quoted block strings
S = r'\temp\spam'
Raw strings (no escapes) print(S) # \temp\spam
B = b'sp\xc4m'
Byte strings in 2.6, 2.7, and 3.X print(B) # b'sp\xc4m'
# Picking the fifth character from a stringstr_1 = "Hi, I am Ashish!"
str_1[4]'I'# Picking characters from fifth to tenthstr_1[4:10]'I am A'# Print the length of the stringprint(len(str_1))
print(len(str_1[4:10]))16
6# Print every second character in the stringstr_1[0::2]'H,Ia sih'# When you give negative number for indexing, it starts traversing the string from the right:print(str_1[-1])
print(str_1[-2])
print(str_1[-5 : -1])
print(str_1[-5 :])!
h
hish
hish!When you are giving a range for indexing to a string, the first number should be smaller than the second, or nothing comes out:print("str_1[-1 : -5]: ", str_1[-1 : -5], "<-")str_1[-1 : -5]: <-# Reverse a stringprint("-->", str_1[len(str_1) : 0])
print("-->", str_1[6 : 0])
print()
"""Here it skips the first character because that's how indexing works. It excludes the last indexing number specified."""
print("-->", str_1[len(str_1) : 0 : -1])
print("-->", str_1[len(str_1) : 0 : -1])
print()
print("-->", str_1[len(str_1) : : -1])
print("-->", str_1[ : : -1])
print()
print("-->", str_1[len(str_1)+1 : : -1])
print("-->", str_1[0 : len(str_1)+1])-->
-->
--> !hsihsA ma I ,i
--> !hsihsA ma I ,i
--> !hsihsA ma I ,iH
--> !hsihsA ma I ,iH
--> !hsihsA ma I ,iH
--> Hi, I am Ashish!When you are specifying number for an indexing range, the number can go beyond the actual string length but not when you are picking only a character:print("-->", str_1[len(str_1)+1])IndexError Traceback (most recent call last)
<ipython-input-32-ae4c8bcbdc17> in <module>
---> print("-->", str_1[len(str_1)+1])
IndexError: string index out of range# Check if a string is a palindromestr_2 = "mom"
print(str_2 == str_2[::-1])
print(str_1 == str_1[::-1])True
False# Check if two string variables are actually same.
Important Note: What we are going to see in this piece of code does not hold true for lists.v1 = str_2
v2 = str_2
v3 = 'mom'
print("v1 == v2:", v1 == v2)
print("v1 == v3:", v1 == v3)
print("v1 is v2:", v1 is v2)
print("v1 is v3:", v1 is v3)
print("id(v1)", id(v1))
print("id(v3)", id(v3))v1 == v2: True
v1 == v3: True
v1 is v2: True
v1 is v3: True
id(v1) 2053130113968
id(v3) 2053130113968# Now trying the same thing with lists:animals = ['python','gopher']
more_animals = animals
print("animals == more_animals:", animals == more_animals) #=> True
print("animals is more_animals:", animals is more_animals) #=> True
even_more_animals = ['python','gopher']
print("animals == even_more_animals:", animals == even_more_animals) #=> True
print("animals is even_more_animals:", animals is even_more_animals) #=> False
print("\nMemory addresses:")
print("id(animals)", id(animals))
print("id(more_animals)", id(more_animals))
print("id(even_more_animals)", id(even_more_animals))animals == more_animals: True
animals is more_animals: True
animals == even_more_animals: True
animals is even_more_animals: False
Memory addresses:
id(animals) 2053130940992
id(more_animals) 2053130940992
id(even_more_animals) 2053130060928Checking what happens to a string when replace a character in a string and to a list when we replace an element in it:owner = 'Ashish'
pets = ['python', 'gopher']
print("owner:", owner)
print("id(owner): ", id(owner))
print("id(pets): ", id(pets))
owner = owner.replace('A', 'X')
# Note: we don't have a "replace()" method for Python lists.
pets[0] = 'cat'
print("owner:", owner)
print("id(owner): ", id(owner))
print("id(pets): ", id(pets))
owner = owner.replace('X', 'A')
pets[0] = 'python'
print("owner:", owner)
print("id(owner): ", id(owner))
print("id(pets): ", id(pets))
print("Trivial replacement:")
owner = owner.replace('A', 'A')
print("owner:", owner)
print("id(owner): ", id(owner))owner: Ashish
id(owner): 2287299151536
id(pets): 2287299204096
owner: Xshish
id(owner): 2287299080624
id(pets): 2287299204096
owner: Ashish
id(owner): 2287298874672
id(pets): 2287299204096
Trivial replacement:
owner: Ashish
id(owner): 2287298874672Now the question is: did it actually perform the trivial replace operation in this case or not?
Creating Replace For List
# a loop to do the replacement in-placewords = ['I', 'like', 'chicken']
for i, word in enumerate(words):
if word == 'chicken':
words[i] = 'broccoli'
print(words)['I', 'like', 'broccoli']# a shorter option if there’s always exactly one instance:words = ['I', 'like', 'chicken']
words[words.index('chicken')] = 'broccoli'
print(words)['I', 'like', 'broccoli']# a list comprehension to create a new list:words = ['I', 'like', 'chicken']
new_words = ['broccoli' if word == 'chicken' else word for word in words]
print(new_words)['I', 'like', 'broccoli']# any of which can be wrapped up in a function:words = ['I', 'like', 'chicken']
def replaced(sequence, old, new):
return (new if x == old else x for x in sequence)
new_words = list(replaced(words, 'chicken', 'broccoli'))
print(new_words)['I', 'like', 'broccoli']
#-#-#-#-#-#-#-#-#-#
Hello friends, to begin with the first thing we have to do is installation:
% You can download and install 'Python' from here: Python Downloads
% Or, you can download Anaconda from here: Anaconda DownloadsFor those who do not know what Anaconda is, here is a one-liner: It is your data science toolkit. [As written on the Anaconda website]
You should note that knowledge of both Python and Anaconda is important as Anaconda makes things very simple and manageable, but some organization will not allow you to install 'Anaconda' and you would have to work with Python only.
Today as this is the first session that I am taking, we would be discussing about installation of Python on Windows and Linux machines. That is because this is an especially important step as in future you would have to install and work with a lot of Python packages and at times there would conflicts as you would keep on increasing the number of package installations in your system.
For example: if you do a “pip install tensorflow” on your system that will install the latest version of the TensorFlow and now if you try to install a package (let us say) Elephas that would lead to conflict in packages as the dependencies of Elephas require you to have an incredibly old version of TensorFlow.
The dependencies of the Elephas as of 2020-July were:
Flask==1.0.2
hyperas==0.4
pyspark==2.4.0
six==1.11.0
tensorflow==1.15.2
pydl4j>=0.1.3
keras==2.2.5
Now we check the current version of TensorFlow available:
CMD>pip install tensorflow==ERROR: Could not find a version that satisfies the requirement tensorflow== (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 1.15.5, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0, 2.4.1, 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0)
ERROR: No matching distribution found for tensorflow==
Latest version of TensorFlow is 2.5.0.
Ref: Distributed Deep Learning Using Python Packages Elephas, Keras, Tensorflow and PySpark
This problem of dependencies is not only between packages but also between the version of Python you are using and a package such as Rasa.
As of Rasa 2.6.x, you need a Python from one of the following versions only: 3.6, 3.7 or 3.8
[ Ref:
% rasa/installation
% rasa/2.5.x/installation ]
Even though the current version of Python is: 3.9
What is the solution?
To deal with this we have a solution called:
1. 'virtual environment' in Python
2. 'conda environment' in Anaconda
We have an older version of Python in my system:
C:\Users\Ashish Jain>python
Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> print("Hi")
Hi
>>>
>>> exit()
C:\Users\Ashish Jain>
On a sidenote, if you want to see where your Python.exe is:
1. On Ubuntu, use "which python"
2. On Windows, use "where python"
C:\Users\Ashish Jain>where python
E:\programfiles\Anaconda3\python.exe
C:\Users\Ashish Jain\AppData\Local\Microsoft\WindowsApps\python.exe
Setting up "virtualenv"
Step 1: Install "virtualenv"
C:\Users\Ashish Jain>pip install virtualenv
Collecting virtualenv
Downloading virtualenv-20.4.6-py2.py3-none-any.whl (7.2 MB)
|███| 7.2 MB 1.6 MB/s
Collecting appdirs[2,>=1.4.3
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in e:\programfiles\anaconda3\lib\site-packages (from virtualenv) (1.7.0)
Requirement already satisfied: six[2,>=1.9.0 in e:\programfiles\anaconda3\lib\site-packages (from virtualenv) (1.15.0)
Collecting distlib[1,>=0.3.1
Downloading distlib-0.3.1-py2.py3-none-any.whl (335 kB)
|███| 335 kB 3.2 MB/s
Requirement already satisfied: filelock[4,>=3.0.0 in e:\programfiles\anaconda3\lib\site-packages (from virtualenv) (3.0.12)
Requirement already satisfied: zipp>=0.5 in e:\programfiles\anaconda3\lib\site-packages (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv) (3.1.0)
Installing collected packages: appdirs, distlib, virtualenv
Successfully installed appdirs-1.4.4 distlib-0.3.1 virtualenv-20.4.6
Step 2: Check where it is installed.
C:\Users\Ashish Jain>where virtualenv
E:\programfiles\Anaconda3\Scripts\virtualenv.exe
Step 3: "virtualenv" creates a directory so you need to (additionally) set up a folder (like "my_workspace") where you would create virtual environments.
Related projects, that build abstractions on top of virtualenv:
% virtualenvwrapper - a useful set of scripts for creating and deleting virtual environments
% pew - provides a set of commands to manage multiple virtual environments
% tox - a generic virtualenv management and test automation command line tool, driven by a tox.ini configuration file
% nox - a tool that automates testing in multiple Python environments, similar to tox, driven by a noxfile.py configuration file
Ref: virtualenv Documentation
C:\Users\Ashish Jain>cd OneDrive/Desktop/my_workspace
Important difference between "Conda environment" and "Virtualenv": With "virtualenv" you cannot install lower (or previous) versions of Python but a higher (or newer) version. While, this limitation is not there in "conda env".
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>virtualenv rasa_env --python=python3.8
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.8'
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>virtualenv rasa_env_2 --python=python3.8
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.8'
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>virtualenv rasa_env_2 --python=python3.6
created virtual environment CPython3.6.6.final.0-64 in 12325ms
creator CPython3Windows(dest=C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env_2, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\Ashish Jain\AppData\Local\pypa\virtualenv)
added seed packages: pip==21.1.1, setuptools==56.0.0, wheel==0.36.2
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>virtualenv rasa_env_3 --python=python3.8
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.8'
Step 4: We locate our "activate" file if we are on Ubuntu and "activate.bat" file if we are on Windows.
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>dir /s "activate"
Volume in drive C is Windows
Volume Serial Number is 8139-90C0
Directory of C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts
05/16/2021 12:54 AM 2,179 activate
1 File(s) 2,179 bytes
Total Files Listed:
1 File(s) 2,179 bytes
0 Dir(s) 62,928,424,960 bytes freeView 1:
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>dir /s "activate*"
Volume in drive C is Windows
Volume Serial Number is 8139-90C0
Directory of C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts
05/16/2021 12:54 AM 2,179 activate
05/16/2021 12:54 AM 1,052 activate.bat
05/16/2021 12:54 AM 3,102 activate.fish
05/16/2021 12:55 AM 1,755 activate.ps1
05/16/2021 12:55 AM 1,193 activate.xsh
05/16/2021 12:55 AM 1,193 activate_this.py
6 File(s) 10,474 bytes
Total Files Listed:
12 File(s) 20,956 bytes
0 Dir(s) 62,889,410,560 bytes free View 2:
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>dir /s /b "activate*"
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts\activate
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts\activate.bat
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts\activate.fish
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts\activate.ps1
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts\activate.xsh
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts\activate_this.py
C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts>activate.bat
(rasa_env) C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace\rasa_env\Scripts>
Do you see this "(rasa_env)"? This means you are in venv "rasa_env".
Activate 'Python CLI' (Command Line Interface). Python CLI is also known as Python shell.
And Try Some Commands...
(rasa_env) C:\Users\Ashish Jain\OneDrive\Desktop\my_workspace>python
Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>Dealing with numeric dataAddition
>>>
>>> 7 + 3
10
>>>
Division
>>> 7 / 3
2.3333333333333335
>>>
>>> 7 // 3
2
>>>
Modulo (returns the remainder from division operation)
>>> 7 % 3
1
>>>
Data Type: Strings
>>> username = "Ashish"
>>> print(username)
Ashish
>>>
Note: You can do indexing on a String.
>>> username[0]
'A'
>>>
But a Python String is immutable like a 'Tuple'.
>>> username[0] = 'I'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' object does not support item assignment
>>>
Output Formatting in Four Ways:
Output Formatting #1
>>> print(F"Logged in as: {username}")
Logged in as: Ashish
>>>
Output Formatting #2
>>> print("Logged in as: {}".format('Ashish'))
Logged in as: Ashish
>>>
>>> print("Logged in as: {}".format(username))
Logged in as: Ashish
>>>
Output Formatting #3
>>> firstname = 'Ashish'
>>> lastname = 'Jain'
>>> print("Logged in as: %s %s" % (firstname, lastname))
Logged in as: Ashish Jain
>>>
Output Formatting #4
>>> print("Logged in as:", firstname, lastname)
Logged in as: Ashish Jain
>>>
>>> print("Logged in as:", username)
Logged in as: Ashish
>>>
Data Type: List
List is a collection of elements (may not be of similar type as you would see in programming language C or C++).
>>> l = ['a', 1]
>>> l[0]
'a'
>>> l[1]
1
>>>
Data Type: Tuple
Tuple is like the List data type with one difference that it is immutable.
>>> my_tuple = (1, 2, 3)
>>> my_tuple[0]
1
>>> my_tuple[0:3]
(1, 2, 3)
>>>
>>> my_tuple[0] = 4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'tuple' object does not support item assignment
>>>
Data Type: Dict (Dictionary)Important Note: What you are seeing as error for an attempt to concatenate two "dict" using "|" pipe character has been added as a feature in Python 3.9.0.
>>> {'a': 'b'} | {'c': 'd'}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
>>>
Multi-line String and Printing it.
>>>
>>> print("""Hi!
... I am Ashish!
... I love Python!""")
Hi!
I am Ashish!
I love Python!
>>>
Checking the type of a variable:
>>> type(username)
<class 'str'>
>>>
>>> isinstance(username, str)
True
>>>
>>> isinstance(username, int)
False
>>> isinstance(5, int)
True
Sometimes, the error logs of Python are not very clear. For example, in the example below we entered second argument as ('str') that is a string, instead of the keyword (str), so Python returns an error log TypeError: isinstance() arg 2 must be a type or tuple of types. Here by "type" it means "Data Type".
>>> isinstance(username, 'str')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: isinstance() arg 2 must be a type or tuple of types
Immutability of Strings and Tuples% TypeError: 'tuple' object does not support item assignment
% TypeError: 'str' object does not support item assignment
Working with "conda" (with Anaconda)
Launch 'Anaconda Prompt'.
(base) C:\Users\Ashish Jain>conda create -n py39 python=3.9
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.8.5
latest version: 4.10.1
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: E:\programfiles\Anaconda3\envs\py39
added / updated specs:
- python=3.9
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2021.4.13 | haa95532_1 150 KB
certifi-2020.12.5 | py39haa95532_0 144 KB
openssl-1.1.1k | h2bbff1b_0 5.7 MB
pip-21.0.1 | py39haa95532_0 2.0 MB
python-3.9.4 | h6244533_0 19.8 MB
setuptools-52.0.0 | py39haa95532_0 930 KB
sqlite-3.35.4 | h2bbff1b_0 1.2 MB
tzdata-2020f | h52ac0ba_0 123 KB
vc-14.2 | h21ff451_1 8 KB
vs2015_runtime-14.27.29016 | h5e58377_2 2.2 MB
wheel-0.36.2 | pyhd3eb1b0_0 31 KB
wincertstore-0.2 | py39h2bbff1b_0 15 KB
------------------------------------------------------------
Total: 32.3 MB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/win-64::ca-certificates-2021.4.13-haa95532_1
...
tzdata pkgs/main/noarch::tzdata-2020f-h52ac0ba_0
...
wheel pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
wincertstore pkgs/main/win-64::wincertstore-0.2-py39h2bbff1b_0
Proceed ([y]/n)? y
Downloading and Extracting Packages...
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
# $ conda activate py39
# To deactivate an active environment, use
# $ conda deactivate
Note: conda create -n py39 -c conda-forge python=3.9
(base) C:\Users\Ashish Jain>python
Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
Note here: We were in "base" environment with Python 3.7.1 but we were still able to create an environment with higher version (Python 3.9.4).
(base) C:\Users\Ashish Jain>conda activate py39
(py39) C:\Users\Ashish Jain>python
Python 3.9.4 (default, Apr 9 2021, 11:43:21) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
(py39) C:\Users\Ashish Jain>
The concatenation of two "dict" using "pipe" (|) character:
(py39) C:\Users\Ashish Jain>python
Python 3.9.4 (default, Apr 9 2021, 11:43:21) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> {'a': 'b'} | {'c': 'd'}
{'a': 'b', 'c': 'd'}
>>>
Putting all of the above in a '.py file' or a 'Python script'.
The way to start Jupyter Notebook is through the command: "jupyter notebook"
(base) C:\Users\Ashish Jain\OneDrive\Desktop>jupyter notebook
[I 2021-05-16 17:00:42.136 LabApp] JupyterLab extension loaded from E:\programfiles\Anaconda3\lib\site-packages\jupyterlab
[I 2021-05-16 17:00:42.136 LabApp] JupyterLab application directory is E:\programfiles\Anaconda3\share\jupyter\lab
[I 17:00:42.172 NotebookApp] Serving notebooks from local directory: C:\Users\Ashish Jain\OneDrive\Desktop
[I 17:00:42.172 NotebookApp] Jupyter Notebook 6.3.0 is running at:
[I 17:00:42.173 NotebookApp] http://localhost:8888/?token=b9833146c3b56e7dc6632be0e513c541a436d84ff42b1511
[I 17:00:42.173 NotebookApp] or http://127.0.0.1:8888/?token=b9833146c3b56e7dc6632be0e513c541a436d84ff42b1511
[I 17:00:42.174 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:00:42.370 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Ashish%20Jain/AppData/Roaming/jupyter/runtime/nbserver-764-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=b9833146c3b56e7dc6632be0e513c541a436d84ff42b1511
or http://127.0.0.1:8888/?token=b9833146c3b56e7dc6632be0e513c541a436d84ff42b1511
This opens up a window in your browser:
In the image above, you can see the dropdown named "New". Click on this dropdown and select something like "Python 3" (the option coming for me). The items in this dropdown are your kernels that is an advanced concept for this post.
Link to the session recording: YouTubeTags: Technology,Python,Anaconda,Windows CMD,
We do not have "rasa" available in "conda-forge" channel:
(erasa4) CMD>conda install rasa -c conda-forgeCollecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- rasa
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
-- -- -- -- --
ERRONEOUS CODE in FILE "env.yml"name: erasa5
channels:
- conda-forge
dependencies:
- spacy
- python=3.8
- pip
- pip:
- rasa
- rasa-coreERROR:/ Pip subprocess error:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/joblib/
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'e:\\anaconda3\\envs\\erasa5\\scripts\\tqdm.exe'
Consider using the `--user` option or check the permissions.
failed
CondaEnvException: Pip failedComplete Logs
(base) CMD>conda env create -f env.ymlCollecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: / Ran pip subprocess with arguments:
['e:\\Anaconda3\\envs\\erasa5\\python.exe', '-m', 'pip', 'install', '-U', '-r', 'C:\\Users\\ashish\\Desktop\\condaenv.170xtvti.requirements.txt']
Pip subprocess output:
...
Installing collected packages: sniffio, rfc3986, ipython-genutils, h11, traitlets, pywin32, pyrsistent, httpcore, attrs, zope.interface, websockets, tornado, pyzmq, PyHamcrest, oauthlib, multidict, jupyter-core, jsonschema, incremental, hyperlink, httpx, httptools, constantly, Automat, aiofiles, webencodings, Twisted, sanic, requests-oauthlib, pytz, pyreadline, pygments, nest-asyncio, nbformat, jupyter-client, characteristic, async-generator, zope.event, werkzeug, wcwidth, tzlocal, Tubes, testpath, tensorboard-plugin-wit, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, sphinxcontrib-devhelp, sphinxcontrib-applehelp, snowballstemmer, sanic-plugins-framework, pillow, pandocfilters, pamqp, numpy, nbclient, mistune, markdown, kiwisolver, jupyterlab-pygments, imagesize, humanfriendly, greenlet, google-auth-oauthlib, entrypoints, docutils, defusedxml, cycler, bleach, babel, alabaster, absl-py, wrapt, typing, typeguard, tqdm, threadpoolctl, termcolor, tensorflow-estimator, tensorboard, tabulate, sphinx, sortedcontainers, simplejson, scipy, sanic-cors, ruamel.yaml.clib, requests-toolbelt, redis, PyYAML, python-engineio, python-crfsuite, pymongo, PyJWT, prompt-toolkit, ply, pathlib, opt-einsum, nbconvert, matplotlib, klein, keras-preprocessing, joblib, itsdangerous, httplib2, h5py, google-pasta, gevent, gast, future, docopt, dnspython, dm-tree, decorator, coloredlogs, cloudpickle, astunparse, apscheduler, aiormq, aiohttp, webexteamssdk, ujson, twilio, terminaltables, tensorflow-probability, tensorflow-hub, tensorflow-addons, tensorflow, SQLAlchemy, slackclient, sklearn-crfsuite, sentry-sdk, scikit-learn, sanic-jwt, ruamel.yaml, rocketchat-API, regex, rasa-sdk, rasa-nlu, questionary, python-telegram-bot, python-socketio, pyTelegramBotAPI, pykwalify, pydot, psycopg2-binary, pandoc, oauth2client, networkx, nbsphinx, mattermostwrapper, keras, kafka-python, jsonpickle, graphviz, flask, fbmessenger, fakeredis, ConfigArgParse, colorhash, colorclass, aio-pika, rasa-core, rasa
Attempting uninstall: attrs
Found existing installation: attrs 20.3.0
Uninstalling attrs-20.3.0:
Successfully uninstalled attrs-20.3.0
Attempting uninstall: multidict
Found existing installation: multidict 5.1.0
Uninstalling multidict-5.1.0:
Successfully uninstalled multidict-5.1.0
Attempting uninstall: pytz
Found existing installation: pytz 2021.1
Uninstalling pytz-2021.1:
Successfully uninstalled pytz-2021.1
Attempting uninstall: numpy
Found existing installation: numpy 1.20.0
Uninstalling numpy-1.20.0:
Successfully uninstalled numpy-1.20.0
Attempting uninstall: tqdm
Found existing installation: tqdm 4.56.0
Uninstalling tqdm-4.56.0:
Pip subprocess error:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'e:\\anaconda3\\envs\\erasa5\\scripts\\tqdm.exe'
Consider using the `--user` option or check the permissions.
failed
CondaEnvException: Pip failed
(base) CMD>
-- -- -- -- --
We have a separate environment where we installed 'RASA_CORE' and 'RASA_NLU' separately, and here also we see that 'RASA' PYPI package (for RASA CLI) is failing to install.
ENV.YML for erasa4:
name: erasa4
channels:
- conda-forge
dependencies:
- spacy
- python=3.8
- pip
- pip:
- rasa-core
(base) CMD>conda activate erasa4Issues:
(erasa4) CMD>pip show rasa_core
Name: rasa-core
Version: 0.8.6
Summary: Machine learning based dialogue engine for conversational software.
Home-page: https://rasa.ai
Author: Rasa Technologies GmbH
Author-email: hi@rasa.ai
License: UNKNOWN
Location: e:\anaconda3\envs\erasa4\lib\site-packages
Requires: pandoc, tensorflow, redis, scikit-learn, pykwalify, jsonpickle, typing, graphviz, apscheduler, ruamel.yaml, h5py, nbsphinx, coloredlogs, networkx, slackclient, rasa-nlu, flask, python-telegram-bot, six, fbmessenger, future, fakeredis, ConfigArgParse, numpy, requests, Keras, tqdm
Required-by:
(erasa4) CMD>pip show rasa_nlu
Name: rasa-nlu
Version: 0.11.5
Summary: Rasa NLU a natural language parser for bots
Home-page: https://rasa.com
Author: Alan Nichol
Author-email: alan@rasa.ai
License: UNKNOWN
Location: e:\anaconda3\envs\erasa4\lib\site-packages
Requires: future, numpy, simplejson, jsonschema, requests, cloudpickle, matplotlib, pathlib, klein, boto3, gevent, six, typing, tqdm
Required-by: rasa-core
(erasa4) CMD>pip show rasa
WARNING: Package(s) not found: rasa
-- -- -- -- --
ERROR
(erasa4) CMD>rasa
'rasa' is not recognized as an internal or external command, operable program or batch file.
(erasa4) CMD>rasa init
'rasa' is not recognized as an internal or external command, operable program or batch file.RASA fails to install for all users.
(erasa4) CMD>pip3 install rasaCollecting rasa
Using cached rasa-2.2.9-py3-none-any.whl (689 kB)
...
Installing collected packages: sniffio, rfc3986, h11, httpcore, websockets, multidict, httpx, httptools, aiofiles, sanic, yarl, wcwidth, sanic-plugins-framework, pamqp, numpy, attrs, absl-py, typeguard, tqdm, tensorflow-estimator, tabulate, sanic-cors, requests-toolbelt, python-engineio, python-crfsuite, pymongo, PyJWT, prompt-toolkit, joblib, httplib2, dnspython, dm-tree, coloredlogs, cloudpickle, aiormq, aiohttp, webexteamssdk, ujson, twilio, terminaltables, tensorflow-probability, tensorflow-hub, tensorflow-addons, tensorflow, SQLAlchemy, sklearn-crfsuite, sentry-sdk, scikit-learn, sanic-jwt, rocketchat-API, regex, rasa-sdk, questionary, python-socketio, pyTelegramBotAPI, pykwalify, pydot, psycopg2-binary, oauth2client, mattermostwrapper, kafka-python, jsonpickle, fbmessenger, colorhash, colorclass, aio-pika, rasa
Attempting uninstall: multidict
Found existing installation: multidict 5.1.0
Uninstalling multidict-5.1.0:
Successfully uninstalled multidict-5.1.0
Attempting uninstall: yarl
Found existing installation: yarl 1.6.3
Uninstalling yarl-1.6.3:
Successfully uninstalled yarl-1.6.3
Attempting uninstall: numpy
Found existing installation: numpy 1.19.5
Uninstalling numpy-1.19.5:
Successfully uninstalled numpy-1.19.5
Attempting uninstall: attrs
Found existing installation: attrs 20.3.0
Uninstalling attrs-20.3.0:
Successfully uninstalled attrs-20.3.0
Attempting uninstall: absl-py
Found existing installation: absl-py 0.11.0
Uninstalling absl-py-0.11.0:
Successfully uninstalled absl-py-0.11.0
Attempting uninstall: tqdm
Found existing installation: tqdm 4.56.0
Uninstalling tqdm-4.56.0:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'e:\\anaconda3\\envs\\erasa4\\scripts\\tqdm.exe'
Consider using the `--user` option or check the permissions.
(erasa4) CMD>
-- -- -- -- --
To install RASA CLI (and overcome the installation issue in "erasa4" environment) we have to open the terminal and run the "pip3 install rasa --user" command there:
(erasa4) CMD>pip3 install rasa --userCollecting rasa
Using cached rasa-2.2.9-py3-none-any.whl (689 kB)
...
Installing collected packages: tqdm, tensorflow-estimator, tabulate, sanic-cors, requests-toolbelt, python-engineio, python-crfsuite, pymongo, PyJWT, prompt-toolkit, joblib, httplib2, dnspython, dm-tree, coloredlogs, cloudpickle, aiormq, aiohttp, webexteamssdk, ujson, twilio, terminaltables, tensorflow-probability, tensorflow-hub, tensorflow-addons, tensorflow, SQLAlchemy, sklearn-crfsuite, sentry-sdk, scikit-learn, sanic-jwt, rocketchat-API, regex, rasa-sdk, questionary, python-socketio, pyTelegramBotAPI, pykwalify, pydot, psycopg2-binary, oauth2client, mattermostwrapper, kafka-python, jsonpickle, fbmessenger, colorhash, colorclass, aio-pika, rasa
WARNING: The script tqdm.exe is installed in 'C:\Users\ashish\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script tabulate.exe is installed in 'C:\Users\ashish\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script coloredlogs.exe is installed in 'C:\Users\ashish\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts make_image_classifier.exe and make_nearest_neighbour_index.exe are installed in 'C:\Users\ashish\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts estimator_ckpt_converter.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'C:\Users\ashish\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script pykwalify.exe is installed in 'C:\Users\ashish\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script rasa.exe is installed in 'C:\Users\ashish\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
rasa-core 0.8.6 requires fbmessenger<5.0.0, but you have fbmessenger 6.0.0 which is incompatible.
rasa-core 0.8.6 requires pykwalify<=1.6.0, but you have pykwalify 1.7.0 which is incompatible.
Successfully installed PyJWT-2.0.1 SQLAlchemy-1.3.23 aio-pika-6.7.1 aiohttp-3.6.3 aiormq-3.3.1 cloudpickle-1.4.1 colorclass-2.2.0 coloredlogs-14.3 colorhash-1.0.3 dm-tree-0.1.5 dnspython-1.16.0 fbmessenger-6.0.0 httplib2-0.18.1 joblib-0.15.1 jsonpickle-1.4.2 kafka-python-2.0.2 mattermostwrapper-2.2 oauth2client-4.1.3 prompt-toolkit-2.0.10 psycopg2-binary-2.8.6 pyTelegramBotAPI-3.7.6 pydot-1.4.1 pykwalify-1.7.0 pymongo-3.10.1 python-crfsuite-0.9.7 python-engineio-3.13.2 python-socketio-4.6.1 questionary-1.5.2 rasa-2.2.9 rasa-sdk-2.2.0 regex-2020.9.27 requests-toolbelt-0.9.1 rocketchat-API-1.9.1 sanic-cors-0.10.0.post3 sanic-jwt-1.5.0 scikit-learn-0.23.2 sentry-sdk-0.19.5 sklearn-crfsuite-0.3.6 tabulate-0.8.7 tensorflow-2.3.2 tensorflow-addons-0.12.0 tensorflow-estimator-2.3.0 tensorflow-hub-0.9.0 tensorflow-probability-0.11.1 terminaltables-3.1.0 tqdm-4.50.2 twilio-6.45.4 ujson-3.2.0 webexteamssdk-1.6
(erasa4) CMD>
(erasa4) CMD>pip show rasaName: rasa
Version: 2.2.9
Summary: Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
Home-page: https://rasa.com
Author: Rasa Technologies GmbH
Author-email: hi@rasa.com
License: Apache-2.0
Location: c:\users\ashish\appdata\roaming\python\python38\site-packages
Requires: pykwalify, ujson, matplotlib, mattermostwrapper, pyTelegramBotAPI, kafka-python, scipy, python-dateutil, pytz, ruamel.yaml, PyJWT, requests, jsonschema, attrs, oauth2client, python-engineio, pymongo, slackclient, tensorflow-addons, python-socketio, psycopg2-binary, SQLAlchemy, colorhash, joblib, rasa-sdk, tensorflow-estimator, cloudpickle, sentry-sdk, scikit-learn, multidict, coloredlogs, pydot, regex, sanic, setuptools, jsonpickle, networkx, twilio, tensorflow-hub, sanic-cors, tqdm, sanic-jwt, colorama, fbmessenger, colorclass, aiohttp, prompt-toolkit, apscheduler, boto3, webexteamssdk, sklearn-crfsuite, terminaltables, async-generator, packaging, numpy, questionary, aio-pika, tensorflow, absl-py, redis, rocketchat-API, tensorflow-probability
Required-by:
-- -- -- -- --
(erasa4) CMD>rasa2021-02-03 14:50:58.305729: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2021-02-03 14:50:58.313121: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
usage: rasa [-h] [--version] {init,run,shell,train,interactive,telemetry,test,visualize,data,export,x} ...
Rasa command line interface. Rasa allows you to build your own conversational assistants 🤖. The 'rasa' command allows you to easily run most common commands like creating a new bot, training or evaluating models.
positional arguments:
{init,run,shell,train,interactive,telemetry,test,visualize,data,export,x}
Rasa commands
init Creates a new project, with example training data, actions, and config files.
run Starts a Rasa server with your trained model.
shell Loads your trained model and lets you talk to your assistant on the command line.
train Trains a Rasa model using your NLU data and stories.
interactive Starts an interactive learning session to create new training data for a Rasa model by chatting.
telemetry Configuration of Rasa Open Source telemetry reporting.
test Tests Rasa models using your test NLU data and stories.
visualize Visualize stories.
data Utils for the Rasa training files.
export Export conversations using an event broker.
optional arguments:
-h, --help show this help message and exit
--version Print installed Rasa version
(erasa4) CMD>
-- -- -- -- --
ALSO, WE SHARE BELOW THE LOGS WHILE DOING INSTALLATION FROM TERMINAL WITHOUT USING YML FILE
(base) CMD>conda create -n temp_rasa python=3.8Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: e:\Anaconda3\envs\temp_rasa
added / updated specs:
- python=3.8
The following packages will be downloaded:
package | build
---------------------------|-----------------
certifi-2020.12.5 | py38haa95532_0 141 KB
pip-20.3.3 | py38haa95532_0 1.8 MB
setuptools-52.0.0 | py38haa95532_0 726 KB
------------------------------------------------------------
Total: 2.6 MB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/win-64::ca-certificates-2021.1.19-haa95532_0
certifi pkgs/main/win-64::certifi-2020.12.5-py38haa95532_0
openssl pkgs/main/win-64::openssl-1.1.1i-h2bbff1b_0
pip pkgs/main/win-64::pip-20.3.3-py38haa95532_0
python pkgs/main/win-64::python-3.8.5-h5fd99cc_1
setuptools pkgs/main/win-64::setuptools-52.0.0-py38haa95532_0
sqlite pkgs/main/win-64::sqlite-3.33.0-h2a8f88b_0
vc pkgs/main/win-64::vc-14.2-h21ff451_1
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
wheel pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
wincertstore pkgs/main/win-64::wincertstore-0.2-py38_0
zlib pkgs/main/win-64::zlib-1.2.11-h62dcd97_4
Proceed ([y]/n)? y
Downloading and Extracting Packages
certifi-2020.12.5 | 141 KB | ### | 100%
setuptools-52.0.0 | 726 KB | ### | 100%
pip-20.3.3 | 1.8 MB | ### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate temp_rasa
#
# To deactivate an active environment, use
#
# $ conda deactivate
(temp_rasa) CMD>pip install rasa
Requirement already satisfied: rasa in c:\users\ashish\appdata\roaming\python\python38\site-packages (2.2.9)
...
Installing collected packages: sniffio, rfc3986, idna, h11, urllib3, pyasn1, httpcore, chardet, websockets, six, rsa, requests, pyasn1-modules, oauthlib, multidict, httpx, httptools, cachetools, aiofiles, sanic, requests-oauthlib, python-dateutil, pyreadline, pycparser, jmespath, google-auth, yarl, werkzeug, wcwidth, tensorboard-plugin-wit, sanic-plugins-framework, pytz, protobuf, pamqp, numpy, markdown, humanfriendly, grpcio, google-auth-oauthlib, cffi, botocore, attrs, async-timeout, absl-py, wrapt, tzlocal, typeguard, threadpoolctl, termcolor, tensorboard, scipy, s3transfer, ruamel.yaml.clib, PyYAML, pyrsistent, pyparsing, pillow, opt-einsum, kiwisolver, keras-preprocessing, h5py, google-pasta, gast, future, docopt, decorator, cycler, cryptography, astunparse, slackclient, ruamel.yaml, redis, packaging, networkx, matplotlib, jsonschema, colorama, boto3, async-generator, apscheduler
Successfully installed PyYAML-5.4.1 absl-py-0.10.0 aiofiles-0.6.0 apscheduler-3.6.3 astunparse-1.6.3 async-generator-1.10 async-timeout-3.0.1 attrs-20.2.0 boto3-1.17.0 botocore-1.20.0 cachetools-4.2.1 cffi-1.14.4 chardet-3.0.4 colorama-0.4.4 cryptography-3.3.1 cycler-0.10.0 decorator-4.4.2 docopt-0.6.2 future-0.18.2 gast-0.3.3 google-auth-1.24.0 google-auth-oauthlib-0.4.2 google-pasta-0.2.0 grpcio-1.35.0 h11-0.9.0 h5py-2.10.0 httpcore-0.11.1 httptools-0.1.1 httpx-0.15.4 humanfriendly-9.1 idna-2.10 jmespath-0.10.0 jsonschema-3.2.0 keras-preprocessing-1.1.2 kiwisolver-1.3.1 markdown-3.3.3 matplotlib-3.3.4 multidict-4.7.6 networkx-2.5 numpy-1.18.5 oauthlib-3.1.0 opt-einsum-3.3.0 packaging-20.9 pamqp-2.3.0 pillow-8.1.0 protobuf-3.14.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.20 pyparsing-2.4.7 pyreadline-2.1 pyrsistent-0.17.3 python-dateutil-2.8.1 pytz-2020.5 redis-3.5.3 requests-2.25.1 requests-oauthlib-1.3.0 rfc3986-1.4.0 rsa-4.7 ruamel.yaml-0.16.12 ruamel.yaml.clib-0.2.2 s3transfer-0.3.4 sanic-20.9.0 sanic-plugins-framework-0.9.5 scipy-1.6.0 six-1.15.0 slackclient-2.9.3 sniffio-1.2.0 tensorboard-2.4.1 tensorboard-plugin-wit-1.8.0 termcolor-1.1.0 threadpoolctl-2.1.0 typeguard-2.10.0 tzlocal-2.1 urllib3-1.26.3 wcwidth-0.2.5 websockets-8.1 werkzeug-1.0.1 wrapt-1.12.1 yarl-1.5.1
(temp_rasa) CMD>
(temp_rasa) CMD>pip show rasa
Name: rasa
Version: 2.2.9
Summary: Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
Home-page: https://rasa.com
Author: Rasa Technologies GmbH
Author-email: hi@rasa.com
License: Apache-2.0
Location: c:\users\ashish\appdata\roaming\python\python38\site-packages
Requires: sanic-cors, tqdm, joblib, rasa-sdk, aio-pika, colorclass, redis, kafka-python, fbmessenger, packaging, sentry-sdk, tensorflow, requests, ujson, apscheduler, prompt-toolkit, tensorflow-addons, pyTelegramBotAPI, oauth2client, mattermostwrapper, psycopg2-binary, tensorflow-probability, sanic, scikit-learn, tensorflow-estimator, rocketchat-API, scipy, boto3, jsonschema, networkx, terminaltables, attrs, pymongo, numpy, python-socketio, tensorflow-hub, cloudpickle, python-engineio, aiohttp, jsonpickle, setuptools, questionary, async-generator, twilio, sanic-jwt, pykwalify, python-dateutil, pytz, regex, ruamel.yaml, slackclient, webexteamssdk, pydot, coloredlogs, sklearn-crfsuite, absl-py, colorama, PyJWT, multidict, matplotlib, SQLAlchemy, colorhash
Required-by:
(temp_rasa) CMD>rasa2021-02-03 15:19:23.023468: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2021-02-03 15:19:23.030147: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
usage: rasa [-h] [--version] {init,run,shell,train,interactive,telemetry,test,visualize,data,export,x} ...
Rasa command line interface. Rasa allows you to build your own conversational assistants 🤖. The 'rasa' command allows you to easily run most common commands like creating a new bot, training or evaluating models.
positional arguments:
{init,run,shell,train,interactive,telemetry,test,visualize,data,export,x}
Rasa commands
init Creates a new project, with example training data, actions, and config files.
run Starts a Rasa server with your trained model.
shell Loads your trained model and lets you talk to your assistant on the command line.
train Trains a Rasa model using your NLU data and stories.
interactive Starts an interactive learning session to create new training data for a Rasa model by chatting.
telemetry Configuration of Rasa Open Source telemetry reporting.
test Tests Rasa models using your test NLU data and stories.
visualize Visualize stories.
data Utils for the Rasa training files.
export Export conversations using an event broker.
optional arguments:
-h, --help show this help message and exit
--version Print installed Rasa version
(temp_rasa) CMD>