Still on ML-Flow installation in R Studio - r

Please, after I load the mlflow library in R Studio and I run install_mlflow(python_version = "3.6") on my windows 10 machine, I get the following message printed in my console, which seems to indicate that all requirements are already satisfied:
Requirement already satisfied: mlflow==1.19.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (1.19.0)
Requirement already satisfied: pandas in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (1.1.5)
Requirement already satisfied: pytz in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (2021.1)
Requirement already satisfied: packaging in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (21.0)
Requirement already satisfied: requests>=2.17.3 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (2.26.0)
Requirement already satisfied: alembic<=1.4.1 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (1.4.1)
Requirement already satisfied: entrypoints in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (0.3)
Requirement already satisfied: Flask in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (2.0.1)
Requirement already satisfied: docker>=4.0.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (5.0.0)
Requirement already satisfied: pyyaml>=5.1 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (5.4.1)
Requirement already satisfied: numpy in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (1.19.5)
Requirement already satisfied: click>=7.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (8.0.1)
Requirement already satisfied: querystring-parser in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (1.2.4)
Requirement already satisfied: prometheus-flask-exporter in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (0.18.2)
Requirement already satisfied: protobuf>=3.7.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (3.17.3)
Requirement already satisfied: sqlparse>=0.3.1 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (0.4.1)
Requirement already satisfied: sqlalchemy in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (1.4.23)
Requirement already satisfied: gitpython>=2.1.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (3.1.18)
Requirement already satisfied: waitress in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (2.0.0)
Requirement already satisfied: databricks-cli>=0.8.7 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (0.15.0)
Requirement already satisfied: cloudpickle in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from mlflow==1.19.0) (1.6.0)
Requirement already satisfied: python-editor>=0.3 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from alembic<=1.4.1->mlflow==1.19.0) (1.0.4)
Requirement already satisfied: Mako in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from alembic<=1.4.1->mlflow==1.19.0) (1.1.5)
Requirement already satisfied: python-dateutil in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from alembic<=1.4.1->mlflow==1.19.0) (2.8.2)
Requirement already satisfied: importlib-metadata in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from click>=7.0->mlflow==1.19.0) (4.8.1)
Requirement already satisfied: colorama in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from click>=7.0->mlflow==1.19.0) (0.4.4)
Requirement already satisfied: tabulate>=0.7.7 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from databricks-cli>=0.8.7->mlflow==1.19.0) (0.8.9)
Requirement already satisfied: six>=1.10.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from databricks-cli>=0.8.7->mlflow==1.19.0) (1.16.0)
Requirement already satisfied: websocket-client>=0.32.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from docker>=4.0.0->mlflow==1.19.0) (1.2.1)
Requirement already satisfied: pywin32==227 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from docker>=4.0.0->mlflow==1.19.0) (227)
Requirement already satisfied: gitdb<5,>=4.0.1 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from gitpython>=2.1.0->mlflow==1.19.0) (4.0.7)
Requirement already satisfied: typing-extensions>=3.7.4.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from gitpython>=2.1.0->mlflow==1.19.0) (3.10.0.1)
Requirement already satisfied: smmap<5,>=3.0.1 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from gitdb<5,>=4.0.1->gitpython>=2.1.0->mlflow==1.19.0) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from requests>=2.17.3->mlflow==1.19.0) (1.26.6)
Requirement already satisfied: idna<4,>=2.5 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from requests>=2.17.3->mlflow==1.19.0) (3.2)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from requests>=2.17.3->mlflow==1.19.0) (2021.5.30)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from requests>=2.17.3->mlflow==1.19.0) (2.0.4)
Requirement already satisfied: greenlet!=0.4.17 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from sqlalchemy->mlflow==1.19.0) (1.1.1)
Requirement already satisfied: Werkzeug>=2.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from Flask->mlflow==1.19.0) (2.0.1)
Requirement already satisfied: itsdangerous>=2.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from Flask->mlflow==1.19.0) (2.0.1)
Requirement already satisfied: Jinja2>=3.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from Flask->mlflow==1.19.0) (3.0.1)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from Jinja2>=3.0->Flask->mlflow==1.19.0) (2.0.1)
Requirement already satisfied: dataclasses in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from Werkzeug>=2.0->Flask->mlflow==1.19.0) (0.8)
Requirement already satisfied: zipp>=0.5 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from importlib-metadata->click>=7.0->mlflow==1.19.0) (3.5.0)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from packaging->mlflow==1.19.0) (2.4.7)
Requirement already satisfied: prometheus-client in c:\users\ifeanyi\appdata\local\r-mini~1\envs\r-mlfl~1.0\lib\site-packages (from prometheus-flask-exporter->mlflow==1.19.0) (0.11.0)
[1] "mlflow==1.19.0"
Nevertheless, when I run an API call, such as mlflow_ui(), I still get the error message printed in my console:
Error in rethrow_call(c_processx_exec, command, c(command, args), pty, :
Command 'C:/Users/IFEANYI/AppData/Local/r-miniconda/envs/r-mlflow-1.19.0/mlflow' not found #win/processx.c:982 (processx_exec)
Also, after loading the library and I run install_mlflow(), the code runs until it returns the error message in my console:
Error: Error installing package(s): "mlflow==1.20.3"
I have anaconda installed on my machine, which I believe should take care of conda installation. Please I do not know where to go from here guys.

mlflow is installed in C:/Users/IFEANYI/AppData/Local/r-miniconda/envs/r-mlflow-1.19.0/Scripts. That's why it can not be found.
Two ways to solve this.
use Sys.setenv() to set mlflow_bin to 'C:/Users/IFEANYI/AppData/Local/r-miniconda/envs/r-mlflow-1.19.0/Scripts'
Sys.setenv(MLFLOW_BIN=system("which mlflow"))
Sys.setenv(MLFLOW_PYTHON_BIN=system("which python"))
manually move mlflow.exe from C:/Users/IFEANYI/AppData/Local/r-miniconda/envs/r-mlflow-1.19.0/Scripts to C:/Users/IFEANYI/AppData/Local/r-miniconda/envs/r-mlflow-1.19.0

Related

Airflow pandas library not installed

I have this dag below. The pandas lib is installed nevertheless i am receiving error stating that it's not. What can i do to make it work?
Dag:
from airflow import DAG
from airflow.providers.postgres.hooks.postgres import PostgresHook
from airflow.operators.python import PythonOperator
from datetime import datetime
def helloWorld():
print('Hello World')
def take_clients():
hook = PostgresHook(postgres_conn_id="postgres_robert")
df = hook.get_pandas_df(sql="SELECT * FROM clients;")
print(df)
# do what you need with the df....
with DAG(dag_id="test",
start_date=datetime(2021,1,1),
schedule_interval="#once",
catchup=False) as dag:
task1 = PythonOperator(
task_id="hello_world",
python_callable=helloWorld)
task2 = PythonOperator(
task_id="get_clients",
python_callable=take_clients)
task1 >> task2
Error:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/c/Users/use/Documents/airflow/airflow_env/lib/python3.8/site-packages/airflow/operators/python.py", line 171, in execute
return_value = self.execute_callable()
File "/mnt/c/Users/use/Documents/airflow/airflow_env/lib/python3.8/site-packages/airflow/operators/python.py", line 189, in execute_callable
return self.python_callable(*self.op_args, **self.op_kwargs)
File "/mnt/c/Users/use/Documents/airflow/dags/test.py", line 11, in take_clients
df = hook.get_pandas_df(sql="SELECT * FROM clients;")
File "/mnt/c/Users/use/Documents/airflow/airflow_env/lib/python3.8/site-packages/airflow/hooks/dbapi.py", line 126, in get_pandas_df
raise Exception("pandas library not installed, run: pip install 'apache-airflow[pandas]'.")
Exception: pandas library not installed, run: pip install 'apache-airflow[pandas]'.
[2022-05-10, 15:06:05 UTC] {taskinstance.py:1395} INFO - Marking task as FAILED. dag_id=test, task_id=get_clients, execution_date=20220510T130533, start_date=20220510T130602, end_date=20220510T130605
[2022-05-10, 15:06:05 UTC] {standard_task_runner.py:92} ERROR - Failed to execute job 136 for task get_clients (pandas library not installed, run: pip install 'apache-airflow[pandas]'.; 5647)
[2022-05-10, 15:06:05 UTC] {local_task_job.py:156} INFO - Task exited with return code 1
[2022-05-10, 15:06:05 UTC] {local_task_job.py:273} INFO - 0 downstream tasks scheduled from follow-on schedule check
The pandas is installed:
    /mnt/c/U/R/Doc/airflow  pip install 'apache-airflow[pandas]'
Requirement already satisfied: apache-airflow[pandas] in ./airflow_env/lib/python3.8/site-packages (2.3.0)
Requirement already satisfied: tabulate>=0.7.5 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.8.9)
Requirement already satisfied: pendulum>=2.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.1.2)
Requirement already satisfied: lockfile>=0.12.2 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.12.2)
Requirement already satisfied: flask-caching<2.0.0,>=1.5.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.10.1)
Requirement already satisfied: unicodecsv>=0.14.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.14.1)
Requirement already satisfied: gunicorn>=20.1.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (20.1.0)
Requirement already satisfied: setproctitle>=1.1.8 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.2.3)
Requirement already satisfied: connexion[flask,swagger-ui]>=2.10.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.13.1)
Requirement already satisfied: colorlog<5.0,>=4.0.2 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (4.8.0)
Requirement already satisfied: lazy-object-proxy in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.7.1)
Requirement already satisfied: python-nvd3>=0.15.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.15.0)
Requirement already satisfied: flask-session<=0.4.0,>=0.3.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.4.0)
Requirement already satisfied: itsdangerous<2.0,>=1.1.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.1.0)
Requirement already satisfied: importlib-resources>=5.2; python_version < "3.9" in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (5.7.1)
Requirement already satisfied: rich>=12.3.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (12.4.1)
Requirement already satisfied: python-dateutil>=2.3 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.8.2)
Requirement already satisfied: marshmallow-oneofschema>=2.0.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (3.0.1)
Requirement already satisfied: cryptography>=0.9.3 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (37.0.2)
Requirement already satisfied: flask-login<0.5,>=0.3 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.4.1)
Requirement already satisfied: apache-airflow-providers-ftp in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.1.2)
Requirement already satisfied: markdown>=3.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (3.3.7)
Requirement already satisfied: apache-airflow-providers-http in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.1.2)
Requirement already satisfied: python-daemon>=2.2.4 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.3.0)
Requirement already satisfied: sqlalchemy<1.4.10,>=1.4 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.4.9)
Requirement already satisfied: attrs<21.0,>=20.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (20.3.0)
Requirement already satisfied: cron-descriptor>=1.2.24 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.2.24)
Requirement already satisfied: importlib-metadata>=1.7; python_version < "3.9" in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (4.11.3)
Requirement already satisfied: pluggy>=1.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.0.0)
Requirement already satisfied: pygments>=2.0.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.12.0)
Requirement already satisfied: jinja2<3.1,>=2.10.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (3.0.3)
Requirement already satisfied: packaging>=14.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (21.3)
Requirement already satisfied: sqlalchemy-jsonfield>=1.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.0.0)
Requirement already satisfied: dill>=0.2.2 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.3.4)
Requirement already satisfied: flask-wtf<0.15,>=0.14.3 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.14.3)
Requirement already satisfied: python-slugify>=5.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (6.1.2)
Requirement already satisfied: argcomplete>=1.10 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.0.0)
Requirement already satisfied: markupsafe<2.1.0,>=1.1.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.0.1)
Requirement already satisfied: flask-appbuilder==3.4.5 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (3.4.5)
Requirement already satisfied: tenacity>=6.2.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (8.0.1)
Requirement already satisfied: termcolor>=1.1.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.1.0)
Requirement already satisfied: apache-airflow-providers-sqlite in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.1.3)
Requirement already satisfied: pathspec~=0.9.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.9.0)
Requirement already satisfied: psutil>=4.2.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (5.9.0)
Requirement already satisfied: blinker in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.4)
Requirement already satisfied: werkzeug>=1.0.1,~=1.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.0.1)
Requirement already satisfied: croniter>=0.3.17 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.3.4)
Requirement already satisfied: cattrs!=1.7.*,~=1.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.10.0)
Requirement already satisfied: flask<2.0,>=1.1.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.1.4)
Requirement already satisfied: jsonschema<5.0,>=3.2.0 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (4.5.1)
Requirement already satisfied: httpx in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.22.0)
Requirement already satisfied: graphviz>=0.12 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (0.20)
Requirement already satisfied: typing-extensions>=3.7.4 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (4.2.0)
Requirement already satisfied: deprecated>=1.2.13 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.2.13)
Requirement already satisfied: alembic<2.0,>=1.5.1 in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.7.7)
Requirement already satisfied: apache-airflow-providers-imap in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (2.2.3)
Requirement already satisfied: pandas>=0.17.1; extra == "pandas" in ./airflow_env/lib/python3.8/site-packages (from apache-airflow[pandas]) (1.4.2)
Requirement already satisfied: pytzdata>=2020.1 in ./airflow_env/lib/python3.8/site-packages (from pendulum>=2.0->apache-airflow[pandas]) (2020.1)
Requirement already satisfied: setuptools>=3.0 in ./airflow_env/lib/python3.8/site-packages (from gunicorn>=20.1.0->apache-airflow[pandas]) (44.0.0)
Requirement already satisfied: PyYAML<7,>=5.1 in ./airflow_env/lib/python3.8/site-packages (from connexion[flask,swagger-ui]>=2.10.0->apache-airflow[pandas]) (6.0)
Requirement already satisfied: inflection<0.6,>=0.3.1 in ./airflow_env/lib/python3.8/site-packages (from connexion[flask,swagger-ui]>=2.10.0->apache-airflow[pandas]) (0.5.1)
Requirement already satisfied: clickclick<21,>=1.2 in ./airflow_env/lib/python3.8/site-packages (from connexion[flask,swagger-ui]>=2.10.0->apache-airflow[pandas]) (20.10.2)
Requirement already satisfied: requests<3,>=2.9.1 in ./airflow_env/lib/python3.8/site-packages (from connexion[flask,swagger-ui]>=2.10.0->apache-airflow[pandas]) (2.27.1)
Requirement already satisfied: swagger-ui-bundle<0.1,>=0.0.2; extra == "swagger-ui" in ./airflow_env/lib/python3.8/site-packages (from connexion[flask,swagger-ui]>=2.10.0->apache-airflow[pandas]) (0.0.9)
Requirement already satisfied: cachelib in ./airflow_env/lib/python3.8/site-packages (from flask-session<=0.4.0,>=0.3.1->apache-airflow[pandas]) (0.6.0)
Requirement already satisfied: zipp>=3.1.0; python_version < "3.10" in ./airflow_env/lib/python3.8/site-packages (from importlib-resources>=5.2; python_version < "3.9"->apache-airflow[pandas]) (3.8.0)
Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in ./airflow_env/lib/python3.8/site-packages (from rich>=12.3.0->apache-airflow[pandas]) (0.9.1)
Requirement already satisfied: six>=1.5 in ./airflow_env/lib/python3.8/site-packages (from python-dateutil>=2.3->apache-airflow[pandas]) (1.16.0)
Requirement already satisfied: marshmallow<4.0.0,>=3.0.0 in ./airflow_env/lib/python3.8/site-packages (from marshmallow-oneofschema>=2.0.1->apache-airflow[pandas]) (3.15.0)
Requirement already satisfied: cffi>=1.12 in ./airflow_env/lib/python3.8/site-packages (from cryptography>=0.9.3->apache-airflow[pandas]) (1.15.0)
Requirement already satisfied: docutils in ./airflow_env/lib/python3.8/site-packages (from python-daemon>=2.2.4->apache-airflow[pandas]) (0.18.1)
Requirement already satisfied: greenlet!=0.4.17; python_version >= "3" in ./airflow_env/lib/python3.8/site-packages (from sqlalchemy<1.4.10,>=1.4->apache-airflow[pandas]) (1.1.2)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./airflow_env/lib/python3.8/site-packages (from packaging>=14.0->apache-airflow[pandas]) (3.0.8)
Requirement already satisfied: WTForms in ./airflow_env/lib/python3.8/site-packages (from flask-wtf<0.15,>=0.14.3->apache-airflow[pandas]) (2.3.3)
Requirement already satisfied: text-unidecode>=1.3 in ./airflow_env/lib/python3.8/site-packages (from python-slugify>=5.0->apache-airflow[pandas]) (1.3)
Requirement already satisfied: PyJWT<2.0.0,>=1.7.1 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (1.7.1)
Requirement already satisfied: email-validator<2,>=1.0.5 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (1.2.1)
Requirement already satisfied: marshmallow-enum<2,>=1.5.1 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (1.5.1)
Requirement already satisfied: click<9,>=6.7 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (7.1.2)
Requirement already satisfied: sqlalchemy-utils<1,>=0.32.21 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (0.38.2)
Requirement already satisfied: marshmallow-sqlalchemy<0.27.0,>=0.22.0 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (0.26.1)
Requirement already satisfied: colorama<1,>=0.3.9 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (0.4.4)
Requirement already satisfied: Flask-JWT-Extended<4,>=3.18 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (3.25.1)
Requirement already satisfied: apispec[yaml]<4,>=3.3 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (3.3.2)
Requirement already satisfied: prison<1.0.0,>=0.2.1 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (0.2.1)
Requirement already satisfied: Flask-Babel<3,>=1 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (2.0.0)
Requirement already satisfied: Flask-OpenID<2,>=1.2.5 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (1.3.0)
Requirement already satisfied: Flask-SQLAlchemy<3,>=2.4 in ./airflow_env/lib/python3.8/site-packages (from flask-appbuilder==3.4.5->apache-airflow[pandas]) (2.5.1)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./airflow_env/lib/python3.8/site-packages (from jsonschema<5.0,>=3.2.0->apache-airflow[pandas]) (0.18.1)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./airflow_env/lib/python3.8/site-packages (from httpx->apache-airflow[pandas]) (1.5.0)
Requirement already satisfied: charset-normalizer in ./airflow_env/lib/python3.8/site-packages (from httpx->apache-airflow[pandas]) (2.0.12)
Requirement already satisfied: certifi in ./airflow_env/lib/python3.8/site-packages (from httpx->apache-airflow[pandas]) (2021.10.8)
Requirement already satisfied: sniffio in ./airflow_env/lib/python3.8/site-packages (from httpx->apache-airflow[pandas]) (1.2.0)
Requirement already satisfied: httpcore<0.15.0,>=0.14.5 in ./airflow_env/lib/python3.8/site-packages (from httpx->apache-airflow[pandas]) (0.14.7)
Requirement already satisfied: wrapt<2,>=1.10 in ./airflow_env/lib/python3.8/site-packages (from deprecated>=1.2.13->apache-airflow[pandas]) (1.14.1)
Requirement already satisfied: Mako in ./airflow_env/lib/python3.8/site-packages (from alembic<2.0,>=1.5.1->apache-airflow[pandas]) (1.2.0)
Requirement already satisfied: pytz>=2020.1 in ./airflow_env/lib/python3.8/site-packages (from pandas>=0.17.1; extra == "pandas"->apache-airflow[pandas]) (2022.1)
Requirement already satisfied: numpy>=1.18.5; platform_machine != "aarch64" and platform_machine != "arm64" and python_version < "3.10" in ./airflow_env/lib/python3.8/site-packages (from pandas>=0.17.1; extra == "pandas"->apache-airflow[pandas]) (1.22.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./airflow_env/lib/python3.8/site-packages (from requests<3,>=2.9.1->connexion[flask,swagger-ui]>=2.10.0->apache-airflow[pandas]) (1.26.9)
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in ./airflow_env/lib/python3.8/site-packages (from requests<3,>=2.9.1->connexion[flask,swagger-ui]>=2.10.0->apache-airflow[pandas]) (3.3)
Requirement already satisfied: pycparser in ./airflow_env/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=0.9.3->apache-airflow[pandas]) (2.21)
Requirement already satisfied: dnspython>=1.15.0 in ./airflow_env/lib/python3.8/site-packages (from email-validator<2,>=1.0.5->flask-appbuilder==3.4.5->apache-airflow[pandas]) (2.2.1)
Requirement already satisfied: Babel>=2.3 in ./airflow_env/lib/python3.8/site-packages (from Flask-Babel<3,>=1->flask-appbuilder==3.4.5->apache-airflow[pandas]) (2.10.1)
Requirement already satisfied: python3-openid>=2.0 in ./airflow_env/lib/python3.8/site-packages (from Flask-OpenID<2,>=1.2.5->flask-appbuilder==3.4.5->apache-airflow[pandas]) (3.2.0)
Requirement already satisfied: h11<0.13,>=0.11 in ./airflow_env/lib/python3.8/site-packages (from httpcore<0.15.0,>=0.14.5->httpx->apache-airflow[pandas]) (0.12.0)
Requirement already satisfied: anyio==3.* in ./airflow_env/lib/python3.8/site-packages (from httpcore<0.15.0,>=0.14.5->httpx->apache-airflow[pandas]) (3.5.0)
Requirement already satisfied: defusedxml in ./airflow_env/lib/python3.8/site-packages (from python3-openid>=2.0->Flask-OpenID<2,>=1.2.5->flask-appbuilder==3.4.5->apache-airflow[pandas]) (0.7.1)

