Showing posts with label Anaconda. Show all posts
Showing posts with label Anaconda. Show all posts

Saturday, June 29, 2024

Set up Conda Environment For Google's Generative AI package

View all Ananconda (Environment, Kernel and Package Management) Articles: Lessons in Technology
Step 1: Create your env.yml file


name: googleai_202406
channels:
- conda-forge
dependencies:
- python=3.12
- ipykernel
- jupyter
- pip
- pip:
    - google-generativeai

Step 2: Create conda environment using the above env.yml 

(base) $ conda env create -f env.yml 

Step 3: Activate the environment

(base) $ conda activate googleai_202406

Step 4: Test the installation of "google-generativeai" by displaying package details 

(googleai_202406) $ conda list google-generativeai
# packages in environment at /home/ashish/anaconda3/envs/googleai_202406:
#
# Name                    Version                   Build  Channel
google-generativeai       0.7.1                    pypi_0    pypi

(googleai_202406) $ pip show google-generativeai
Name: google-generativeai
Version: 0.7.1
Summary: Google Generative AI High level API client library and tools.
Home-page: https://github.com/google/generative-ai-python
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: /home/ashish/anaconda3/envs/googleai_202406/lib/python3.12/site-packages
Requires: google-ai-generativelanguage, google-api-core, google-api-python-client, google-auth, protobuf, pydantic, tqdm, typing-extensions
Required-by: 

(googleai_202406) $ 

Step 5: Set up a kernel corresponding to the above 'conda environment'

(googleai_202406) $ python -m ipykernel install --user --name googleai_202406

# Reference: pypi.org    
Tags: Anaconda,Technology,

Monday, September 19, 2022

Installing Rasa 3.2.8 on Ubuntu using Conda

Contents of env.yml

