I am trying to install rasa NLU using 'pip install rasa' command. The installation ends up with the compatibility error.
Kindly some one into the issue and help me out in resolving the version incompatible issue.
Error:
C:\Users\Desktop\RASA NLU>pip install rasa
Requirement already satisfied: h5py in
c:\users\appdata\local\continuum\anaconda3\lib\site-packages (from
keras-applications>=1.0.6->tensorflow~=1.13.0->rasa) (2.9.0)
Requirement already satisfied: asn1crypto>=0.21.0 in
c:\users\appdata\local\continuum\anaconda3\lib\ site-packages (from
cryptography->python-telegram-bot~=11.0->rasa) (0.24.0)
Requirement already satisfied: click>=5.1 in
c:\users\appdata\local\continuum\anaconda3\lib\site-packages (from
flask~=1.0->rasa-sdk~=1.0.0rc4->rasa) (7.0)
Requirement already satisfied: itsdangerous>=0.24 in c
:\users\appdata\local\continuum\anaconda3 \lib\site- packages (from
flask~=1.0->rasa-sdk~=1.0.0rc4->rasa) (1.1.0)
Requirement already satisfied: Jinja2>=2.10.1 in
c:\users\appdata\local\continuum\anaconda3\lib\site-packages (from
flask~=1.0->rasa-sdk~=1.0.0rc4->rasa) (2.10.1)
Requirement already satisfied: pycparser in
c:\users\appdata\local\continuum\anaconda3\lib\site-packages (from
cffi>=1.11.5->gevent~=1.4->rasa) (2.19)
Requirement already satisfied: docutils<0.16,>=0.10 in
c:\users\appdata\local\continuum \anaconda3 \lib\site-packages (from
botocore<1.13.0,>=1.12.146->boto3~=1.9->rasa) (0.14)
Requirement already satisfied: MarkupSafe>=0.23 in
c:\users\appdata\local\continuum\anaconda3\lib\site-packages (from
Jinja2>=2.10.1->flask~=1.0->rasa-sdk~=1.0.0rc4->rasa) (1.1.1)
**ERROR: mxnet 1.3.1 has requirement numpy<1.15.0,>=1.8.2, but you'll have numpy 1.17.4 which is incompatible.
ERROR: mxnet 1.3.1 has requirement requests<2.19.0,>=2.18.4, but
you'll have requests 2.22.0 which is incompatible.
ERROR: rasa-x 0.22.1 has requirement rasa~=1.4.0, but you'll have rasa
1.0.9 which is incompatible.
ERROR: rasa-x 0.22.1 has requirement sanic~=19.6, but you'll have
sanic 19.3.1 which is incompatible.
ERROR: apixu 0.3.0 has requirement requests==2.21, but you'll have
requests 2.22.0 which is incompatible.**
Installing collected packages: requests Found existing installation:
requests 2.21.0
Uninstalling requests-2.21.0:
Successfully uninstalled requests-2.21.0 Successfully installed
requests-2.22.0
First of all please check your python version it's must be > 3.5
Then Please try your installation with --extra-index-url params
For Installation
sudo python3 -m pip install --extra-index-url rasa
For Upgrade to latest version
sudo python3 -m pip install --extra-index-url rasa --upgrade
Still you can comment here for other errors.
Related
I am new to Python. I have downloaded pysnmp in spyder. But when I run my code, it shows no module named pysnmp.
!pip install pysnmp
Requirement already satisfied: pysnmp in c:\users\maxuser\appdata\local\programs\python\python311\lib\site-packages (4.4.12)
Requirement already satisfied: pysmi in c:\users\maxuser\appdata\local\programs\python\python311\lib\site-packages (from pysnmp) (0.3.4)
Requirement already satisfied: pycryptodomex in c:\users\maxuser\appdata\local\programs\python\python311\lib\site-packages (from pysnmp) (3.17)
Requirement already satisfied: pyasn1>=0.2.3 in c:\users\maxuser\appdata\local\programs\python\python311\lib\site-packages (from pysnmp) (0.4.8)
Requirement already satisfied: ply in c:\users\maxuser\appdata\local\programs\python\python311\lib\site-packages (from pysmi->pysnmp) (3.11)
[notice] A new release of pip available: 22.3.1 -> 23.0
[notice] To update, run: python.exe -m pip install --upgrade pip
But upon running the code this is shown...
File c:\users\maxuser\untitled0.py:1
from pysnmp.entity.rfc3413.oneliner import cmdgen
ModuleNotFoundError: No module named 'pysnmp'
I am trying to install Mito (low code spreadsheet option) into an Anaconda environment. I have managed to create the package and I am running it locally on my machine.
When I try and install it gives me the error in hte last line and I have added all the steps that I followed to get to this point
conda activate mitoenv
[Note: you may need to restart the kernel to use updated packages.]
pip install mitoinstaller
[Requirement already satisfied: mitoinstaller in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (0.0.107)Note: you may need to restart the kernel to use updated packages.
Requirement already satisfied: colorama in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from mitoinstaller) (0.4.4)
Requirement already satisfied: termcolor in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from mitoinstaller) (1.1.0)
Requirement already satisfied: analytics-python in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from mitoinstaller) (1.4.0)
Requirement already satisfied: python-dateutil>2.1 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from analytics-python->mitoinstaller) (2.8.2)
Requirement already satisfied: monotonic>=1.5 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from analytics-python->mitoinstaller) (1.6)
Requirement already satisfied: requests<3.0,>=2.7 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from analytics-python->mitoinstaller) (2.27.1)
Requirement already satisfied: backoff==1.10.0 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from analytics-python->mitoinstaller) (1.10.0)
Requirement already satisfied: six>=1.5 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from analytics-python->mitoinstaller) (1.16.0)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from requests<3.0,>=2.7->analytics-python->mitoinstaller) (2.0.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from requests<3.0,>=2.7->analytics-python->mitoinstaller) (1.26.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from requests<3.0,>=2.7->analytics-python->mitoinstaller) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in c:\users\osjmuller\anaconda_latest\envs\mitoenv\lib\site-packages (from requests<3.0,>=2.7->analytics-python->mitoinstaller) (3.3)]
python -m pip install mitoinstaller:
File "C:\Users\OSJMUL~1\AppData\Local\Temp/ipykernel_18156/784919668.py", line 1
python -m pip install mitoinstaller
^
SyntaxError: invalid syntax
I guess you erroneously added : at the end of last command. From the documentation:
conda create -n mitoenv python=3.8
conda activate mitoenv
python -m pip install mitoinstaller
python -m mitoinstaller install
However, I had some errors after python -m pip install mitoinstaller due to missing dependencies:
(mitoenv) luca#ASUS-ROG:~$ pip install mitoinstaller
Collecting mitoinstaller
Using cached mitoinstaller-0.0.122-py3-none-any.whl
Collecting termcolor
Using cached termcolor-1.1.0-py3-none-any.whl
Requirement already satisfied: colorama in ./.local/lib/python3.8/site-packages (from mitoinstaller) (0.4.4)
Collecting analytics-python
Using cached analytics_python-1.4.0-py2.py3-none-any.whl (15 kB)
Collecting requests<3.0,>=2.7
Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting monotonic>=1.5
Using cached monotonic-1.6-py2.py3-none-any.whl (8.2 kB)
Collecting backoff==1.10.0
Using cached backoff-1.10.0-py2.py3-none-any.whl (31 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: python-dateutil>2.1 in ./.local/lib/python3.8/site-packages (from analytics-python->mitoinstaller) (2.8.1)
Collecting charset-normalizer~=2.0.0
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Installing collected packages: termcolor, monotonic, certifi, urllib3, six, idna, charset-normalizer, backoff, requests, analytics-python, mitoinstaller
ERROR: pips dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
requests-oauthlib 1.3.0 requires oauthlib>=3.0.0, which is not installed.
pandas 1.2.2 requires pytz>=2017.3, which is not installed.
oauth2client 4.1.3 requires httplib2>=0.9.1, which is not installed.
moto 1.3.16.dev122 requires MarkupSafe<2.0, which is not installed.
moto 1.3.16.dev122 requires more-itertools, which is not installed.
moto 1.3.16.dev122 requires pytz, which is not installed.
moto 1.3.16.dev122 requires zipp, which is not installed.
google-api-core 1.26.3 requires packaging>=14.3, which is not installed.
google-api-core 1.26.3 requires pytz, which is not installed.
Successfully installed analytics-python-1.4.0 backoff-1.10.0 certifi-2021.10.8 charset-normalizer-2.0.12 idna-3.3 mitoinstaller-0.0.122 monotonic-1.6 requests-2.27.1 six-1.16.0 termcolor-1.1.0 urllib3-1.26.8
for which I had to first install manually the missing packages:
pip install mitoinstaller
pip install requests-oauthlib
pip install oauth2client
pip install pandas
pip install moto
and finally python -m mitoinstaller install worked.
I am following this tutorial: https://fastmachinelearning.org/hls4ml/setup/QUICKSTART.html
when I give the command:
root#ubuntu:~/Desktop/vivado/hls4ml/example-models$ hls4ml convert -c keras-config.yml
hls4ml: command not found
What should I do? I tried
pip install hls4ml
I get this:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: hls4ml in /home/mojito/.local/lib/python2.7/site-packages (0.2.0)
Requirement already satisfied: numpy in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (1.16.6)
Requirement already satisfied: six in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (1.14.0)
Requirement already satisfied: pyyaml in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (5.3.1)
Requirement already satisfied: h5py in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (2.10.0)
Requirement already satisfied: onnx>=1.4.0 in /home/mojito/.local/lib/python2.7/site-packages (from hls4ml) (1.6.0)
Requirement already satisfied: typing>=3.6.4; python_version < "3.5" in /home/mojito/.local/lib/python2.7/site-packages (from onnx>=1.4.0->hls4ml) (3.7.4.1)
Requirement already satisfied: protobuf in /home/mojito/.local/lib/python2.7/site-packages (from onnx>=1.4.0->hls4ml) (3.11.3)
Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/mojito/.local/lib/python2.7/site-packages (from onnx>=1.4.0->hls4ml) (3.7.4.1)
Requirement already satisfied: setuptools in /home/mojito/.local/lib/python2.7/site-packages (from protobuf->onnx>=1.4.0->hls4ml) (44.1.0)
Try this:
$ git clone https://github.com/hls-fpga-machine-learning/hls4ml.git
$ cd hls4ml/
$ pip install .
Git repo: https://github.com/hls-fpga-machine-learning/models .
Also you can use pip as a module: $ python -m pip <command> [options]
I am trying to create a Data Science project using some Quandl dataset, but am receiving an error on import.
As i know quandl should be imported all in lowercase, as the documentation states here and here, my import goes as follows:
import quandl
Error:
ModuleNotFoundError: No module named 'quandl'
I installed quandl using pip install quandl. My pip list output is:
Package Version
--------------- ---------
asn1crypto 0.24.0
certifi 2019.6.16
cffi 1.12.3
chardet 3.0.4
cryptography 2.7
idna 2.8
inflection 0.3.1
more-itertools 5.0.0
ndg-httpsclient 0.5.1
numpy 1.16.4
pandas 0.24.2
pip 19.1.1
pyasn1 0.4.5
pycparser 2.19
pyOpenSSL 19.0.0
python-dateutil 2.8.0
pytz 2019.1
Quandl 3.4.8
requests 2.22.0
setuptools 41.0.1
six 1.12.0
urllib3 1.25.3
wheel 0.33.4
wincertstore 0.2
I don't have pip3, as I installed Python through my Anaconda installation. I am running a Jupyter Notebook in a virtual environment I created just for this project. Just so you know, python --version output is:
Python 3.7.3
The strange part occurs when i try running a one line python script with import quandl. This time the program runs without errors, which means that the cause of the ModuleNotFoundError: No module named 'quandl' is the jupyter notebook, which is not being able to properly find the quandl module.
As a last resource, I tried installing quandl inside jupyter notebook:
!pip install quandl
import quandl
Output:
Requirement already satisfied: quandl in c:\users\not_me\.conda\envs\quant\lib\site-packages (3.4.8)
Requirement already satisfied: pandas>=0.14 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (0.24.2)
Requirement already satisfied: pyOpenSSL in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (19.0.0)
Requirement already satisfied: inflection>=0.3.1 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (0.3.1)
Requirement already satisfied: numpy>=1.8 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (1.16.4)
Requirement already satisfied: more-itertools<=5.0.0 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (5.0.0)
Requirement already satisfied: pyasn1 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (0.4.5)
Requirement already satisfied: python-dateutil in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (2.8.0)
Requirement already satisfied: six in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (1.12.0)
Requirement already satisfied: ndg-httpsclient in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (0.5.1)
Requirement already satisfied: requests>=2.7.0 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from quandl) (2.22.0)
Requirement already satisfied: pytz>=2011k in c:\users\not_me\.conda\envs\quant\lib\site-packages (from pandas>=0.14->quandl) (2019.1)
Requirement already satisfied: cryptography>=2.3 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from pyOpenSSL->quandl) (2.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from requests>=2.7.0->quandl) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from requests>=2.7.0->quandl) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from requests>=2.7.0->quandl) (2019.6.16)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from requests>=2.7.0->quandl) (1.25.3)
Requirement already satisfied: asn1crypto>=0.21.0 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from cryptography>=2.3->pyOpenSSL->quandl) (0.24.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\not_me\.conda\envs\quant\lib\site-packages (from cryptography>=2.3->pyOpenSSL->quandl) (1.12.3)
Requirement already satisfied: pycparser in c:\users\not_me\.conda\envs\quant\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.3->pyOpenSSL->quandl) (2.19)
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-614264e6071a> in <module>
1 get_ipython().system('pip install quandl')
----> 3 import quandl
ModuleNotFoundError: No module named 'quandl'
Try pip3 install quandl . It usually works for Python 3.x
You can use pip using the module syntax rather than the standalone CLI for when you want to make sure you are using the version of pip associated with that interpreter.
python -m pip install quandl
Or, since you are using Conda, you could also try installing quandl with the conda CLI.
conda install quandl (or whatever the package's name is for conda).
Try installing it by running
!pip install quandl
In a cell in a Jupyter notebook. If you have things set up correctly, there's a chance that will be the same version of pip you need.
The problem was that Jupyter was not properly recognizing my virtual environment. I found my answer here, the workaround is pretty self explanatory.
I was under the impression that --user was only needed when using system python on the mac.
However, when making a venv and trying to plain pip install things, I was running into errors that were of the system privilege type that usually occur when using system pip without --user.
pip install tensorflow --user
Why does this error occur when on a venv? I would think everything should be installed to the venv's bin? It seems --user still fixes it, which I found solved the problem of pip installing it, but something feels wrong.
What is the correct way to dev with python on the mac? I thought venvs were the answer.
pip install librosa --upgrade
Collecting librosa Requirement not upgraded as not directly required: audioread>=2.0.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (2.1.5) Requirement not upgraded as not directly
required: decorator>=3.0.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (4.1.2) Requirement not upgraded as not directly
required: six>=1.3 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (1.11.0) Requirement not upgraded as not directly
required: scipy>=0.14.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (0.19.1) Requirement not upgraded as not directly
required: numpy>=1.8.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (1.13.3) Requirement not upgraded as not directly
required: joblib>=0.7.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (0.11) Requirement not upgraded as not directly
required: resampy>=0.2.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (0.2.0) Collecting scikit-learn!=0.19.0,>=0.14.0 (from
librosa) Downloading
https://files.pythonhosted.org/packages/de/d3/47c2c9842d61042f3c5f082f677dbe05899b077272105906a3249fe8c5da/scikit_learn-0.19.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (8.0MB)
100% |████████████████████████████████| 8.0MB 2.0MB/s Requirement not upgraded as not directly required: numba>=0.32 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from resampy>=0.2.0->librosa) (0.37.0) Requirement not upgraded as
not directly required: llvmlite>=0.22.0.dev0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from numba>=0.32->resampy>=0.2.0->librosa) (0.22.0) Requirement not
upgraded as not directly required: enum34 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from numba>=0.32->resampy>=0.2.0->librosa) (1.1.6)
Requirement not upgraded as not directly required: funcsigs in /Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages (from numba>=0.32->resampy>=0.2.0->librosa) (1.0.2)
Requirement not upgraded as not directly required: singledispatch in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from numba>=0.32->resampy>=0.2.0->librosa) (3.4.0.3)
Installing collected packages: scikit-learn, librosa
Found existing installation: scikit-learn 0.19.0 Cannot uninstall 'scikit-learn'.
It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.