Unable to import get tweets from twitter scraper

I installed twitter scraper package successfully.
!pip install twitterscraper --upgrade
Requirement already satisfied: twitterscraper in /usr/local/lib/python3.7/dist-packages (1.6.1)
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from twitterscraper) (2.23.0)
Requirement already satisfied: lxml in /usr/local/lib/python3.7/dist-packages (from twitterscraper) (4.2.6)
Requirement already satisfied: billiard in /usr/local/lib/python3.7/dist-packages (from twitterscraper) (3.6.4.0)
Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (from twitterscraper) (0.0.1)
Requirement already satisfied: coala-utils~=0.5.0 in /usr/local/lib/python3.7/dist-packages (from twitterscraper) (0.5.1)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.7/dist-packages (from bs4->twitterscraper) (4.6.3)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->twitterscraper) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->twitterscraper) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->twitterscraper) (2021.10.8)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->twitterscraper) (1.24.3)
I tried to import get tweets from twitter scraper.
from twitter_scraper import get_tweets
I received the following message:
ModuleNotFoundError
Traceback (most recent call last)
<ipython-input-68-865864c6c316> in <module>()
1 # Import the required libraries.
----> 2 from twitter_scraper import get_tweets
3 import pandas as pd
ModuleNotFoundError: No module named 'twitter_scraper'
Can you help me resolve this issue?