name: rasa_py38 channels: - conda-forge dependencies: - python=3.8 - pip - spacy (base) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ conda env create -f env.yml Collecting package metadata (repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.12.0 latest version: 4.14.0 Please update conda by running $ conda update -n base -c defaults conda Downloading and Extracting Packages libsqlite-3.39.3 | 789 KB | ### | 100% numpy-1.23.3 | 7.1 MB | ### | 100% dataclasses-0.8 | 10 KB | ### | 100% pathy-0.6.2 | 38 KB | ### | 100% srsly-2.4.4 | 540 KB | ### | 100% sqlite-3.39.3 | 789 KB | ### | 100% python-3.8.13 | 25.1 MB | ### | 100% markupsafe-2.1.1 | 22 KB | ### | 100% spacy-loggers-1.0.3 | 13 KB | ### | 100% cython-blis-0.7.8 | 9.0 MB | ### | 100% cymem-2.0.6 | 42 KB | ### | 100% cffi-1.15.1 | 229 KB | ### | 100% click-8.1.3 | 146 KB | ### | 100% langcodes-3.3.0 | 156 KB | ### | 100% cryptography-37.0.4 | 1.5 MB | ### | 100% tqdm-4.64.1 | 82 KB | ### | 100% shellingham-1.5.0 | 12 KB | ### | 100% brotlipy-0.7.0 | 342 KB | ### | 100% spacy-3.4.1 | 6.4 MB | ### | 100% preshed-3.0.7 | 122 KB | ### | 100% wasabi-0.10.0 | 26 KB | ### | 100% python_abi-3.8 | 4 KB | ### | 100% libzlib-1.2.12 | 65 KB | ### | 100% smart_open-5.2.1 | 43 KB | ### | 100% thinc-8.1.0 | 904 KB | ### | 100% typer-0.4.2 | 45 KB | ### | 100% pydantic-1.9.2 | 2.4 MB | ### | 100% spacy-legacy-3.0.10 | 20 KB | ### | 100% catalogue-2.0.8 | 32 KB | ### | 100% murmurhash-1.0.8 | 27 KB | ### | 100% libopenblas-0.3.21 | 10.1 MB | ### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate rasa_py38 # # To deactivate an active environment, use # # $ conda deactivate (base) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ (base) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ conda activate rasa_py38 (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ conda install ipykernel jupyterlab -c conda-forge Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.12.0 latest version: 4.14.0 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: /home/ashish/anaconda3/envs/rasa_py38 added / updated specs: - ipykernel - jupyterlab The following packages will be downloaded: package | build ---------------------------|----------------- argon2-cffi-bindings-21.2.0| py38h0a891b7_2 34 KB conda-forge debugpy-1.6.3 | py38hfa26641_0 2.0 MB conda-forge importlib-metadata-4.11.4 | py38h578d9bd_0 33 KB conda-forge ipykernel-6.15.3 | pyh210e3f2_0 99 KB conda-forge ipython-8.5.0 | pyh41d4057_1 552 KB conda-forge jsonschema-4.16.0 | pyhd8ed1ab_0 65 KB conda-forge jupyter_core-4.11.1 | py38h578d9bd_0 81 KB conda-forge jupyterlab-3.4.7 | pyhd8ed1ab_0 5.9 MB conda-forge lxml-4.9.1 | py38h0a891b7_0 1.4 MB conda-forge nbclient-0.6.8 | pyhd8ed1ab_0 65 KB conda-forge nbformat-5.5.0 | pyhd8ed1ab_0 105 KB conda-forge prompt-toolkit-3.0.31 | pyha770c72_0 254 KB conda-forge psutil-5.9.2 | py38h0a891b7_0 346 KB conda-forge pyrsistent-0.18.1 | py38h0a891b7_1 92 KB conda-forge pyzmq-24.0.0 | py38hfc09fa9_0 499 KB conda-forge terminado-0.15.0 | py38h578d9bd_0 28 KB conda-forge tomli-2.0.1 | pyhd8ed1ab_0 16 KB conda-forge tornado-6.2 | py38h0a891b7_0 653 KB conda-forge traitlets-5.4.0 | pyhd8ed1ab_0 85 KB conda-forge ------------------------------------------------------------ Total: 12.3 MB The following NEW packages will be INSTALLED: anyio conda-forge/noarch::anyio-3.6.1-pyhd8ed1ab_1 argon2-cffi conda-forge/noarch::argon2-cffi-21.3.0-pyhd8ed1ab_0 argon2-cffi-bindi~ conda-forge/linux-64::argon2-cffi-bindings-21.2.0-py38h0a891b7_2 asttokens conda-forge/noarch::asttokens-2.0.8-pyhd8ed1ab_0 attrs conda-forge/noarch::attrs-22.1.0-pyh71513ae_1 babel conda-forge/noarch::babel-2.10.3-pyhd8ed1ab_0 backcall conda-forge/noarch::backcall-0.2.0-pyh9f0ad1d_0 backports conda-forge/noarch::backports-1.0-py_2 backports.functoo~ conda-forge/noarch::backports.functools_lru_cache-1.6.4-pyhd8ed1ab_0 beautifulsoup4 conda-forge/noarch::beautifulsoup4-4.11.1-pyha770c72_0 bleach conda-forge/noarch::bleach-5.0.1-pyhd8ed1ab_0 debugpy conda-forge/linux-64::debugpy-1.6.3-py38hfa26641_0 decorator conda-forge/noarch::decorator-5.1.1-pyhd8ed1ab_0 defusedxml conda-forge/noarch::defusedxml-0.7.1-pyhd8ed1ab_0 entrypoints conda-forge/noarch::entrypoints-0.4-pyhd8ed1ab_0 executing conda-forge/noarch::executing-1.0.0-pyhd8ed1ab_0 flit-core conda-forge/noarch::flit-core-3.7.1-pyhd8ed1ab_0 icu conda-forge/linux-64::icu-70.1-h27087fc_0 importlib-metadata conda-forge/linux-64::importlib-metadata-4.11.4-py38h578d9bd_0 importlib_metadata conda-forge/noarch::importlib_metadata-4.11.4-hd8ed1ab_0 importlib_resourc~ conda-forge/noarch::importlib_resources-5.9.0-pyhd8ed1ab_0 ipykernel conda-forge/noarch::ipykernel-6.15.3-pyh210e3f2_0 ipython conda-forge/noarch::ipython-8.5.0-pyh41d4057_1 ipython_genutils conda-forge/noarch::ipython_genutils-0.2.0-py_1 jedi conda-forge/noarch::jedi-0.18.1-pyhd8ed1ab_2 json5 conda-forge/noarch::json5-0.9.5-pyh9f0ad1d_0 jsonschema conda-forge/noarch::jsonschema-4.16.0-pyhd8ed1ab_0 jupyter_client conda-forge/noarch::jupyter_client-7.3.5-pyhd8ed1ab_0 jupyter_core conda-forge/linux-64::jupyter_core-4.11.1-py38h578d9bd_0 jupyter_server conda-forge/noarch::jupyter_server-1.18.1-pyhd8ed1ab_0 jupyterlab conda-forge/noarch::jupyterlab-3.4.7-pyhd8ed1ab_0 jupyterlab_pygmen~ conda-forge/noarch::jupyterlab_pygments-0.2.2-pyhd8ed1ab_0 jupyterlab_server conda-forge/noarch::jupyterlab_server-2.15.1-pyhd8ed1ab_0 libiconv conda-forge/linux-64::libiconv-1.16-h516909a_0 libsodium conda-forge/linux-64::libsodium-1.0.18-h36c2ea0_1 libxml2 conda-forge/linux-64::libxml2-2.9.14-h22db469_4 libxslt conda-forge/linux-64::libxslt-1.1.35-h8affb1d_0 lxml conda-forge/linux-64::lxml-4.9.1-py38h0a891b7_0 matplotlib-inline conda-forge/noarch::matplotlib-inline-0.1.6-pyhd8ed1ab_0 mistune conda-forge/noarch::mistune-2.0.4-pyhd8ed1ab_0 nbclassic conda-forge/noarch::nbclassic-0.4.3-pyhd8ed1ab_0 nbclient conda-forge/noarch::nbclient-0.6.8-pyhd8ed1ab_0 nbconvert conda-forge/noarch::nbconvert-7.0.0-pyhd8ed1ab_0 nbconvert-core conda-forge/noarch::nbconvert-core-7.0.0-pyhd8ed1ab_0 nbconvert-pandoc conda-forge/noarch::nbconvert-pandoc-7.0.0-pyhd8ed1ab_0 nbformat conda-forge/noarch::nbformat-5.5.0-pyhd8ed1ab_0 nest-asyncio conda-forge/noarch::nest-asyncio-1.5.5-pyhd8ed1ab_0 notebook conda-forge/noarch::notebook-6.4.12-pyha770c72_0 notebook-shim conda-forge/noarch::notebook-shim-0.1.0-pyhd8ed1ab_0 pandoc conda-forge/linux-64::pandoc-2.19.2-ha770c72_0 pandocfilters conda-forge/noarch::pandocfilters-1.5.0-pyhd8ed1ab_0 parso conda-forge/noarch::parso-0.8.3-pyhd8ed1ab_0 pexpect conda-forge/noarch::pexpect-4.8.0-pyh9f0ad1d_2 pickleshare conda-forge/noarch::pickleshare-0.7.5-py_1003 pkgutil-resolve-n~ conda-forge/noarch::pkgutil-resolve-name-1.3.10-pyhd8ed1ab_0 prometheus_client conda-forge/noarch::prometheus_client-0.14.1-pyhd8ed1ab_0 prompt-toolkit conda-forge/noarch::prompt-toolkit-3.0.31-pyha770c72_0 psutil conda-forge/linux-64::psutil-5.9.2-py38h0a891b7_0 ptyprocess conda-forge/noarch::ptyprocess-0.7.0-pyhd3deb0d_0 pure_eval conda-forge/noarch::pure_eval-0.2.2-pyhd8ed1ab_0 pygments conda-forge/noarch::pygments-2.13.0-pyhd8ed1ab_0 pyrsistent conda-forge/linux-64::pyrsistent-0.18.1-py38h0a891b7_1 python-dateutil conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0 python-fastjsonsc~ conda-forge/noarch::python-fastjsonschema-2.16.1-pyhd8ed1ab_0 pytz conda-forge/noarch::pytz-2022.2.1-pyhd8ed1ab_0 pyzmq conda-forge/linux-64::pyzmq-24.0.0-py38hfc09fa9_0 send2trash conda-forge/noarch::send2trash-1.8.0-pyhd8ed1ab_0 six conda-forge/noarch::six-1.16.0-pyh6c4a22f_0 sniffio conda-forge/noarch::sniffio-1.3.0-pyhd8ed1ab_0 soupsieve conda-forge/noarch::soupsieve-2.3.2.post1-pyhd8ed1ab_0 stack_data conda-forge/noarch::stack_data-0.5.0-pyhd8ed1ab_0 terminado conda-forge/linux-64::terminado-0.15.0-py38h578d9bd_0 tinycss2 conda-forge/noarch::tinycss2-1.1.1-pyhd8ed1ab_0 tomli conda-forge/noarch::tomli-2.0.1-pyhd8ed1ab_0 tornado conda-forge/linux-64::tornado-6.2-py38h0a891b7_0 traitlets conda-forge/noarch::traitlets-5.4.0-pyhd8ed1ab_0 wcwidth conda-forge/noarch::wcwidth-0.2.5-pyh9f0ad1d_2 webencodings conda-forge/noarch::webencodings-0.5.1-py_1 websocket-client conda-forge/noarch::websocket-client-1.4.1-pyhd8ed1ab_0 zeromq conda-forge/linux-64::zeromq-4.3.4-h9c3ff4c_1 zipp conda-forge/noarch::zipp-3.8.1-pyhd8ed1ab_0 Proceed ([y]/n)? y Downloading and Extracting Packages traitlets-5.4.0 | 85 KB | ### | 100% nbclient-0.6.8 | 65 KB | ### | 100% ipykernel-6.15.3 | 99 KB | ### | 100% tomli-2.0.1 | 16 KB | ### | 100% ipython-8.5.0 | 552 KB | ### | 100% jsonschema-4.16.0 | 65 KB | ### | 100% jupyter_core-4.11.1 | 81 KB | ### | 100% psutil-5.9.2 | 346 KB | ### | 100% lxml-4.9.1 | 1.4 MB | ### | 100% jupyterlab-3.4.7 | 5.9 MB | ### | 100% terminado-0.15.0 | 28 KB | ### | 100% nbformat-5.5.0 | 105 KB | ### | 100% argon2-cffi-bindings | 34 KB | ### | 100% debugpy-1.6.3 | 2.0 MB | ### | 100% pyrsistent-0.18.1 | 92 KB | ### | 100% importlib-metadata-4 | 33 KB | ### | 100% pyzmq-24.0.0 | 499 KB | ### | 100% tornado-6.2 | 653 KB | ### | 100% prompt-toolkit-3.0.3 | 254 KB | ### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ python -m ipykernel install --user --name rasa_py38 Installed kernelspec rasa_py38 in /home/ashish/.local/share/jupyter/kernels/rasa_py38 (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ pip3 install rasa --user Collecting rasa Downloading rasa-3.2.8-py3-none-any.whl (819 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 819.2/819.2 kB 320.6 kB/s eta 0:00:00 Collecting coloredlogs<16,>=10 Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 kB 209.8 kB/s eta 0:00:00 Collecting pykwalify<1.9,>=1.7 Downloading pykwalify-1.8.0-py2.py3-none-any.whl (24 kB) Collecting python-socketio<6,>=4.4 Downloading python_socketio-5.7.1-py3-none-any.whl (56 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.6/56.6 kB 234.4 kB/s eta 0:00:00 Collecting dask==2022.2.0 Downloading dask-2022.2.0-py3-none-any.whl (1.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 287.9 kB/s eta 0:00:00 Collecting questionary<1.11.0,>=1.5.1 Downloading questionary-1.10.0-py3-none-any.whl (31 kB) Collecting colorclass<2.3,>=2.2 Downloading colorclass-2.2.2-py2.py3-none-any.whl (18 kB) Collecting twilio<6.51,>=6.26 Downloading twilio-6.50.1.tar.gz (457 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 457.9/457.9 kB 272.9 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting regex<2022.5,>=2020.6 Downloading regex-2022.4.24-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (764 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 764.9/764.9 kB 324.5 kB/s eta 0:00:00 Collecting slackclient<3.0.0,>=2.0.0 Downloading slackclient-2.9.4-py2.py3-none-any.whl (97 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.1/97.1 kB 196.5 kB/s eta 0:00:00 Collecting aio-pika<9.0.0,>=6.7.1 Downloading aio-pika-8.2.1.tar.gz (42 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.3/42.3 kB 218.7 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting python-engineio!=5.0.0,<6,>=4 Downloading python_engineio-4.3.4-py3-none-any.whl (52 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.9/52.9 kB 281.0 kB/s eta 0:00:00 Collecting typing-extensions<4.0.0,>=3.7.4 Downloading typing_extensions-3.10.0.2-py3-none-any.whl (26 kB) Collecting apscheduler<3.8,>=3.6 Downloading APScheduler-3.7.0-py2.py3-none-any.whl (59 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.3/59.3 kB 246.7 kB/s eta 0:00:00 Requirement already satisfied: requests<3.0,>=2.23 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from rasa) (2.28.1) Collecting rasa-sdk<3.3.0,>=3.2.0 Downloading rasa_sdk-3.2.1-py3-none-any.whl (41 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.0/41.0 kB 290.6 kB/s eta 0:00:00 Collecting numpy<1.20.0,>=1.19.2 Downloading numpy-1.19.5-cp38-cp38-manylinux2010_x86_64.whl (14.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.9/14.9 MB 308.9 kB/s eta 0:00:00 Collecting pytz<2022.0,>=2019.1 Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 503.5/503.5 kB 323.7 kB/s eta 0:00:00 Requirement already satisfied: setuptools>=41.0.0 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from rasa) (65.3.0) Collecting google-auth<2 Downloading google_auth-1.35.0-py2.py3-none-any.whl (152 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 152.9/152.9 kB 247.8 kB/s eta 0:00:00 Requirement already satisfied: tqdm<5.0,>=4.31 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from rasa) (4.64.1) Collecting CacheControl<0.13.0,>=0.12.9 Downloading CacheControl-0.12.11-py2.py3-none-any.whl (21 kB) Collecting scikit-learn<0.25,>=0.22 Downloading scikit_learn-0.24.2-cp38-cp38-manylinux2010_x86_64.whl (24.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 24.9/24.9 MB 288.4 kB/s eta 0:00:00 Collecting tensorflow-addons<0.16.0,>=0.15.0 Downloading tensorflow_addons-0.15.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 323.8 kB/s eta 0:00:00 Collecting joblib<1.1.0,>=0.15.1 Downloading joblib-1.0.1-py3-none-any.whl (303 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 303.1/303.1 kB 310.5 kB/s eta 0:00:00 Collecting attrs<21.3,>=19.3 Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.7/53.7 kB 292.9 kB/s eta 0:00:00 Collecting pymongo[srv,tls]<3.11,>=3.8 Downloading pymongo-3.10.1-cp38-cp38-manylinux2014_x86_64.whl (480 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 480.1/480.1 kB 314.2 kB/s eta 0:00:00 Collecting sentry-sdk<1.4.0,>=0.17.0 Downloading sentry_sdk-1.3.1-py2.py3-none-any.whl (133 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.6/133.6 kB 247.9 kB/s eta 0:00:00 Collecting networkx<2.7,>=2.4 Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 338.2 kB/s eta 0:00:00 Collecting tensorflow-text<2.8.0,>=2.7.0 Downloading tensorflow_text-2.7.3-cp38-cp38-manylinux2010_x86_64.whl (4.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 343.2 kB/s eta 0:00:00 Collecting kafka-python<3.0,>=1.4 Downloading kafka_python-2.0.2-py2.py3-none-any.whl (246 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 246.5/246.5 kB 335.8 kB/s eta 0:00:00 Collecting absl-py<0.14,>=0.9 Downloading absl_py-0.13.0-py3-none-any.whl (132 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.1/132.1 kB 241.4 kB/s eta 0:00:00 Collecting scipy<1.8.0,>=1.4.1 Downloading scipy-1.7.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 39.3/39.3 MB 297.4 kB/s eta 0:00:00 Collecting terminaltables<3.2.0,>=3.1.0 Downloading terminaltables-3.1.10-py2.py3-none-any.whl (15 kB) Collecting SQLAlchemy<1.5.0,>=1.4.0 Downloading SQLAlchemy-1.4.41-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 294.6 kB/s eta 0:00:00 Collecting packaging<21.0,>=20.0 Downloading packaging-20.9-py2.py3-none-any.whl (40 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.9/40.9 kB 157.0 kB/s eta 0:00:00 Collecting webexteamssdk<1.7.0,>=1.1.1 Downloading webexteamssdk-1.6.1-py3-none-any.whl (113 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 113.5/113.5 kB 259.2 kB/s eta 0:00:00 Requirement already satisfied: python-dateutil<2.9,>=2.8 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from rasa) (2.8.2) Collecting rocketchat_API<1.26.0,>=0.6.31 Downloading rocketchat_API-1.25.0-py3-none-any.whl (19 kB) Collecting fbmessenger<6.1.0,>=6.0.0 Downloading fbmessenger-6.0.0-py2.py3-none-any.whl (11 kB) Collecting ruamel.yaml<0.17.0,>=0.16.5 Downloading ruamel.yaml-0.16.13-py2.py3-none-any.whl (111 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 111.9/111.9 kB 339.1 kB/s eta 0:00:00 Collecting randomname<0.2.0,>=0.1.5 Downloading randomname-0.1.5.tar.gz (36 kB) Preparing metadata (setup.py) ... done Collecting colorhash<1.1.0,>=1.0.2 Downloading colorhash-1.0.4-py3-none-any.whl (5.5 kB) Collecting cloudpickle<1.7,>=1.2 Downloading cloudpickle-1.6.0-py3-none-any.whl (23 kB) Collecting matplotlib<3.4,>=3.1 Downloading matplotlib-3.3.4-cp38-cp38-manylinux1_x86_64.whl (11.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 288.3 kB/s eta 0:00:00 Collecting prompt-toolkit<3.0.29,>=3.0 Downloading prompt_toolkit-3.0.28-py3-none-any.whl (380 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 380.2/380.2 kB 255.8 kB/s eta 0:00:00 Collecting pydot<1.5,>=1.4 Downloading pydot-1.4.2-py2.py3-none-any.whl (21 kB) Collecting boto3<2.0,>=1.12 Downloading boto3-1.24.75-py3-none-any.whl (132 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.5/132.5 kB 250.2 kB/s eta 0:00:00 Collecting redis<4.0,>=3.4 Downloading redis-3.5.3-py2.py3-none-any.whl (72 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.1/72.1 kB 267.3 kB/s eta 0:00:00 Collecting sanic<21.13,>=21.12 Downloading sanic-21.12.2-py3-none-any.whl (156 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.5/156.5 kB 276.9 kB/s eta 0:00:00 Collecting aiohttp!=3.7.4.post0,<3.8,>=3.6 Downloading aiohttp-3.7.4-cp38-cp38-manylinux2014_x86_64.whl (1.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 331.6 kB/s eta 0:00:00 Collecting sanic-routing<0.8.0,>=0.7.2 Downloading sanic_routing-0.7.2-py3-none-any.whl (23 kB) Collecting ujson<6.0,>=1.35 Downloading ujson-5.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (46 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.1/46.1 kB 178.6 kB/s eta 0:00:00 Collecting PyJWT[crypto]<3.0.0,>=2.0.0 Downloading PyJWT-2.5.0-py3-none-any.whl (20 kB) Collecting sanic-cors<2.1.0,>=2.0.0 Downloading Sanic_Cors-2.0.1-py2.py3-none-any.whl (17 kB) Collecting tensorflow<2.8.0,>=2.7.0 Downloading tensorflow-2.7.4-cp38-cp38-manylinux2010_x86_64.whl (496.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 496.0/496.0 MB 206.4 kB/s eta 0:00:00 Collecting pyTelegramBotAPI<5.0.0,>=3.7.3 Downloading pyTelegramBotAPI-4.7.0.tar.gz (210 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 210.7/210.7 kB 229.1 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting jsonpickle<2.1,>=1.3 Downloading jsonpickle-2.0.0-py2.py3-none-any.whl (37 kB) Collecting sanic-jwt<2.0.0,>=1.6.0 Downloading sanic_jwt-1.8.0-py3-none-any.whl (23 kB) Collecting typing-utils<0.2.0,>=0.1.0 Downloading typing_utils-0.1.0-py3-none-any.whl (10 kB) Collecting mattermostwrapper<2.3,>=2.2 Downloading mattermostwrapper-2.2.tar.gz (2.5 kB) Preparing metadata (setup.py) ... done Collecting tarsafe<0.0.4,>=0.0.3 Downloading tarsafe-0.0.3-py3-none-any.whl (5.0 kB) Collecting jsonschema<4.5,>=3.2 Downloading jsonschema-4.4.0-py3-none-any.whl (72 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.7/72.7 kB 240.9 kB/s eta 0:00:00 Collecting psycopg2-binary<2.10.0,>=2.8.2 Downloading psycopg2_binary-2.9.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 259.8 kB/s eta 0:00:00 Collecting tensorflow_hub<0.13.0,>=0.12.0 Downloading tensorflow_hub-0.12.0-py2.py3-none-any.whl (108 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.8/108.8 kB 232.1 kB/s eta 0:00:00 Collecting sklearn-crfsuite<0.4,>=0.3 Downloading sklearn_crfsuite-0.3.6-py2.py3-none-any.whl (12 kB) Collecting partd>=0.3.10 Downloading partd-1.3.0-py3-none-any.whl (18 kB) Collecting pyyaml>=5.3.1 Downloading PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 701.2/701.2 kB 304.6 kB/s eta 0:00:00 Collecting toolz>=0.8.2 Downloading toolz-0.12.0-py3-none-any.whl (55 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 kB 243.2 kB/s eta 0:00:00 Collecting fsspec>=0.6.0 Downloading fsspec-2022.8.2-py3-none-any.whl (140 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.8/140.8 kB 278.9 kB/s eta 0:00:00 Requirement already satisfied: six in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from absl-py<0.14,>=0.9->rasa) (1.16.0) Collecting aiormq~=6.4.0 Downloading aiormq-6.4.2-py3-none-any.whl (34 kB) Collecting yarl Downloading yarl-1.8.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (262 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 262.1/262.1 kB 299.1 kB/s eta 0:00:00 Collecting chardet<4.0,>=2.0 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 kB 308.3 kB/s eta 0:00:00 Collecting async-timeout<4.0,>=3.0 Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting multidict<7.0,>=4.5 Downloading multidict-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (121 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.3/121.3 kB 345.9 kB/s eta 0:00:00 Collecting tzlocal~=2.0 Downloading tzlocal-2.1-py2.py3-none-any.whl (16 kB) Collecting jmespath<2.0.0,>=0.7.1 Downloading jmespath-1.0.1-py3-none-any.whl (20 kB) Collecting botocore<1.28.0,>=1.27.75 Downloading botocore-1.27.75-py3-none-any.whl (9.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.1/9.1 MB 278.2 kB/s eta 0:00:00 Collecting s3transfer<0.7.0,>=0.6.0 Downloading s3transfer-0.6.0-py3-none-any.whl (79 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.6/79.6 kB 276.0 kB/s eta 0:00:00 Collecting msgpack>=0.5.2 Downloading msgpack-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (322 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 322.5/322.5 kB 266.5 kB/s eta 0:00:00 Collecting humanfriendly>=9.1 Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.8/86.8 kB 254.5 kB/s eta 0:00:00 Collecting cachetools<5.0,>=2.0.0 Downloading cachetools-4.2.4-py3-none-any.whl (10 kB) Collecting pyasn1-modules>=0.2.1 Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 261.2 kB/s eta 0:00:00 Collecting rsa<5,>=3.1.4 Downloading rsa-4.9-py3-none-any.whl (34 kB) Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from jsonschema<4.5,>=3.2->rasa) (0.18.1) Requirement already satisfied: importlib-resources>=1.4.0 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from jsonschema<4.5,>=3.2->rasa) (5.9.0) Collecting pillow>=6.2.0 Downloading Pillow-9.2.0-cp38-cp38-manylinux_2_28_x86_64.whl (3.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 283.6 kB/s eta 0:00:00 Collecting kiwisolver>=1.0.1 Downloading kiwisolver-1.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 247.8 kB/s eta 0:00:00 Collecting cycler>=0.10 Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from matplotlib<3.4,>=3.1->rasa) (3.0.9) Requirement already satisfied: wcwidth in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from prompt-toolkit<3.0.29,>=3.0->rasa) (0.2.5) Collecting types-cryptography>=3.3.21 Downloading types_cryptography-3.3.23-py3-none-any.whl (30 kB) Requirement already satisfied: cryptography>=3.3.1 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from PyJWT[crypto]<3.0.0,>=2.0.0->rasa) (37.0.4) Collecting docopt>=0.6.2 Downloading docopt-0.6.2.tar.gz (25 kB) Preparing metadata (setup.py) ... done Collecting dnspython<2.0.0,>=1.16.0 Downloading dnspython-1.16.0-py2.py3-none-any.whl (188 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 188.4/188.4 kB 204.2 kB/s eta 0:00:00 Collecting bidict>=0.21.0 Downloading bidict-0.22.0-py3-none-any.whl (36 kB) Collecting fire Downloading fire-0.4.0.tar.gz (87 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.7/87.7 kB 207.5 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: urllib3<2.0.0,>=1.26.5 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from rasa-sdk<3.3.0,>=3.2.0->rasa) (1.26.11) Requirement already satisfied: charset-normalizer<3,>=2 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from requests<3.0,>=2.23->rasa) (2.1.1) Requirement already satisfied: certifi>=2017.4.17 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from requests<3.0,>=2.23->rasa) (2022.9.14) Requirement already satisfied: idna<4,>=2.5 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from requests<3.0,>=2.23->rasa) (3.3) Collecting ruamel.yaml.clib>=0.1.2 Downloading ruamel.yaml.clib-0.2.6-cp38-cp38-manylinux1_x86_64.whl (570 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 570.4/570.4 kB 335.9 kB/s eta 0:00:00 Collecting aiofiles>=0.6.0 Downloading aiofiles-22.1.0-py3-none-any.whl (14 kB) Collecting uvloop>=0.5.3 Downloading uvloop-0.17.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 302.9 kB/s eta 0:00:00 Collecting httptools>=0.0.10 Downloading httptools-0.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.8/427.8 kB 290.8 kB/s eta 0:00:00 Collecting websockets>=10.0 Downloading websockets-10.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (111 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 111.3/111.3 kB 334.3 kB/s eta 0:00:00 Collecting multidict<7.0,>=4.5 Downloading multidict-5.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (187 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 187.4/187.4 kB 326.6 kB/s eta 0:00:00 Collecting threadpoolctl>=2.0.0 Downloading threadpoolctl-3.1.0-py3-none-any.whl (14 kB) Collecting python-crfsuite>=0.8.3 Downloading python_crfsuite-0.9.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 326.0 kB/s eta 0:00:00 Collecting tabulate Downloading tabulate-0.8.10-py3-none-any.whl (29 kB) Collecting greenlet!=0.4.17 Downloading greenlet-1.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (157 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 kB 356.2 kB/s eta 0:00:00 Collecting opt-einsum>=2.3.2 Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.5/65.5 kB 318.3 kB/s eta 0:00:00 Collecting gast<0.5.0,>=0.2.1 Downloading gast-0.4.0-py3-none-any.whl (9.8 kB) Collecting google-pasta>=0.1.1 Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.5/57.5 kB 221.1 kB/s eta 0:00:00 Collecting keras-preprocessing>=1.1.1 Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.6/42.6 kB 278.5 kB/s eta 0:00:00 Collecting astunparse>=1.6.0 Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB) Collecting flatbuffers<3.0,>=1.12 Downloading flatbuffers-2.0.7-py2.py3-none-any.whl (26 kB) Collecting libclang>=9.0.1 Downloading libclang-14.0.6-py2.py3-none-manylinux2010_x86_64.whl (14.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.1/14.1 MB 276.7 kB/s eta 0:00:00 Collecting wrapt>=1.11.0 Downloading wrapt-1.14.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (81 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.0/81.0 kB 400.8 kB/s eta 0:00:00 Collecting tensorboard~=2.6 Downloading tensorboard-2.10.0-py3-none-any.whl (5.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 339.5 kB/s eta 0:00:00 Collecting tensorflow-estimator<2.8,~=2.7.0rc0 Downloading tensorflow_estimator-2.7.0-py2.py3-none-any.whl (463 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 463.1/463.1 kB 202.3 kB/s eta 0:00:00 Collecting termcolor>=1.1.0 Downloading termcolor-2.0.1-py3-none-any.whl (5.4 kB) Requirement already satisfied: wheel<1.0,>=0.32.0 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from tensorflow<2.8.0,>=2.7.0->rasa) (0.37.1) Collecting protobuf<3.20,>=3.9.2 Downloading protobuf-3.19.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 208.1 kB/s eta 0:00:00 Collecting keras<2.8,>=2.7.0rc0 Downloading keras-2.7.0-py2.py3-none-any.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 323.8 kB/s eta 0:00:00 Collecting grpcio<2.0,>=1.24.3 Downloading grpcio-1.49.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 265.6 kB/s eta 0:00:00 Collecting tensorflow-io-gcs-filesystem>=0.21.0 Downloading tensorflow_io_gcs_filesystem-0.27.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 198.4 kB/s eta 0:00:00 Collecting h5py>=2.9.0 Downloading h5py-3.7.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 192.7 kB/s eta 0:00:00 Collecting typeguard>=2.7 Downloading typeguard-2.13.3-py3-none-any.whl (17 kB) Collecting requests-toolbelt Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 kB 288.5 kB/s eta 0:00:00 Collecting future Downloading future-0.18.2.tar.gz (829 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 829.2/829.2 kB 297.7 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting pamqp==3.2.1 Downloading pamqp-3.2.1-py2.py3-none-any.whl (33 kB) Requirement already satisfied: cffi>=1.12 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from cryptography>=3.3.1->PyJWT[crypto]<3.0.0,>=2.0.0->rasa) (1.15.1) Requirement already satisfied: zipp>=3.1.0 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from importlib-resources>=1.4.0->jsonschema<4.5,>=3.2->rasa) (3.8.1) Collecting locket Downloading locket-1.0.0-py2.py3-none-any.whl (4.4 kB) Collecting pyasn1<0.5.0,>=0.4.6 Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 kB 306.6 kB/s eta 0:00:00 Collecting tensorboard-data-server<0.7.0,>=0.6.0 Downloading tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl (4.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 304.1 kB/s eta 0:00:00 Collecting markdown>=2.6.8 Downloading Markdown-3.4.1-py3-none-any.whl (93 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.3/93.3 kB 325.5 kB/s eta 0:00:00 Collecting werkzeug>=1.0.1 Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.7/232.7 kB 296.1 kB/s eta 0:00:00 Collecting google-auth-oauthlib<0.5,>=0.4.1 Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB) Collecting tensorboard-plugin-wit>=1.6.0 Downloading tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 781.3/781.3 kB 286.4 kB/s eta 0:00:00 Requirement already satisfied: pycparser in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=3.3.1->PyJWT[crypto]<3.0.0,>=2.0.0->rasa) (2.21) Collecting requests-oauthlib>=0.7.0 Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB) Requirement already satisfied: importlib-metadata>=4.4 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from markdown>=2.6.8->tensorboard~=2.6->tensorflow<2.8.0,>=2.7.0->rasa) (4.11.4) Requirement already satisfied: MarkupSafe>=2.1.1 in /home/ashish/anaconda3/envs/rasa_py38/lib/python3.8/site-packages (from werkzeug>=1.0.1->tensorboard~=2.6->tensorflow<2.8.0,>=2.7.0->rasa) (2.1.1) Collecting oauthlib>=3.0.0 Downloading oauthlib-3.2.1-py3-none-any.whl (151 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.7/151.7 kB 301.9 kB/s eta 0:00:00 Building wheels for collected packages: aio-pika, mattermostwrapper, pyTelegramBotAPI, randomname, twilio, docopt, fire, future Building wheel for aio-pika (setup.py) ... done Created wheel for aio-pika: filename=aio_pika-8.2.1-py3-none-any.whl size=49595 sha256=61819ae86e93deb5d8f1f7c60f769d40e42ccf6de8af62f4af0a3bcb30a98499 Stored in directory: /home/ashish/.cache/pip/wheels/27/ab/59/a3f84ec019a2a87ad812a2dc15945f763e5684aecfb059d9ec Building wheel for mattermostwrapper (setup.py) ... done Created wheel for mattermostwrapper: filename=mattermostwrapper-2.2-py3-none-any.whl size=2448 sha256=671230d2ec1c13e72ee8b2f53cd09e8a800d5db87dc166a6c2eb6ac019a89a7c Stored in directory: /home/ashish/.cache/pip/wheels/1a/d3/89/63aef88b581e7acc2c48812e6160a2bae57b6ef180f6e1f293 Building wheel for pyTelegramBotAPI (setup.py) ... done Created wheel for pyTelegramBotAPI: filename=pyTelegramBotAPI-4.7.0-py3-none-any.whl size=192810 sha256=388f48b689f2b9f8f5ab4253a9a1a0c0caba6a9869dacffe2f60077cab1a69ea Stored in directory: /home/ashish/.cache/pip/wheels/f7/29/1d/113c046ac93c2896159bb2c33673efe140b3642f21a06c4ac5 Building wheel for randomname (setup.py) ... done Created wheel for randomname: filename=randomname-0.1.5-py3-none-any.whl size=58808 sha256=b4ef46a33c316f83d0947ae923af542f7963176dffcd821789ce9af5b5d6393e Stored in directory: /home/ashish/.cache/pip/wheels/46/0a/9d/32f2d10d4fae6ddfbdeb504d949ccd70d666382a277e7c1bd5 Building wheel for twilio (setup.py) ... done Created wheel for twilio: filename=twilio-6.50.1-py2.py3-none-any.whl size=1208682 sha256=bc11ed67ebb0cd32e27e90ea4db4232206f01c9c0ed5909773b04b4b9e20391d Stored in directory: /home/ashish/.cache/pip/wheels/85/db/cc/c5c9ef20439073ba2a5403f5ce292446d3a01547007927df87 Building wheel for docopt (setup.py) ... done Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13706 sha256=659b1afa51fb6f8497374a399b9e1c36a423a1fead4fa7999ccd1440917d65c2 Stored in directory: /home/ashish/.cache/pip/wheels/56/ea/58/ead137b087d9e326852a851351d1debf4ada529b6ac0ec4e8c Building wheel for fire (setup.py) ... done Created wheel for fire: filename=fire-0.4.0-py2.py3-none-any.whl size=115926 sha256=ecb49e817db0442d3d91f76c263f923d22f9c308f2fb6b2f170a80b3ceef5ac0 Stored in directory: /home/ashish/.cache/pip/wheels/1f/10/06/2a990ee4d73a8479fe2922445e8a876d38cfbfed052284c6a1 Building wheel for future (setup.py) ... done Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=cca1f0c0a3dfd4ada8c1534891271c9122c30f91097627fc9495f64eed6ae3d1 Stored in directory: /home/ashish/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4 Successfully built aio-pika mattermostwrapper pyTelegramBotAPI randomname twilio docopt fire future Installing collected packages: typing-extensions, types-cryptography, tensorflow-estimator, tensorboard-plugin-wit, sanic-routing, pytz, python-crfsuite, pyasn1, msgpack, libclang, keras, kafka-python, flatbuffers, docopt, chardet, wrapt, werkzeug, websockets, uvloop, ujson, tzlocal, typing-utils, typeguard, toolz, threadpoolctl, terminaltables, termcolor, tensorflow-io-gcs-filesystem, tensorboard-data-server, tarsafe, tabulate, sentry-sdk, ruamel.yaml.clib, rsa, regex, redis, pyyaml, python-engineio, pymongo, PyJWT, pydot, pyasn1-modules, psycopg2-binary, protobuf, prompt-toolkit, pillow, pamqp, packaging, oauthlib, numpy, networkx, multidict, locket, kiwisolver, jsonpickle, joblib, jmespath, humanfriendly, httptools, grpcio, greenlet, google-pasta, gast, future, fsspec, dnspython, cycler, colorhash, colorclass, cloudpickle, cachetools, bidict, attrs, async-timeout, astunparse, aiofiles, absl-py, yarl, twilio, tensorflow_hub, tensorflow-addons, SQLAlchemy, sklearn-crfsuite, scipy, sanic-jwt, sanic, ruamel.yaml, rocketchat_API, requests-toolbelt, requests-oauthlib, questionary, python-socketio, pyTelegramBotAPI, partd, opt-einsum, mattermostwrapper, matplotlib, markdown, keras-preprocessing, jsonschema, h5py, google-auth, fire, fbmessenger, coloredlogs, CacheControl, botocore, apscheduler, webexteamssdk, scikit-learn, sanic-cors, s3transfer, randomname, pykwalify, google-auth-oauthlib, dask, aiormq, aiohttp, tensorboard, slackclient, rasa-sdk, boto3, aio-pika, tensorflow, tensorflow-text, rasa WARNING: The script chardetect is installed in '/home/ashish/.local/bin' 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 is installed in '/home/ashish/.local/bin' 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 pyrsa-decrypt, pyrsa-encrypt, pyrsa-keygen, pyrsa-priv2pub, pyrsa-sign and pyrsa-verify are installed in '/home/ashish/.local/bin' 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 f2py, f2py3 and f2py3.8 are installed in '/home/ashish/.local/bin' 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 humanfriendly is installed in '/home/ashish/.local/bin' 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 futurize and pasteurize are installed in '/home/ashish/.local/bin' 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 and make_nearest_neighbour_index are installed in '/home/ashish/.local/bin' 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 sanic is installed in '/home/ashish/.local/bin' 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 markdown_py is installed in '/home/ashish/.local/bin' 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 jsonschema is installed in '/home/ashish/.local/bin' 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 is installed in '/home/ashish/.local/bin' 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 doesitcache is installed in '/home/ashish/.local/bin' 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 randomname is installed in '/home/ashish/.local/bin' 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 is installed in '/home/ashish/.local/bin' 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 google-oauthlib-tool is installed in '/home/ashish/.local/bin' 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 tensorboard is installed in '/home/ashish/.local/bin' 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, import_pb_to_tensorboard, saved_model_cli, tensorboard, tf_upgrade_v2, tflite_convert, toco and toco_from_protos are installed in '/home/ashish/.local/bin' 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 is installed in '/home/ashish/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed CacheControl-0.12.11 PyJWT-2.5.0 SQLAlchemy-1.4.41 absl-py-0.13.0 aio-pika-8.2.1 aiofiles-22.1.0 aiohttp-3.7.4 aiormq-6.4.2 apscheduler-3.7.0 astunparse-1.6.3 async-timeout-3.0.1 attrs-21.2.0 bidict-0.22.0 boto3-1.24.75 botocore-1.27.75 cachetools-4.2.4 chardet-3.0.4 cloudpickle-1.6.0 colorclass-2.2.2 coloredlogs-15.0.1 colorhash-1.0.4 cycler-0.11.0 dask-2022.2.0 dnspython-1.16.0 docopt-0.6.2 fbmessenger-6.0.0 fire-0.4.0 flatbuffers-2.0.7 fsspec-2022.8.2 future-0.18.2 gast-0.4.0 google-auth-1.35.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 greenlet-1.1.3 grpcio-1.49.0 h5py-3.7.0 httptools-0.5.0 humanfriendly-10.0 jmespath-1.0.1 joblib-1.0.1 jsonpickle-2.0.0 jsonschema-4.4.0 kafka-python-2.0.2 keras-2.7.0 keras-preprocessing-1.1.2 kiwisolver-1.4.4 libclang-14.0.6 locket-1.0.0 markdown-3.4.1 matplotlib-3.3.4 mattermostwrapper-2.2 msgpack-1.0.4 multidict-5.2.0 networkx-2.6.3 numpy-1.19.5 oauthlib-3.2.1 opt-einsum-3.3.0 packaging-20.9 pamqp-3.2.1 partd-1.3.0 pillow-9.2.0 prompt-toolkit-3.0.28 protobuf-3.19.5 psycopg2-binary-2.9.3 pyTelegramBotAPI-4.7.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pydot-1.4.2 pykwalify-1.8.0 pymongo-3.10.1 python-crfsuite-0.9.8 python-engineio-4.3.4 python-socketio-5.7.1 pytz-2021.3 pyyaml-6.0 questionary-1.10.0 randomname-0.1.5 rasa-3.2.8 rasa-sdk-3.2.1 redis-3.5.3 regex-2022.4.24 requests-oauthlib-1.3.1 requests-toolbelt-0.9.1 rocketchat_API-1.25.0 rsa-4.9 ruamel.yaml-0.16.13 ruamel.yaml.clib-0.2.6 s3transfer-0.6.0 sanic-21.12.2 sanic-cors-2.0.1 sanic-jwt-1.8.0 sanic-routing-0.7.2 scikit-learn-0.24.2 scipy-1.7.3 sentry-sdk-1.3.1 sklearn-crfsuite-0.3.6 slackclient-2.9.4 tabulate-0.8.10 tarsafe-0.0.3 tensorboard-2.10.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.7.4 tensorflow-addons-0.15.0 tensorflow-estimator-2.7.0 tensorflow-io-gcs-filesystem-0.27.0 tensorflow-text-2.7.3 tensorflow_hub-0.12.0 termcolor-2.0.1 terminaltables-3.1.10 threadpoolctl-3.1.0 toolz-0.12.0 twilio-6.50.1 typeguard-2.13.3 types-cryptography-3.3.23 typing-extensions-3.10.0.2 typing-utils-0.1.0 tzlocal-2.1 ujson-5.5.0 uvloop-0.17.0 webexteamssdk-1.6.1 websockets-10.3 werkzeug-2.2.2 wrapt-1.14.1 yarl-1.8.1 (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ pip show rasa Name: rasa Version: 3.2.8 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: /home/ashish/.local/lib/python3.8/site-packages Requires: absl-py, aio-pika, aiohttp, apscheduler, attrs, boto3, CacheControl, cloudpickle, colorclass, coloredlogs, colorhash, dask, fbmessenger, google-auth, joblib, jsonpickle, jsonschema, kafka-python, matplotlib, mattermostwrapper, networkx, numpy, packaging, prompt-toolkit, psycopg2-binary, pydot, PyJWT, pykwalify, pymongo, pyTelegramBotAPI, python-dateutil, python-engineio, python-socketio, pytz, questionary, randomname, rasa-sdk, redis, regex, requests, rocketchat_API, ruamel.yaml, sanic, sanic-cors, sanic-jwt, sanic-routing, scikit-learn, scipy, sentry-sdk, setuptools, sklearn-crfsuite, slackclient, SQLAlchemy, tarsafe, tensorflow, tensorflow-addons, tensorflow-text, tensorflow_hub, terminaltables, tqdm, twilio, typing-extensions, typing-utils, ujson, webexteamssdk Required-by:

Fix the PATH variable to enable RASA CLI

(rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ rasa rasa: command not found (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ sudo nano ~/.bashrc [sudo] password for ashish: (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ source ~/.bashrc (base) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ conda activate rasa_py38 (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ rasa usage: rasa [-h] [--version] {init,run,shell,train,interactive,telemetry,test,visualize,data,export,x,evaluate} ... 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,evaluate} 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. evaluate Tools for evaluating models. optional arguments: -h, --help show this help message and exit --version Print installed Rasa version

The Fix of PATH Variable

(rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$ echo $PATH /home/ashish/.local/bin:/home/ashish/anaconda3/envs/rasa_py38/bin:/home/ashish/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin (rasa_py38) ashish@ashish-Lenovo-ideapad-130-15IKB:~/Desktop$
Tags: Technology,Python,Anaconda,Rasa,Natural Language Processing

Thursday, September 23, 2021

Steps toward: virtualenv, jupyter notebook, jupyterlab, ipykernel, SpaCy model (en_core_web)



Steps toward: virtualenv, jupyter notebook, jupyterlab, ipykernel, SpaCy model (en_core_web)

$ pip install virtualenv
$ virtualenv ve1 --python=python3.8

INSTALL JUPYTER NOTEBOOK AND JUPYTERLAB FROM TERMINAL ON UBUNTU:

$ sudo apt install jupyter-core
$ pip install jupyter
$ pip install jupyterlab

(ve1) $ python3 -m notebook

[I 11:56:51.871 NotebookApp] Writing notebook server cookie secret to /home/ashi/.local/share/jupyter/runtime/notebook_cookie_secret
[I 11:56:52.175 NotebookApp] Serving notebooks from local directory: /home/ashi/Desktop/ws
[I 11:56:52.175 NotebookApp] Jupyter Notebook 6.4.4 is running at:
[I 11:56:52.175 NotebookApp] http://localhost:8888/?token=1b335a35516298724494a1ff32e309334d3a819a633719fc
[I 11:56:52.175 NotebookApp]  or http://127.0.0.1:8888/?token=1b335a35516298724494a1ff32e309334d3a819a633719fc
[I 11:56:52.175 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:56:52.221 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/ashi/.local/share/jupyter/runtime/nbserver-13598-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=1b335a35516298724494a1ff32e309334d3a819a633719fc
        or http://127.0.0.1:8888/?token=1b335a35516298724494a1ff32e309334d3a819a633719fc
/usr/lib/python3.9/json/encoder.py:257: UserWarning: date_default is deprecated since jupyter_client 7.0.0. Use jupyter_client.jsonutil.json_default.
    return _iterencode(o, 0)
[W 11:56:59.140 NotebookApp] 404 GET /lab/tree/Desktop (127.0.0.1) 15.820000ms referer=None

###   ###   ###   ###   ###   

(ve1) $ python3 -m jupyterlab

[I 2021-09-22 11:58:03.326 ServerApp] jupyterlab | extension was successfully linked.
[I 2021-09-22 11:58:03.357 LabApp] JupyterLab extension loaded from /home/ashi/.local/lib/python3.9/site-packages/jupyterlab
[I 2021-09-22 11:58:03.357 LabApp] JupyterLab application directory is /home/ashi/.local/share/jupyter/lab
[I 2021-09-22 11:58:03.360 ServerApp] jupyterlab | extension was successfully loaded.
[I 2021-09-22 11:58:03.361 ServerApp] The port 8888 is already in use, trying another port.
[I 2021-09-22 11:58:03.361 ServerApp] Serving notebooks from local directory: /home/ashi/Desktop/ws/ve1/bin
[I 2021-09-22 11:58:03.361 ServerApp] Jupyter Server 1.11.0 is running at:
[I 2021-09-22 11:58:03.362 ServerApp] http://localhost:8889/lab?token=9bcab4ac0599e2c3c086f1ace8376d6d8221fd074bdaf066
[I 2021-09-22 11:58:03.362 ServerApp]  or http://127.0.0.1:8889/lab?token=9bcab4ac0599e2c3c086f1ace8376d6d8221fd074bdaf066
[I 2021-09-22 11:58:03.362 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 2021-09-22 11:58:03.371 ServerApp] No web browser found: could not locate runnable browser.
[C 2021-09-22 11:58:03.371 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/ashi/.local/share/jupyter/runtime/jpserver-14003-open.html
    Or copy and paste one of these URLs:
        http://localhost:8889/lab?token=9bcab4ac0599e2c3c086f1ace8376d6d8221fd074bdaf066
        or http://127.0.0.1:8889/lab?token=9bcab4ac0599e2c3c086f1ace8376d6d8221fd074bdaf066
[W 2021-09-22 11:58:44.209 LabApp] Could not determine jupyterlab build status without nodejs
[W 2021-09-22 11:58:47.988 ServerApp] 404 GET /api/contents/Desktop?1632292127985 (127.0.0.1): No such file or directory: Desktop
[W 2021-09-22 11:58:47.988 ServerApp] No such file or directory: Desktop
[W 2021-09-22 11:58:47.988 ServerApp] 404 GET /api/contents/Desktop?1632292127985 (127.0.0.1) 1.34ms referer=http://127.0.0.1:8889/lab

###   ###   ###   ###   ###   

$ pip install ipykernel

(ve1) ashi@ashi-VirtualBox:/home/ashi/Desktop/ws$ python3 -m ipykernel install --name ve1
[Errno 13] Permission denied: '/usr/local/share/jupyter'
(ve1) ashi@ashi-VirtualBox:/home/ashi/Desktop/ws$ python3 -m ipykernel install --user --name ve1
Installed kernelspec ve1 in /home/ashi/.local/share/jupyter/kernels/ve1


###   ###   ###   ###   ###   

(ve1) ashi@ashi-VirtualBox:/home/ashi/Desktop/ws$ python3 -m spacy download en_core_web_sm
Collecting en-core-web-sm==3.1.0
    WARNING: Retrying (Retry(total=4.... connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /explosion/spacy-models/releases/download/en_core_web_sm-3.1.0/en_core_web_sm-3.1.0-py3-none-any.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /explosion/spacy-models/releases/download/en_core_web_sm-3.1.0/en_core_web_sm-3.1.0-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

We download the wheel file from the GitHub link and install as follows
$ pip install en_core_web_sm-3.1.0-py3-none-any.whl

###   ###   ###   ###   ###   
Tags: Python,Technology,Anaconda,

Tuesday, September 21, 2021

Anaconda Setup on Ubuntu for the First Time



First time Anaconda setup is done using the following commands:

1. 
~/Downloads$ ls -l
total 712608
-rwxrwxrwx 1 ashi ashi 570853747 Sep 21 12:43 Anaconda3-2021.05-Linux-x86_64.sh

2. 
$ chmod 777 Anaconda3-2021.05-Linux-x86_64.sh

3. 
~/Downloads$ ./Anaconda3-2021.05-Linux-x86_64.sh 

4. 
$ cd ~/anaconda3/bin

5. 
~/anaconda3/bin$ ./conda init bash 

no change     /home/ashi/anaconda3/condabin/conda
no change     /home/ashi/anaconda3/bin/conda
no change     /home/ashi/anaconda3/bin/conda-env
no change     /home/ashi/anaconda3/bin/activate
no change     /home/ashi/anaconda3/bin/deactivate
no change     /home/ashi/anaconda3/etc/profile.d/conda.sh
no change     /home/ashi/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/ashi/anaconda3/shell/condabin/Conda.psm1
no change     /home/ashi/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/ashi/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change     /home/ashi/anaconda3/etc/profile.d/conda.csh
modified      /home/ashi/.bashrc

==> For changes to take effect, close and re-open your current shell. <== 

CHANGES AUTOMATICALLY PUSHED IN THE FILE: /home/ashi/.bashrc
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/ashi/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/ashi/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/ashi/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/ashi/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<


~/anaconda3/bin$ ./conda activate base

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
    - bash
    - fish
    - tcsh
    - xonsh
    - zsh
    - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'. 

6.
~/anaconda3/bin$ bash

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

(base) ~/anaconda3/bin$
Tags: Technology,Anaconda,Python,

Sunday, June 13, 2021

Python (4) Exception Handling [20210613]



Errors and Exceptions

8.1. Syntax Errors

Syntax errors, also known as parsing errors, are perhaps the most common kind of complaint you get while you are still learning Python:
>>> >>> while True print('Hello world') File "<stdin>", line 1 while True print('Hello world') ^ SyntaxError: invalid syntax
The parser repeats the offending line and displays a little ‘arrow’ pointing at the earliest point in the line where the error was detected. The error is caused by (or at least detected at) the token preceding the arrow: in the example, the error is detected at the function print(), since a colon (':') is missing before it. File name and line number are printed so you know where to look in case the input came from a script. An example of name error and package resolution
(base) C:\Users\Ashish Jain\OneDrive\Desktop>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. >>> re Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 're' is not defined >>> import re >>> re <module 're' from 'E:\\programfiles\\Anaconda3\\lib\\re.py'> >>> exit()

8.2. Exceptions

Even if a statement or expression is syntactically correct, it may cause an error when an attempt is made to execute it. Errors detected during execution are called exceptions and are not unconditionally fatal: you will soon learn how to handle them in Python programs. Most exceptions are not handled by programs, however, and result in error messages as shown here: >>> >>> 10 * (1/0) Traceback (most recent call last): File "<stdin>", line 1, in <module> ZeroDivisionError: division by zero >>> 4 + spam*3 Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'spam' is not defined >>> '2' + 2 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Can't convert 'int' object to str implicitly The last line of the error message indicates what happened. Exceptions come in different types, and the type is printed as part of the message: the types in the example are ZeroDivisionError, NameError and TypeError. The string printed as the exception type is the name of the built-in exception that occurred. This is true for all built-in exceptions, but need not be true for user-defined exceptions (although it is a useful convention). Standard exception names are built-in identifiers (not reserved keywords). The rest of the line provides detail based on the type of exception and what caused it. The preceding part of the error message shows the context where the exception occurred, in the form of a stack traceback. In general it contains a stack traceback listing source lines; however, it will not display lines read from standard input. Built-in Exceptions lists the built-in exceptions and their meanings.

8.3. Handling Exceptions

It is possible to write programs that handle selected exceptions. Look at the following example, which asks the user for input until a valid integer has been entered, but allows the user to interrupt the program (using Control-C or whatever the operating system supports); note that a user-generated interruption is signalled by raising the KeyboardInterrupt exception.
>>> >>> while True: ... try: ... x = int(input("Please enter a number: ")) ... break ... except ValueError: ... print("Oops! That was no valid number. Try again...") ...
The try statement works as follows. 1. First, the try clause (the statement(s) between the try and except keywords) is executed. 2. If no exception occurs, the except clause is skipped and execution of the try statement is finished. 3. If an exception occurs during execution of the try clause, the rest of the clause is skipped. Then if its type matches the exception named after the except keyword, the except clause is executed, and then execution continues after the try statement. 4. If an exception occurs which does not match the exception named in the except clause, it is passed on to outer try statements; if no handler is found, it is an unhandled exception and execution stops with a message as shown above. ~ ~ ~ A try statement may have more than one except clause, to specify handlers for different exceptions. At most one handler will be executed. Handlers only handle exceptions that occur in the corresponding try clause, not in other handlers of the same try statement. An except clause may name multiple exceptions as a parenthesized tuple, for example: ... except (RuntimeError, TypeError, NameError): ... pass A class in an except clause is compatible with an exception if it is the same class or a base class thereof (but not the other way around — an except clause listing a derived class is not compatible with a base class). For example, the following code will print B, C, D in that order:
class B(Exception): pass class C(B): pass class D(C): pass for cls in [B, C, D]: try: raise cls() except D: print("D") except C: print("C") except B: print("B")
OUT: (base) C:\Users\Ashish Jain\OneDrive\Desktop>python script2.py B C D ~ ~ ~
class B(Exception): pass class C(B): pass class D(C): pass for cls in [B, C, D]: try: raise cls() except B: print("B") except C: print("C") except D: print("D")
OUT: (base) C:\Users\Ashish Jain\OneDrive\Desktop>python script3.py B B B ~ ~ ~ Another example "Division By Zero"
#Handling run-time error: division by zero def this_fails(): x = 1/0 try: this_fails() except ZeroDivisionError as err: print('Handling run-time error:', err)
Modified version:
def division(a, b): print("a:", a) print("b:", b) if b == 0: raise Exception return a/b try: print("Success:", division(5, 5)) division(5, 0) except ZeroDivisionError as err: print('Handling run-time error:', err)
OUT: (base) C:\Users\Ashish Jain\OneDrive\Desktop>python script5.py a: 5 b: 5 Success: 1.0 a: 5 b: 0 Traceback (most recent call last): File "script5.py", line 10, in <module> division(5, 0) File "script5.py", line 5, in division raise Exception Exception

# Defining Clean-up Actions

If a finally clause is present, the finally clause will execute as the last task before the try statement completes. The finally clause runs whether or not the try statement produces an exception. The following points discuss more complex cases when an exception occurs: 1. If an exception occurs during execution of the try clause, the exception may be handled by an except clause. If the exception is not handled by an except clause, the exception is re-raised after the finally clause has been executed. 2. An exception could occur during execution of an except or else clause. Again, the exception is re-raised after the finally clause has been executed. 3. If the finally clause executes a break, continue or return statement, exceptions are not re-raised. 4. If the try statement reaches a break, continue or return statement, the finally clause will execute just prior to the break, continue or return statement’s execution. 5. If a finally clause includes a return statement, the returned value will be the one from the finally clause’s return statement, not the value from the try clause’s return statement. For example:
>>> >>> def bool_return(): ... try: ... return True ... finally: ... return False ... >>> bool_return() False

# Yet Another Division by Zero Example

def division(a, b): print("a:", a) print("b:", b) if b == 0: raise ZeroDivisionError return a/b try: print("Success:", division(5, 5)) division(5, 0) except ZeroDivisionError as err: print('Handling run-time error:', err)
Ref: docs.python.org Tags: Technology,Python,Anaconda,

Saturday, June 5, 2021

Python (3) RegEx in Python [20210606]



We had covered Strings in our previous session, which can be found here:
Python (2) String and related packages [20210523]


In this post, we are covering the Python package "re", which stands for RegEx or Regular Expressions.

First step towards working with "RegEx" is by importing the "re" package. Without importing "re", package Python would not know what you are mean by "re".

(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.
>>> re

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 're' is not defined

>>> import re
>>> re

<module 're' from 'E:\\programfiles\\Anaconda3\\lib\\re.py'>
>>>

RegEx Functions At a High Level

The re module offers a set of functions that allows us to search a string for a match:

findall : Returns a list containing all matches
search  : Returns a Match object if there is a match anywhere in the string
split   : Returns a list where the string has been split at each match
sub     : Replaces one or many matches with a string

A Regular Expression composed using following parts: Metacharacters, Special Sequences, and Sets.

Metacharacters: These are the characters with a special meaning Character: Description: Example [] A set of characters "[a-m]" \ Signals a special sequence (can also be used to escape special characters): "\d" . Any character (except newline character): "he..o" ^ Starts with "^hello" $ Ends with: "world$" * Zero or more occurrences: "aix*" + One or more occurrences: "aix+" ? Zero or one occurences: "r.?" {} Exactly the specified number of occurrences "al{2}" | Either or "falls|stays" () Capture and group Special Sequences: It is a \ followed by one of the characters in the list below, and has a special meaning: Character: Description: Example \A Returns a match if the specified characters are at the beginning of the string "\AThe" \b Returns a match where the specified characters are at the beginning or at the end of a word (the "r" in the beginning is making sure that the string is being treated as a "raw string") r"\bain" r"ain\b" \B Returns a match where the specified characters are present, but NOT at the beginning (or at the end) of a word (the "r" in the beginning is making sure that the string is being treated as a "raw string") r"\Bain" r"ain\B" \d Returns a match where the string contains digits (numbers from 0-9) "\d" \D Returns a match where the string DOES NOT contain digits "\D" \s Returns a match where the string contains a white space character "\s" \S Returns a match where the string DOES NOT contain a white space character "\S" \w Returns a match where the string contains any word characters (characters from a to Z, digits from 0-9, and the underscore _ character) "\w" \W Returns a match where the string DOES NOT contain any word characters "\W" \Z Returns a match if the specified characters are at the end of the string Sets: A set is a set of characters inside a pair of square brackets [] with a special meaning: Set: Description [arn] Returns a match where one of the specified characters (a, r, or n) are present [a-n] Returns a match for any lower case character, alphabetically between a and n [^arn] Returns a match for any character EXCEPT a, r, and n [0123] Returns a match where any of the specified digits (0, 1, 2, or 3) are present [0-9] Returns a match for any digit between 0 and 9 [0-5][0-9] Returns a match for any two-digit numbers from 00 and 59 [a-zA-Z] Returns a match for any character alphabetically between a and z, lower case OR upper case [+] In sets, +, *, ., |, (), $,{} has no special meaning, so [+] means: return a match for any + character in the string The findall() Function The findall() function returns a list containing all matches. The list contains the matches in the order they are found. import re txt = "The rain in Spain" x = re.findall("ai", txt) print(x) ['ai', 'ai'] txt = "The rain in Spain detected by Mr Jain." x = re.findall("ai", txt) print(x) ['ai', 'ai', 'ai'] txt = "The rain in Spain detected by Mr Jain." x = re.findall("r.?", txt) print(x) ".?" means zero or one occurence of any character, so we get the characters 'a' and ' '. ['ra', 'r '] txt = "The rain in Spain detected by Mr Jain." x = re.findall("r\w?", txt) print(x) "\w?" means zero or one occurence of any word character, so we get the characters 'ra' and only 'r'. ['ra', 'r'] If no matches are found, an empty list is returned. import re txt = "The rain in Spain" x = re.findall("Portugal", txt) print(x) The search() Function The search() function searches the string for a match, and returns a Match object if there is a match. If there is more than one match, only the first occurrence of the match will be returned. import re txt = "The rain in Spain" x = re.search("\s", txt) print("The first white-space character is located in position:", x.start()) The first white-space character is located in position: 3 - - - txt = "The rain in Spain" x = re.search("\s", txt) print(x) <re.Match object; span=(3, 4), match=' '> If no matches are found, the value None is returned. import re txt = "The rain in Spain" x = re.search("Portugal", txt) print(x) The split() Function The split() function returns a list where the string has been split at each match: import re txt = "The rain in Spain" x = re.split("\s", txt) print(x) ['The', 'rain', 'in', 'Spain'] You can control the number of occurrences by specifying the maxsplit parameter: Split the string only at the first occurrence: import re txt = "The rain in Spain" x = re.split("\s", txt, maxsplit = 1) print(x) x = re.split("\s", txt, maxsplit = 2) print(x) ['The', 'rain in Spain'] ['The', 'rain', 'in Spain'] The sub() Function The sub() function replaces the matches with the text of your choice: import re txt = "The rain in Spain" x = re.sub("\s", "9", txt) print(x) The9rain9in9Spain You can control the number of replacements by specifying the count parameter: Replace the first 2 occurrences: import re txt = "The rain in Spain" x = re.sub("\s", "9", txt, count = 1) print(x) x = re.sub("\s", "9", txt, count = 2) print(x) The9rain in Spain The9rain9in Spain Match Object A Match Object is an object containing information about the search and the result. Note: If there is no match, the value None will be returned, instead of the Match Object. Do a search that will return a Match Object: import re txt = "The rain in Spain" x = re.search("ai", txt) print(x) #this will print an object Print all the methods or attributes on Match object: print(x.__dir__()) ['__repr__', '__getitem__', 'group', 'start', 'end', 'span', 'groups', 'groupdict', 'expand', '__copy__', '__deepcopy__', '__class_getitem__', 'string', 're', 'pos', 'endpos', 'lastindex', 'lastgroup', 'regs', '__doc__', '__hash__', '__str__', '__getattribute__', '__setattr__', '__delattr__', '__lt__', '__le__', '__eq__', '__ne__', '__gt__', '__ge__', '__init__', '__new__', '__reduce_ex__', '__reduce__', '__subclasshook__', '__init_subclass__', '__format__', '__sizeof__', '__dir__', '__class__'] The Match object has properties and methods used to retrieve information about the search, and the result: .span() returns a tuple containing the start-, and end positions of the match. .string returns the string passed into the function .group() returns the part of the string where there was a match txt = "The rain in Spain" x = re.search(r"\bS\w+", txt) print(x) print("span:", x.span()) print("string:", x.string) print("group:", x.group()) print("start:", x.start()) <re.Match object; span=(12, 17), match='Spain'> span: (12, 17) string: The rain in Spain group: Spain start: 12 txt = "Mr Jain enjoyed the rain in Spain." x = re.search(r"\bS\w+", txt) print(x) print("span:", x.span()) print("string:", x.string) print("group:", x.group()) print("start:", x.start()) print("end:", x.end()) <re.Match object; span=(28, 33), match='Spain'> span: (28, 33) string: Mr Jain enjoyed the rain in Spain. group: Spain start: 28 end: 33

The "finditer()" function

>>> import re >>> s = "Mr Jain enjoyed the rain in Spain with Ms Jain." >>> re.finditer('ai', s) <callable_iterator object at 0x000001899B48A9B0> >>> >>> fi = re.finditer('ai', s) >>> for i in fi: ... print(i.span()) ... (4, 6) (21, 23) (30, 32) (43, 45) >>> Tags: Technology,Python,Anaconda,Natural Language Processing,

Monday, May 31, 2021

pip's dependency resolver and dependency conflicts, also logs from pipdeptree



We have two YAML files:

1. rasa_env.yml

name: rasa_env
channels:
- conda-forge
dependencies:
- spacy
- python=3.8
- pip
- pipdeptree

2. snorkel_env.yml

name: snorkel_env
channels:
- conda-forge
dependencies:
- python=3.8
- pip
- pipdeptree
- snorkel

(base) CMD>conda env list

# conda environments:
#
base                  *  e:\Anaconda3
env_py_36                e:\Anaconda3\envs\env_py_36
pegasus                  e:\Anaconda3\envs\pegasus
py39                     e:\Anaconda3\envs\py39
selenium                 e:\Anaconda3\envs\selenium
string_env               e:\Anaconda3\envs\string_env
tf                       e:\Anaconda3\envs\tf 

(base) ~>DOSKEY ls=dir /b
(base) ~>ls

rasa_env.yml
snorkel_env.yml

(base) ~>conda env create -f rasa_env.yml

Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages
numpy-1.20.3         | 5.3 MB    | # | 100%
cython-blis-0.7.4    | 5.6 MB    | # | 100%
protobuf-3.17.1      | 260 KB    | # | 100%
cryptography-3.4.7   | 706 KB    | # | 100%
multidict-5.1.0      | 63 KB     | # | 100%
grpcio-1.38.0        | 2.0 MB    | # | 100%
botocore-1.20.84     | 4.7 MB    | # | 100%
python-3.8.10        | 19.3 MB   | # | 100%
pydantic-1.7.3       | 164 KB    | # | 100%
preshed-3.0.5        | 97 KB     | # | 100%
setuptools-49.6.0    | 962 KB    | # | 100%
murmurhash-1.0.5     | 26 KB     | # | 100%
wincertstore-0.2     | 15 KB     | # | 100%
aiohttp-3.7.4        | 596 KB    | # | 100%
spacy-3.0.6          | 9.2 MB    | # | 100%
googleapis-common-pr | 125 KB    | # | 100%
markupsafe-2.0.1     | 25 KB     | # | 100%
pysocks-1.7.1        | 28 KB     | # | 100%
yarl-1.5.1           | 136 KB    | # | 100%
click-8.0.1          | 146 KB    | # | 100%
catalogue-2.0.4      | 31 KB     | # | 100%
thinc-8.0.3          | 936 KB    | # | 100%
srsly-2.4.1          | 517 KB    | # | 100%
libprotobuf-3.17.1   | 2.3 MB    | # | 100%
urllib3-1.26.5       | 99 KB     | # | 100%
brotlipy-0.7.0       | 368 KB    | # | 100%
tqdm-4.61.0          | 80 KB     | # | 100%
cffi-1.14.5          | 228 KB    | # | 100%
boto3-1.17.84        | 70 KB     | # | 100%
cymem-2.0.5          | 40 KB     | # | 100%
chardet-4.0.0        | 224 KB    | # | 100%
jinja2-3.0.1         | 99 KB     | # | 100%
pip-21.1.2           | 1.1 MB    | # | 100%
google-crc32c-1.1.2  | 27 KB     | # | 100%
win_inet_pton-1.1.0  | 8 KB      | # | 100%
Preparing transaction: done
... 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#     $ conda activate rasa_env
# To deactivate an active environment, use
#     $ conda deactivate

=== === === === === === === === === ===

(base) ~>conda env create -f snorkel_env.yml
Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages
munkres-1.1.4        | 12 KB     | # | 100%
scikit-learn-0.24.2  | 6.6 MB    | # | 100%
mkl-service-2.3.0    | 51 KB     | # | 100%
networkx-2.3         | 1.1 MB    | # | 100%
importlib-metadata-4 | 31 KB     | # | 100%
absl-py-0.12.0       | 96 KB     | # | 100%
markdown-3.3.4       | 67 KB     | # | 100%
pytorch-1.4.0        | 81.0 MB   | # | 100%
scipy-1.6.3          | 23.3 MB   | # | 100%
tensorboard-1.15.0   | 3.8 MB    | # | 100%
ninja-1.10.2         | 273 KB    | # | 100%
numpy-1.19.5         | 4.9 MB    | # | 100%
werkzeug-2.0.1       | 219 KB    | # | 100%
snorkel-0.9.7        | 93 KB     | # | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#     $ conda activate snorkel_env
# To deactivate an active environment, use
#     $ conda deactivate

(base) ~>

=== === === === === === === === === ===

(base) ~>conda env list
# conda environments:
#
base                  *  e:\Anaconda3
env_py_36                e:\Anaconda3\envs\env_py_36
py39                     e:\Anaconda3\envs\py39
rasa_env                 e:\Anaconda3\envs\rasa_env 
selenium                 e:\Anaconda3\envs\selenium
snorkel_env              e:\Anaconda3\envs\snorkel_env 
string_env               e:\Anaconda3\envs\string_env
tf                       e:\Anaconda3\envs\tf

=== === === === === === === === === ===

'pipdeptree' Logs Before Installing Rasa

(base) C:\Users\Ashish Jain>conda activate snorkel_env (snorkel_env) C:\Users\Ashish Jain>pipdeptree -r -p rasa (snorkel_env) C:\Users\Ashish Jain>pipdeptree -r -p snorkel snorkel==0.9.7 (snorkel_env) C:\Users\Ashish Jain> === === === === === === === === === ===

OSError: [WinError 5] Access is denied: When Trying to Install Rasa Without "--user" Argument

(rasa_env) ~>pip install rasa Collecting rasa ... ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'e:\\programfiles\\anaconda3\\envs\\rasa_env\\scripts\\tqdm.exe' Consider using the `--user` option or check the permissions. (rasa_env) ~> === === === === === === === === === ===

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour can be source of dependency conflicts.

(base) C:\Users\Ashish Jain>conda activate snorkel_env (snorkel_env) C:\Users\Ashish Jain>pip install rasa --user Requirement already satisfied: rasa in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (2.6.3) Requirement already satisfied: SQLAlchemy<1.4.0,>=1.3.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.3.24) Requirement already satisfied: fbmessenger<6.1.0,>=6.0.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (6.0.0) Collecting sanic<21.0.0,>=19.12.2 Using cached sanic-20.12.3-py3-none-any.whl (80 kB) Requirement already satisfied: matplotlib<3.4,>=3.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (3.3.4) Requirement already satisfied: absl-py<0.13,>=0.9 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from rasa) (0.12.0) Collecting colorama<0.5.0,>=0.4.4 Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Requirement already satisfied: scikit-learn<0.25,>=0.22 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.24.2) Requirement already satisfied: rasa-sdk<3.0.0,>=2.6.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.6.0) Collecting aiohttp!=3.7.4.post0,<3.8,>=3.6 Downloading aiohttp-3.7.4-cp38-cp38-win_amd64.whl (635 kB) |█| 635 kB 437 kB/s Requirement already satisfied: pykwalify<1.9,>=1.7 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.8.0) Requirement already satisfied: python-engineio!=5.0.0,<6,>=4 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (4.2.0) Requirement already satisfied: oauth2client==4.1.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (4.1.3) Collecting packaging<21.0,>=20.0 Downloading packaging-20.9-py2.py3-none-any.whl (40 kB) |█| 40 kB 657 kB/s Requirement already satisfied: aio-pika<7.0.0,>=6.7.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (6.8.0) Requirement already satisfied: tensorflow-estimator<2.4,>=2.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.3.0) Requirement already satisfied: tensorflow_hub<0.11,>=0.10 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.10.0) Requirement already satisfied: jsonschema<3.3,>=3.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (3.2.0) Requirement already satisfied: questionary<1.10.0,>=1.5.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.9.0) Requirement already satisfied: python-socketio<6,>=4.4 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (5.3.0) Requirement already satisfied: tensorflow-addons<=0.12,>=0.10 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.12.0) Requirement already satisfied: colorclass<2.3,>=2.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.2.0) Requirement already satisfied: colorhash<1.1.0,>=1.0.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.0.3) Requirement already satisfied: sanic-cors<0.11.0,>=0.10.0b1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.10.0.post3) Requirement already satisfied: tqdm<4.60,>=4.31 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (4.59.0) Requirement already satisfied: pymongo[srv,tls]<3.11,>=3.8 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (3.10.1) Requirement already satisfied: rocketchat_API<1.16.0,>=0.6.31 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.15.0) Requirement already satisfied: sanic-jwt<2.0,>=1.3.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.5.0) Collecting numpy<1.19,>=1.16 Using cached numpy-1.18.5-cp38-cp38-win_amd64.whl (12.8 MB) Requirement already satisfied: async_generator<1.11,>=1.10 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.10) Requirement already satisfied: joblib<0.16.0,>=0.15.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.15.1) Requirement already satisfied: mattermostwrapper<2.3,>=2.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.2) Requirement already satisfied: regex<2020.10,>=2020.6 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2020.9.27) Collecting requests<3.0,>=2.23 Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB) |█| 61 kB 773 kB/s Requirement already satisfied: networkx<2.6,>=2.4 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.5.1) Requirement already satisfied: coloredlogs<16,>=10 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (15.0) Requirement already satisfied: psycopg2-binary<2.9.0,>=2.8.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.8.6) Requirement already satisfied: PyJWT[crypto]<3.0.0,>=2.0.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.1.0) Requirement already satisfied: ruamel.yaml<0.17.0,>=0.16.5 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.16.13) Requirement already satisfied: sklearn-crfsuite<0.4,>=0.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.3.6) Requirement already satisfied: tensorflow<2.4,>=2.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.3.2) Requirement already satisfied: jsonpickle<2.1,>=1.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.0.0) Requirement already satisfied: prompt-toolkit<3.0,>=2.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.0.10) Requirement already satisfied: scipy<2.0.0,>=1.4.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.6.3) Requirement already satisfied: sentry-sdk<0.20.0,>=0.17.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.19.5) Requirement already satisfied: terminaltables<3.2.0,>=3.1.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (3.1.0) Requirement already satisfied: apscheduler<3.8,>=3.6 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (3.7.0) Requirement already satisfied: redis<4.0,>=3.4 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (3.5.3) Requirement already satisfied: setuptools>=41.0.0 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from rasa) (49.6.0.post20210108) Requirement already satisfied: slackclient<3.0.0,>=2.0.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.9.3) Requirement already satisfied: webexteamssdk<1.7.0,>=1.1.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.6) Requirement already satisfied: pydot<1.5,>=1.4 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.4.2) Requirement already satisfied: cloudpickle<1.7,>=1.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (1.6.0) Requirement already satisfied: kafka-python<3.0,>=1.4 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (2.0.2) Collecting attrs<20.4,>=19.3 Using cached attrs-20.3.0-py2.py3-none-any.whl (49 kB) Requirement already satisfied: python-dateutil<2.9,>=2.8 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from rasa) (2.8.1) Requirement already satisfied: tensorflow-probability<0.12,>=0.11 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (0.11.1) Requirement already satisfied: twilio<6.51,>=6.26 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (6.50.1) Requirement already satisfied: ujson<5.0,>=1.35 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (4.0.2) Collecting boto3<2.0,>=1.12 Downloading boto3-1.17.84-py2.py3-none-any.whl (131 kB) |█| 131 kB 1.3 MB/s Requirement already satisfied: pyTelegramBotAPI<4.0.0,>=3.7.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from rasa) (3.7.9) Requirement already satisfied: pytz<2022.0,>=2019.1 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from rasa) (2021.1) Collecting rsa>=3.1.4 Downloading rsa-4.7.2-py3-none-any.whl (34 kB) Collecting pyasn1>=0.1.7 Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) Requirement already satisfied: six>=1.6.1 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from oauth2client==4.1.3->rasa) (1.16.0) Requirement already satisfied: httplib2>=0.9.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from oauth2client==4.1.3->rasa) (0.19.1) Collecting pyasn1-modules>=0.0.5 Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB) Collecting yarl Downloading yarl-1.6.3-cp38-cp38-win_amd64.whl (125 kB) |█| 125 kB 1.3 MB/s Requirement already satisfied: aiormq<4,>=3.2.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from aio-pika<7.0.0,>=6.7.1->rasa) (3.3.1) Collecting typing-extensions>=3.6.5 Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB) Collecting chardet<4.0,>=2.0 Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB) Collecting async-timeout<4.0,>=3.0 Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting multidict<7.0,>=4.5 Downloading multidict-5.1.0-cp38-cp38-win_amd64.whl (48 kB) |█| 48 kB 564 kB/s Collecting pamqp==2.3.0 Using cached pamqp-2.3.0-py2.py3-none-any.whl (28 kB) Collecting tzlocal~=2.0 Using cached tzlocal-2.1-py2.py3-none-any.whl (16 kB) Collecting jmespath<1.0.0,>=0.7.1 Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB) Collecting botocore<1.21.0,>=1.20.84 Downloading botocore-1.20.84-py2.py3-none-any.whl (7.6 MB) |█| 7.6 MB 3.3 MB/s Collecting s3transfer<0.5.0,>=0.4.0 Downloading s3transfer-0.4.2-py2.py3-none-any.whl (79 kB) |█| 79 kB 517 kB/s Collecting urllib3<1.27,>=1.25.4 Downloading urllib3-1.26.5-py2.py3-none-any.whl (138 kB) |█| 138 kB 6.4 MB/s Collecting humanfriendly>=9.1 Using cached humanfriendly-9.1-py2.py3-none-any.whl (86 kB) Collecting pyparsing<3,>=2.4.2 Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) Collecting pyreadline Using cached pyreadline-2.1-py3-none-any.whl Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from jsonschema<3.3,>=3.2->rasa) (0.17.3) Requirement already satisfied: cycler>=0.10 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from matplotlib<3.4,>=3.1->rasa) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from matplotlib<3.4,>=3.1->rasa) (1.3.1) Requirement already satisfied: pillow>=6.2.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from matplotlib<3.4,>=3.1->rasa) (8.2.0) Requirement already satisfied: decorator<5,>=4.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from networkx<2.6,>=2.4->rasa) (4.4.2) Collecting wcwidth Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB) Collecting cryptography<4.0.0,>=3.3.1 Downloading cryptography-3.4.7-cp36-abi3-win_amd64.whl (1.6 MB) |█| 1.6 MB 1.7 MB/s Requirement already satisfied: cffi>=1.12 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from cryptography<4.0.0,>=3.3.1->PyJWT[crypto]<3.0.0,>=2.0.0->rasa) (1.14.5) Requirement already satisfied: pycparser in e:\anaconda3\envs\snorkel_env\lib\site-packages (from cffi>=1.12->cryptography<4.0.0,>=3.3.1->PyJWT[crypto]<3.0.0,>=2.0.0->rasa) (2.20) Requirement already satisfied: docopt>=0.6.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from pykwalify<1.9,>=1.7->rasa) (0.6.2) Requirement already satisfied: dnspython<2.0.0,>=1.16.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from pymongo[srv,tls]<3.11,>=3.8->rasa) (1.16.0) Requirement already satisfied: bidict>=0.21.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from python-socketio<6,>=4.4->rasa) (0.21.2) Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from requests<3.0,>=2.23->rasa) (2020.12.5) Collecting idna<3,>=2.5 Using cached idna-2.10-py2.py3-none-any.whl (58 kB) Collecting ruamel.yaml.clib>=0.1.2 Using cached ruamel.yaml.clib-0.2.2-cp38-cp38-win_amd64.whl (120 kB) Collecting httptools>=0.0.10 Using cached httptools-0.2.0-cp38-cp38-win_amd64.whl (141 kB) Collecting httpx==0.15.4 Using cached httpx-0.15.4-py3-none-any.whl (65 kB) Collecting aiofiles>=0.6.0 Using cached aiofiles-0.7.0-py3-none-any.whl (13 kB) Collecting websockets<9.0,>=8.1 Using cached websockets-8.1-cp38-cp38-win_amd64.whl (66 kB) Collecting httpcore==0.11.* Using cached httpcore-0.11.1-py3-none-any.whl (52 kB) Collecting rfc3986[idna2008]<2,>=1.3 Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Collecting sniffio Using cached sniffio-1.2.0-py3-none-any.whl (10 kB) Collecting h11<0.10,>=0.8 Using cached h11-0.9.0-py2.py3-none-any.whl (53 kB) Collecting sanic-plugins-framework>=0.9.0 Using cached Sanic_Plugins_Framework-0.9.5-py2.py3-none-any.whl (23 kB) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from scikit-learn<0.25,>=0.22->rasa) (2.1.0) Requirement already satisfied: python-crfsuite>=0.8.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from sklearn-crfsuite<0.4,>=0.3->rasa) (0.9.7) Requirement already satisfied: tabulate in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from sklearn-crfsuite<0.4,>=0.3->rasa) (0.8.9) Requirement already satisfied: astunparse==1.6.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (1.6.3) Requirement already satisfied: opt-einsum>=2.3.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (3.3.0) Requirement already satisfied: google-pasta>=0.1.8 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (0.2.0) Requirement already satisfied: gast==0.3.3 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (0.3.3) Requirement already satisfied: wheel>=0.26 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from tensorflow<2.4,>=2.3->rasa) (0.36.2) Requirement already satisfied: grpcio>=1.8.6 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from tensorflow<2.4,>=2.3->rasa) (1.38.0) Requirement already satisfied: h5py<2.11.0,>=2.10.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (2.10.0) Requirement already satisfied: protobuf>=3.9.2 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from tensorflow<2.4,>=2.3->rasa) (3.17.1) Requirement already satisfied: termcolor>=1.1.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (1.1.0) Collecting wrapt>=1.11.1 Using cached wrapt-1.12.1-cp38-cp38-win_amd64.whl Requirement already satisfied: tensorboard<3,>=2.3.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (2.5.0) Requirement already satisfied: keras-preprocessing<1.2,>=1.1.1 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow<2.4,>=2.3->rasa) (1.1.2) Requirement already satisfied: markdown>=2.6.8 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<2.4,>=2.3->rasa) (3.3.4) Collecting tensorboard-data-server<0.7.0,>=0.6.0 Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB) Requirement already satisfied: werkzeug>=0.11.15 in e:\anaconda3\envs\snorkel_env\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<2.4,>=2.3->rasa) (2.0.1) Collecting google-auth<2,>=1.6.3 Downloading google_auth-1.30.1-py2.py3-none-any.whl (146 kB) |█| 146 kB 3.3 MB/s Collecting tensorboard-plugin-wit>=1.6.0 Using cached tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB) Collecting google-auth-oauthlib<0.5,>=0.4.1 Using cached google_auth_oauthlib-0.4.4-py2.py3-none-any.whl (18 kB) Collecting cachetools<5.0,>=2.0.0 Downloading cachetools-4.2.2-py3-none-any.whl (11 kB) Collecting requests-oauthlib>=0.7.0 Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB) Collecting oauthlib>=3.0.0 Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB) Collecting typeguard>=2.7 Using cached typeguard-2.12.0-py3-none-any.whl (16 kB) Requirement already satisfied: dm-tree in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from tensorflow-probability<0.12,>=0.11->rasa) (0.1.6) Requirement already satisfied: requests-toolbelt in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from webexteamssdk<1.7.0,>=1.1.1->rasa) (0.9.1) Requirement already satisfied: future in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from webexteamssdk<1.7.0,>=1.1.1->rasa) (0.18.2) Installing collected packages: sniffio, rfc3986, idna, h11, urllib3, pyasn1, httpcore, chardet, websockets, rsa, requests, pyasn1-modules, oauthlib, multidict, httpx, httptools, cachetools, aiofiles, sanic, requests-oauthlib, pyreadline, jmespath, google-auth, yarl, wcwidth, typing-extensions, tensorboard-plugin-wit, tensorboard-data-server, sanic-plugins-framework, ruamel.yaml.clib, pyparsing, pamqp, numpy, humanfriendly, google-auth-oauthlib, botocore, attrs, async-timeout, wrapt, tzlocal, typeguard, s3transfer, cryptography, aiohttp, packaging, colorama, boto3

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. snorkel 0.9.7 requires networkx<2.4,>=2.2, but you have networkx 2.5.1 which is incompatible. snorkel 0.9.7 requires tensorboard<2.0.0,>=1.14.0, but you have tensorboard 2.5.0 which is incompatible.