How to import SSH-Library on RIDE?

I'm going to do SSH connection using RIDE in VM.
To do so, I had to call SSH Library, but it failed.
How to import SSH Library call successfully?
i try
a. https://github.com/robotframework/SSHLibrary (Fail)
b. cmd > pip install robotframework-SSHLibrary (Fail)
c. cmd > pip install -U robotframework-sshlibrary==3.8.0 (Fail)
reference
https://github.com/robotframework/SSHLibrary
https://www.youtube.com/watch?v=Zr8ejSgBgNU
help me plz
Alternatively you can download the source distribution from PyPI, extract it, and install it using one of the following depending are you using Python or Jython:
python setup.py install
jython setup.py install
I tried with python3. If you notice there are some dependent libraries, which has to be installed first.
python3 -m pip install robotframework-sshlibrary
Defaulting to user installation because normal site-packages is not writeable
Collecting robotframework-sshlibrary
Downloading robotframework-sshlibrary-3.8.0.tar.gz (51 kB)
|████████████████████████████████| 51 kB 128 kB/s
**Requirement already satisfied: robotframework>=3.0 in /usr/local/lib/python3.8/dist-packages (from robotframework-sshlibrary) (3.0.4)
Requirement already satisfied: paramiko>=1.15.3 in /usr/local/lib/python3.8/dist-packages (from robotframework-sshlibrary) (2.10.1)
Requirement already satisfied: scp>=0.13.0 in /usr/local/lib/python3.8/dist-packages (from robotframework-sshlibrary) (0.13.2)
Requirement already satisfied: pynacl>=1.0.1 in /usr/local/lib/python3.8/dist-packages (from paramiko>=1.15.3->robotframework-sshlibrary) (1.5.0)
Requirement already satisfied: bcrypt>=3.1.3 in /usr/local/lib/python3.8/dist-packages (from paramiko>=1.15.3->robotframework-sshlibrary) (3.2.0)
Requirement already satisfied: six in /usr/local/lib/python3.8/dist-packages (from paramiko>=1.15.3->robotframework-sshlibrary) (1.16.0)
Requirement already satisfied: cryptography>=2.5 in /usr/local/lib/python3.8/dist-packages (from paramiko>=1.15.3->robotframework-sshlibrary) (2.9.2)
Requirement already satisfied: cffi>=1.4.1 in /usr/local/lib/python3.8/dist-packages (from pynacl>=1.0.1->paramiko>=1.15.3->robotframework-sshlibrary) (1.15.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/dist-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko>=1.15.3->robotframework-sshlibrary) (2.21)**
Building wheels for collected packages: robotframework-sshlibrary
Building wheel for robotframework-sshlibrary (setup.py) ... done
Created wheel for robotframework-sshlibrary: filename=robotframework_sshlibrary-3.8.0-py3-none-any.whl size=55119
sha256=63c5bf6b17e0ecbcd45f32b8a1ea367cfc0a19d2f17601a49b4f632472c68177
Stored in directory: /home/.cache/pip/wheels/c9/c2/39/2571d47c551e3012fa4e8284bbdcac2d025db39c275b058db4
Successfully built robotframework-sshlibrary
Installing collected packages: robotframework-sshlibrary
Successfully installed robotframework-sshlibrary-3.8.0

Hey I'm unable to install pyinstaller properly

Hey I tried running these:
1)pip uninstall pyinstaller
2)pip install pyinstaller
3)pyinstaller
but then the error starts
Please help me I'm trying to compile py files to exe the first timeenter code here
E:\Hacking\TEsting malwarres>pip uninstall pyinstaller
Found existing installation: pyinstaller 4.1
Uninstalling pyinstaller-4.1:
Would remove:
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\scripts\pyi-archive_viewer.exe
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\scripts\pyi-bindepend.exe
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\scripts\pyi-grab_version.exe
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\scripts\pyi-makespec.exe
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\scripts\pyi-set_version.exe
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\scripts\pyinstaller.exe
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages\pyinstaller-4.1.dist-info\*
c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages\pyinstaller\*
Proceed (y/n)? y
Successfully uninstalled pyinstaller-4.1
E:\Hacking\TEsting malwarres>pip install pyinstaller
Collecting pyinstaller
Using cached pyinstaller-4.1-py3-none-any.whl
Requirement already satisfied: pefile>=2017.8.1 in c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pyinstaller) (2019.4.18)
Requirement already satisfied: altgraph in c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pyinstaller) (0.17)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pyinstaller) (2020.10)
Requirement already satisfied: setuptools in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\site-packages (from pyinstaller) (47.1.0)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pyinstaller) (0.2.0)
Requirement already satisfied: future in c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pefile>=2017.8.1->pyinstaller) (0.18.2)
Installing collected packages: pyinstaller
WARNING: The scripts pyi-archive_viewer.exe, pyi-bindepend.exe, pyi-grab_version.exe, pyi-makespec.exe, pyi-set_version.exe and pyinstaller.exe are installed in 'C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pyinstaller-4.1
E:\Hacking\TEsting malwarres>pyinstaller
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
Reinstall python and pyinstaller then run it.
By the way, pyinstaller by itself will not work, It just lists commands.
Do pyinstaller filename.py for it to work.