Successfully installed aiofiles-0.7.0 aiohttp-3.7.4 async-timeout-3.0.1 attrs-20.3.0 boto3-1.17.84 botocore-1.20.84 cachetools-4.2.2 chardet-3.0.4 colorama-0.4.4 cryptography-3.4.7 google-auth-1.30.1 google-auth-oauthlib-0.4.4 h11-0.9.0 httpcore-0.11.1 httptools-0.2.0 httpx-0.15.4 humanfriendly-9.1 idna-2.10 jmespath-0.10.0 multidict-5.1.0 numpy-1.18.5 oauthlib-3.1.0 packaging-20.9 pamqp-2.3.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyparsing-2.4.7 pyreadline-2.1 requests-2.25.1 requests-oauthlib-1.3.0 rfc3986-1.5.0 rsa-4.7.2 ruamel.yaml.clib-0.2.2 s3transfer-0.4.2 sanic-20.12.3 sanic-plugins-framework-0.9.5 sniffio-1.2.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.0 typeguard-2.12.0 typing-extensions-3.10.0.0 tzlocal-2.1 urllib3-1.26.5 wcwidth-0.2.5 websockets-8.1 wrapt-1.12.1 yarl-1.6.3 (snorkel_env) C:\Users\Ashish Jain>pip show rasa Name: rasa Version: 2.6.3 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 jain\appdata\roaming\python\python38\site-packages Requires: python-socketio, async-generator, tqdm, requests, matplotlib, sentry-sdk, sklearn-crfsuite, scikit-learn, twilio, pytz, ruamel.yaml, jsonpickle, mattermostwrapper, prompt-toolkit, cloudpickle, networkx, packaging, rocketchat-API, colorhash, tensorflow, fbmessenger, psycopg2-binary, pymongo, PyJWT, rasa-sdk, tensorflow-addons, regex, python-engineio, webexteamssdk, oauth2client, pydot, python-dateutil, sanic-jwt, tensorflow-hub, joblib, pyTelegramBotAPI, boto3, pykwalify, tensorflow-estimator, apscheduler, attrs, kafka-python, redis, sanic, tensorflow-probability, SQLAlchemy, questionary, ujson, aio-pika, terminaltables, scipy, colorama, colorclass, sanic-cors, absl-py, coloredlogs, jsonschema, numpy, setuptools, slackclient, aiohttp Required-by: (snorkel_env) C:\Users\Ashish Jain>pip show snorkel Name: snorkel Version: 0.9.7 Summary: A system for quickly generating training data with weak supervision Home-page: https://github.com/snorkel-team/snorkel Author: None Author-email: None License: Apache License 2.0 Location: e:\anaconda3\envs\snorkel_env\lib\site-packages Requires: numpy, networkx, scikit-learn, tqdm, torch, munkres, scipy, tensorboard, pandas Required-by: (snorkel_env) C:\Users\Ashish Jain>rasa 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