Error: Python module 'cleannlp' not found. Install with: pip install cleannlp in R

I am using R studio, on ubuntu 18.4, specifically the cleannlp package to analyze texts according to this tutorial found here https://statsmaths.github.io/cleanNLP/state-of-union.html.
As per the installation instructions found here - https://statsmaths.github.io/cleanNLP/, I have thus far installed cleannlp like thus install.packages("cleanNLP") in Rstudio's console. Further, I have install it's modules pip install cleannlp in terminal. As far as I can see, I have not had any trouble with either installation.
There are 4 backends to cleannlp as evidenced in the installation instructions:
cnlp_init_stringi(locale="en_GB")
cnlp_init_udpipe(model_name="english")
cnlp_init_spacy(model_name="en")
cnlp_init_corenlp(lang="en")
I do not seem to have any trouble using stringi or udpipe. However, using spacy and corenlp backends seem to be throwing this error
Error: Python module 'cleannlp' not found. Install with: pip install cleannlp
4. stop(msg, call. = (msg == ""))
3. assert(!is.null(disc$required_module_path), "Python module 'cleannlp' not found. Install with:\n pip install cleannlp")
2. check_python()
1. cnlp_init_spacy("/usr/local/lib/python3.6/")
I am fairly certain the python package is installed successfully, inferring this from the following:
(base) redapemusic35#mythinker:~$ pip install cleannlp
Processing ./.cache/pip/wheels/1e/23/e6/a201f9e10a6664d0639453ee4f19bba7baf8544e9e82b18d1b/cleannlp-1.0.3-py3- none-any.whl
Requirement already satisfied: spacy in ./anaconda3/lib/python3.7/site-packages (from cleannlp) (2.2.3)
Requirement already satisfied: plac<1.2.0,>=0.9.6 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (1.1.3)
Requirement already satisfied: setuptools in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (45.2.0.post20200210)
Requirement already satisfied: srsly<1.1.0,>=0.1.0 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (1.0.2)
Requirement already satisfied: blis<0.5.0,>=0.4.0 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (0.4.1)
Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (1.0.2)
Requirement already satisfied: numpy>=1.15.0 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (1.18.1)
Requirement already satisfied: thinc<7.4.0,>=7.3.0 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (7.3.1)
Requirement already satisfied: wasabi<1.1.0,>=0.4.0 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (0.6.0)
Requirement already satisfied: requests<3.0.0,>=2.13.0 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (2.22.0)
Requirement already satisfied: preshed<3.1.0,>=3.0.2 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (3.0.2)
Requirement already satisfied: catalogue<1.1.0,>=0.0.7 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (1.0.0)
Requirement already satisfied: cymem<2.1.0,>=2.0.2 in ./anaconda3/lib/python3.7/site-packages (from spacy->cleannlp) (2.0.3)
Requirement already satisfied: tqdm<5.0.0,>=4.10.0 in ./anaconda3/lib/python3.7/site-packages (from thinc<7.4.0,>=7.3.0->spacy->cleannlp) (4.42.1)
Requirement already satisfied: idna<2.9,>=2.5 in ./anaconda3/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy->cleannlp) (2.8)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./anaconda3/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy->cleannlp) (1.25.8)
Requirement already satisfied: certifi>=2017.4.17 in ./anaconda3/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy->cleannlp) (2019.11.28)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./anaconda3/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy->cleannlp)(3.0.4)
Requirement already satisfied: importlib-metadata>=0.20; python_version< "3.8" in ./anaconda3/lib/python3.7/site-packages (from catalogue<1.1.0,>=0.0.7->spacy->cleannlp) (1.5.0)
Requirement already satisfied: zipp>=0.5 in ./anaconda3/lib/python3.7/site-packages (from importlib-metadata>=0.20; python_version < "3.8"->catalogue<1.1.0,>=0.0.7->spacy->cleannlp) (2.2.0)
Installing collected packages: cleannlp
Successfully installed cleannlp-1.0.3
Some things I have tried include
no path in
cnlp_init_spacy()
Which gives me:
Error: Python module 'cleannlp' not found. Install with: pip install cleannlp
4. stop(msg, call. = (msg == ""))
3.
assert(!is.null(disc$required_module_path), "Python module 'cleannlp' not found. Install with:\n pip install cleannlp")
2. check_python()
1. cnlp_init_spacy()
no difference whether I this with either of the backends (both spacy and corenlp) giving me trouble.
sudo pip install
sudo -H pip install
sudo -H pip3 install
and
sudo pip3 install
All of which seem to work fine. I wonder however, if there is a problem with R choosing which installation. So I uninstalled and tried again. Further, I do seem to have any trouble with python outside of R.
It might be that R is using a python environment that doesn't have "cleannlp" installed. You can check this via:
install.packages("reticulate")
library(reticulate)
py_discover_config(required_module="cleannlp")
This should point to your anaconda3 path. In case it is pointing to another environment, e.g. r-miniconda, you can change this with:
Sys.setenv(RETICULATE_PYTHON = path)
where path is you path to anaconda, which in Mac often has the form: "/Users/YOUR_NAME/anaconda3/bin/python"
Now run:
py_discover_config(required_module="cleannlp")
again and check if it does find "cleannlp" in your anaconda3 python environment.
If that worked, then you can now run:
cnlp_download_corenlp()
cnlp_init_corenlp(lang="en")

Resources