Trying 'rasa init' in 'snorkel_env'.

(snorkel_env) ~\test>rasa init Welcome to Rasa! 🤖 To get started quickly, an initial project will be created. If you need some help, check out the documentation at https://rasa.com/docs/rasa. Now let's start! 👇🏽 ? Please enter a path where the project will be created [default: current directory] Created project directory at '~\test'. Finished creating project structure. ? Do you want to train an initial model? 💪🏽 No No problem 👍🏼. You can also train a model later by going to the project directory and running 'rasa train'. (snorkel_env) ~\test>dir /b actions config.yml credentials.yml data domain.yml endpoints.yml tests (snorkel_env) ~\test> === === === === === === === === === === (rasa_env) ~>pip install snorkel WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) Collecting snorkel Downloading snorkel-0.9.7-py3-none-any.whl (145 kB) |█| 145 kB 819 kB/s Collecting torch<2.0.0,>=1.2.0 Downloading torch-1.8.1-cp38-cp38-win_amd64.whl (190.5 MB) |█| 190.5 MB 27 kB/s Requirement already satisfied: numpy<1.20.0,>=1.16.5 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from snorkel) (1.18.5) Collecting tensorboard<2.0.0,>=1.14.0 Downloading tensorboard-1.15.0-py3-none-any.whl (3.8 MB) |█| 3.8 MB 3.3 MB/s Collecting munkres>=1.0.6 Downloading munkres-1.1.4-py2.py3-none-any.whl (7.0 kB) Collecting pandas<2.0.0,>=1.0.0 Downloading pandas-1.2.4-cp38-cp38-win_amd64.whl (9.3 MB) |█| 9.3 MB 1.3 MB/s Requirement already satisfied: scipy<2.0.0,>=1.2.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from snorkel) (1.6.3) Requirement already satisfied: scikit-learn<0.25.0,>=0.20.2 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from snorkel) (0.24.2) Collecting networkx<2.4,>=2.2 Downloading networkx-2.3.zip (1.7 MB) |█| 1.7 MB 6.4 MB/s Requirement already satisfied: tqdm<5.0.0,>=4.33.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from snorkel) (4.59.0) Requirement already satisfied: decorator>=4.3.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from networkx<2.4,>=2.2->snorkel) (4.4.2) Requirement already satisfied: python-dateutil>=2.7.3 in e:\anaconda3\envs\rasa_env\lib\site-packages (from pandas<2.0.0,>=1.0.0->snorkel) (2.8.1) Requirement already satisfied: pytz>=2017.3 in e:\anaconda3\envs\rasa_env\lib\site-packages (from pandas<2.0.0,>=1.0.0->snorkel) (2021.1) Requirement already satisfied: six>=1.5 in e:\anaconda3\envs\rasa_env\lib\site-packages (from python-dateutil>=2.7.3->pandas<2.0.0,>=1.0.0->snorkel) (1.16.0) Requirement already satisfied: joblib>=0.11 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from scikit-learn<0.25.0,>=0.20.2->snorkel) (0.15.1) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from scikit-learn<0.25.0,>=0.20.2->snorkel) (2.1.0) Requirement already satisfied: absl-py>=0.4 in e:\anaconda3\envs\rasa_env\lib\site-packages (from tensorboard<2.0.0,>=1.14.0->snorkel) (0.12.0) Requirement already satisfied: werkzeug>=0.11.15 in e:\anaconda3\envs\rasa_env\lib\site-packages (from tensorboard<2.0.0,>=1.14.0->snorkel) (2.0.1) Requirement already satisfied: grpcio>=1.6.3 in e:\anaconda3\envs\rasa_env\lib\site-packages (from tensorboard<2.0.0,>=1.14.0->snorkel) (1.38.0) Requirement already satisfied: markdown>=2.6.8 in e:\anaconda3\envs\rasa_env\lib\site-packages (from tensorboard<2.0.0,>=1.14.0->snorkel) (3.3.4) Requirement already satisfied: wheel>=0.26 in e:\anaconda3\envs\rasa_env\lib\site-packages (from tensorboard<2.0.0,>=1.14.0->snorkel) (0.36.2) Requirement already satisfied: setuptools>=41.0.0 in e:\anaconda3\envs\rasa_env\lib\site-packages (from tensorboard<2.0.0,>=1.14.0->snorkel) (49.6.0.post20210108) Requirement already satisfied: protobuf>=3.6.0 in e:\anaconda3\envs\rasa_env\lib\site-packages (from tensorboard<2.0.0,>=1.14.0->snorkel) (3.17.1) Requirement already satisfied: typing-extensions in c:\users\ashish jain\appdata\roaming\python\python38\site-packages (from torch<2.0.0,>=1.2.0->snorkel) (3.10.0.0) Building wheels for collected packages: networkx Building wheel for networkx (setup.py) ... done Created wheel for networkx: filename=networkx-2.3-py2.py3-none-any.whl size=1555990 sha256=9c94f5d6e380e2cb594911807f48a2c5c51c956adf73361417786843daed01ba Stored in directory: c:\users\ashish jain\appdata\local\pip\cache\wheels\ff\62\9e\0ed2d25fd4f5761e2d19568cda0c32716556dfa682e65ecf64 Successfully built networkx WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) Installing collected packages: torch, tensorboard, pandas, networkx, munkres, snorkel Attempting uninstall: tensorboard Found existing installation: tensorboard 2.5.0 Uninstalling tensorboard-2.5.0: Successfully uninstalled tensorboard-2.5.0 Attempting uninstall: networkx Found existing installation: networkx 2.5.1 Uninstalling networkx-2.5.1: Successfully uninstalled networkx-2.5.1 WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages)

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. tensorflow 2.3.2 requires tensorboard<3,>=2.3.0, but you have tensorboard 1.15.0 which is incompatible. rasa 2.6.3 requires networkx<2.6,>=2.4, but you have networkx 2.3 which is incompatible.

Successfully installed munkres-1.1.4 networkx-2.3 pandas-1.2.4 snorkel-0.9.7 tensorboard-1.15.0 torch-1.8.1 WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) WARNING: Ignoring invalid distribution -qdm (e:\anaconda3\envs\rasa_env\lib\site-packages) (rasa_env) ~> (rasa_env) ~>pip show rasa Name: rasa Version: 2.6.3 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 jain\appdata\roaming\python\python38\site-packages Requires: python-engineio, pymongo, colorama, webexteamssdk, attrs, matplotlib, aio-pika, oauth2client, setuptools, tensorflow-probability, terminaltables, sentry-sdk, ruamel.yaml, pykwalify, pydot, sklearn-crfsuite, tensorflow-hub, cloudpickle, sanic-jwt, questionary, sanic, python-dateutil, colorhash, networkx, jsonschema, boto3, redis, sanic-cors, aiohttp, coloredlogs, prompt-toolkit, twilio, kafka-python, rasa-sdk, jsonpickle, async-generator, psycopg2-binary, packaging, mattermostwrapper, colorclass, regex, slackclient, scipy, SQLAlchemy, scikit-learn, apscheduler, joblib, requests, pytz, absl-py, fbmessenger, tqdm, PyJWT, tensorflow-addons, ujson, python-socketio, rocketchat-API, numpy, tensorflow, pyTelegramBotAPI, tensorflow-estimator Required-by: (rasa_env) ~>pip show snorkel Name: snorkel Version: 0.9.7 Summary: A system for quickly generating training data with weak supervision Home-page: https://github.com/snorkel-team/snorkel Author: None Author-email: None License: Apache License 2.0 Location: e:\anaconda3\envs\rasa_env\lib\site-packages Requires: scikit-learn, tqdm, pandas, torch, scipy, tensorboard, networkx, munkres, numpy Required-by: (rasa_env) ~>rasa 'rasa' is not recognized as an internal or external command, operable program or batch file. (rasa_env) ~>rasa init 'rasa' is not recognized as an internal or external command, operable program or batch file. === === === === === === === === === === (snorkel_env) ~\ws>rasa init ┌────────────────────────────────────────────────────────────────────────────────┐ │ Rasa Open Source reports anonymous usage telemetry to help improve the product │ │ for all its users. │ │ │ │ If you'd like to opt-out, you can use `rasa telemetry disable`. │ │ To learn more, check out https://rasa.com/docs/rasa/telemetry/telemetry. │ └────────────────────────────────────────────────────────────────────────────────┘ Welcome to Rasa! 🤖 To get started quickly, an initial project will be created. If you need some help, check out the documentation at https://rasa.com/docs/rasa. Now let's start! 👇🏽 ? Please enter a path where the project will be created [default: current directory] Created project directory at '~\ws'. Finished creating project structure. ? Do you want to train an initial model? 💪🏽 No No problem 👍🏼. You can also train a model later by going to the project directory and running 'rasa train'. (snorkel_env) ~\ws>dir /b actions config.yml credentials.yml data domain.yml endpoints.yml tests === === === === === === === === === ===

Checking 'snorkel' installation in both the environments (snorkel_env and rasa_env)

(snorkel_env) ~\test>python Python 3.8.10 | packaged by conda-forge | (default, May 11 2021, 06:25:23) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import snorkel >>> exit() (snorkel_env) ~\test>conda deactivate (base) ~\test>conda activate rasa_env (rasa_env) ~\test>python Python 3.8.10 | packaged by conda-forge | (default, May 11 2021, 06:25:23) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import snorkel >>> exit()

Checking the output of "pipdeptree -r -p"

(base) C:\Users\Ashish Jain>conda activate rasa_env (rasa_env) C:\Users\Ashish Jain>pipdeptree -r -p rasa Ignoring invalid distribution -qdm (e:\programfiles\anaconda3\envs\rasa_env\lib\site-packages) Warning!!! Possibly conflicting dependencies found: * tensorflow==2.3.2 - tensorboard [required: >=2.3.0,<3, installed: 1.15.0] * rasa==2.6.3 - networkx [required: >=2.4,<2.6, installed: 2.3] * typer==0.3.1 - click [required: >=7.1.1,<7.2.0, installed: 8.0.1] ------------------------------------------------------------------------ rasa==2.6.3 (rasa_env) C:\Users\Ashish Jain>pipdeptree -r -p snorkel Ignoring invalid distribution -qdm (e:\programfiles\anaconda3\envs\rasa_env\lib\site-packages) Warning!!! Possibly conflicting dependencies found: * tensorflow==2.3.2 - tensorboard [required: >=2.3.0,<3, installed: 1.15.0] * rasa==2.6.3 - networkx [required: >=2.4,<2.6, installed: 2.3] * typer==0.3.1 - click [required: >=7.1.1,<7.2.0, installed: 8.0.1] ------------------------------------------------------------------------ snorkel==0.9.7 (rasa_env) C:\Users\Ashish Jain>conda deactivate (base) C:\Users\Ashish Jain>conda activate snorkel_env (snorkel_env) C:\Users\Ashish Jain>pipdeptree -r -p rasa Warning!!! Possibly conflicting dependencies found: * tensorflow==2.3.2 - tensorboard [required: >=2.3.0,<3, installed: 1.15.0] * rasa==2.6.3 - networkx [required: >=2.4,<2.6, installed: 2.3] ------------------------------------------------------------------------ rasa==2.6.3 (snorkel_env) C:\Users\Ashish Jain>pipdeptree -r -p snorkel Warning!!! Possibly conflicting dependencies found: * tensorflow==2.3.2 - tensorboard [required: >=2.3.0,<3, installed: 1.15.0] * rasa==2.6.3 - networkx [required: >=2.4,<2.6, installed: 2.3] ------------------------------------------------------------------------ snorkel==0.9.7 Tags: Anaconda,Python,Natural Language Processing,