ModuleNotFoundError: No module named 'nn_pruning.modules.quantization' - python

Goal: install nn_pruning.
Kernel: conda_pytorch_p36. I performed Restart & Run All.
It seems to recognise the optimize_model import, but not other functions. Even though they are from the same nn_pruning library.
pip install nn_pruning | pip install -U nn_pruning
Requirement already satisfied: nn_pruning in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.2)
Requirement already satisfied: torch>=1.6 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from nn_pruning) (1.8.1+cpu)
Requirement already satisfied: transformers>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from nn_pruning) (4.15.0)
Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from nn_pruning) (8.0.1)
Requirement already satisfied: scikit-learn>=0.24 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from nn_pruning) (0.24.2)
Requirement already satisfied: joblib>=0.11 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn>=0.24->nn_pruning) (1.0.1)
Requirement already satisfied: numpy>=1.13.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn>=0.24->nn_pruning) (1.19.5)
Requirement already satisfied: scipy>=0.19.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn>=0.24->nn_pruning) (1.5.4)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn>=0.24->nn_pruning) (2.1.0)
Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from torch>=1.6->nn_pruning) (0.8)
Requirement already satisfied: typing-extensions in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from torch>=1.6->nn_pruning) (3.10.0.0)
Requirement already satisfied: huggingface-hub<1.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (0.2.1)
Requirement already satisfied: tqdm>=4.27 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (4.62.3)
Requirement already satisfied: packaging>=20.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (21.3)
Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (3.0.12)
Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (5.4.1)
Requirement already satisfied: requests in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (2.25.1)
Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (0.0.46)
Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (0.10.3)
Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (4.5.0)
Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers>=4.3.0->nn_pruning) (2021.4.4)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging>=20.0->transformers>=4.3.0->nn_pruning) (2.4.7)
Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->transformers>=4.3.0->nn_pruning) (3.4.1)
Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests->transformers>=4.3.0->nn_pruning) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests->transformers>=4.3.0->nn_pruning) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests->transformers>=4.3.0->nn_pruning) (1.26.5)
Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests->transformers>=4.3.0->nn_pruning) (2021.5.30)
Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers>=4.3.0->nn_pruning) (1.16.0)
Note: you may need to restart the kernel to use updated packages.
import functools
from tqdm import tqdm
import torch
#from datasets import load_dataset
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
from nn_pruning.inference_model_patcher import optimize_model
from nn_pruning.modules.quantization import prepare_static, quantize # !
Traceback:
ModuleNotFoundError: No module named 'nn_pruning.modules.quantization'

An Issue has since been approved to amend this.

Related

Using terminal on Jupyter Lab not working

I am working on Jupyter Lab, and I opened the terminal. I tried to install the module spacy, but when I came to the part where it said $ python ..., it said /bin/bash: python: command not found.
My code:
$ pip install -U pip setuptools wheel
$ pip install -U spacy
$ python -m spacy download en_core_web_sm
The output:
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/local/lib/python3.8/dist-packages (23.0)
Requirement already satisfied: setuptools in /home/repl/.local/lib/python3.8/site-packages (67.2.0)
Requirement already satisfied: wheel in /usr/local/lib/python3.8/dist-packages (0.38.4)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: spacy in /home/repl/.local/lib/python3.8/site-packages (3.5.0)
Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /usr/local/lib/python3.8/dist-packages (from spacy) (3.0.8)
Requirement already satisfied: typer<0.8.0,>=0.3.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (0.7.0)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4 in /usr/local/lib/python3.8/dist-packages (from spacy) (1.10.2)
Requirement already satisfied: requests<3.0.0,>=2.13.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (2.28.1)
Requirement already satisfied: wasabi<1.2.0,>=0.9.1 in /usr/local/lib/python3.8/dist-packages (from spacy) (0.10.1)
Requirement already satisfied: numpy>=1.15.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (1.23.2)
Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (21.3)
Requirement already satisfied: langcodes<4.0.0,>=3.2.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (3.3.0)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.8/dist-packages (from spacy) (3.1.2)
Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /usr/local/lib/python3.8/dist-packages (from spacy) (2.0.7)
Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.11 in /home/repl/.local/lib/python3.8/site-packages (from spacy) (3.0.12)
Requirement already satisfied: srsly<3.0.0,>=2.4.3 in /usr/local/lib/python3.8/dist-packages (from spacy) (2.4.5)
Requirement already satisfied: pathy>=0.10.0 in /home/repl/.local/lib/python3.8/site-packages (from spacy) (0.10.1)
Requirement already satisfied: smart-open<7.0.0,>=5.2.1 in /usr/local/lib/python3.8/dist-packages (from spacy) (5.2.1)
Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in /usr/local/lib/python3.8/dist-packages (from spacy) (2.0.8)
Requirement already satisfied: tqdm<5.0.0,>=4.38.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (4.64.0)
Requirement already satisfied: thinc<8.2.0,>=8.1.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (8.1.5)
Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (1.0.9)
Requirement already satisfied: setuptools in /home/repl/.local/lib/python3.8/site-packages (from spacy) (67.2.0)
Requirement already satisfied: spacy-loggers<2.0.0,>=1.0.0 in /usr/local/lib/python3.8/dist-packages (from spacy) (1.0.3)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.8/dist-packages (from packaging>=20.0->spacy) (3.0.9)
Requirement already satisfied: typing-extensions>=4.1.0 in /usr/local/lib/python3.8/dist-packages (from pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4->spacy) (4.3.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests<3.0.0,>=2.13.0->spacy) (2.8)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.8/dist-packages (from requests<3.0.0,>=2.13.0->spacy) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests<3.0.0,>=2.13.0->spacy) (2019.11.28)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests<3.0.0,>=2.13.0->spacy) (1.25.8)
Requirement already satisfied: confection<1.0.0,>=0.0.1 in /usr/local/lib/python3.8/dist-packages (from thinc<8.2.0,>=8.1.0->spacy) (0.0.3)
Requirement already satisfied: blis<0.8.0,>=0.7.8 in /usr/local/lib/python3.8/dist-packages (from thinc<8.2.0,>=8.1.0->spacy) (0.7.9)
Requirement already satisfied: click<9.0.0,>=7.1.1 in /usr/local/lib/python3.8/dist-packages (from typer<0.8.0,>=0.3.0->spacy) (8.1.3)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.8/dist-packages (from jinja2->spacy) (2.1.1)
/bin/bash: python: command not found
And the whole point of this was to load the spacy 'en_core_web_sm' tool.
If this is unfixable, then what other ways are there to load the en_core_web_sm model?

when using train tab in stable diffusion webui, it says can't find Deepdanbooru

When i was running stable-diffusion-webui's preprocess images feature on MacBookpro M1 + macos12.6 + python3.10, it says:
File "user/Desktop/stable-diffusion-webui/modules/deepbooru.py", line 88, in get_deepbooru_tags_model
import deepdanbooru as dd
ModuleNotFoundError: No module named 'deepdanbooru'
somebody have any ideas how to slove this problem?
i also tried
git and reinstall through pip:
tensorflow-macos
tensorflow-io
deepdanbooru
but they all doesn't works
and im already install:
tensorflow-macos 2.1.0, tensorflow-io 0.27.0
when i run pip install deepdanbooru
result is:
Requirement already satisfied: deepdanbooru in /opt/homebrew/lib/python3.10/site-packages/deepdanbooru-1.0.0-py3.10.egg (1.0.0)
Requirement already satisfied: Click>=7.0 in /opt/homebrew/lib/python3.10/site-packages (from deepdanbooru) (8.1.3)
Requirement already satisfied: numpy>=1.16.2 in /opt/homebrew/lib/python3.10/site-packages (from deepdanbooru) (1.23.5)
Requirement already satisfied: scikit-image>=0.15.0 in /opt/homebrew/lib/python3.10/site-packages (from deepdanbooru) (0.19.3)
Requirement already satisfied: requests>=2.22.0 in /opt/homebrew/lib/python3.10/site-packages (from deepdanbooru) (2.28.1)
Requirement already satisfied: six>=1.13.0 in /opt/homebrew/lib/python3.10/site-packages (from deepdanbooru) (1.16.0)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.10/site-packages (from requests>=2.22.0->deepdanbooru) (3.4)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.10/site-packages (from requests>=2.22.0->deepdanbooru) (2022.9.24)
Requirement already satisfied: charset-normalizer<3,>=2 in /opt/homebrew/lib/python3.10/site-packages (from requests>=2.22.0->deepdanbooru) (2.1.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/homebrew/lib/python3.10/site-packages (from requests>=2.22.0->deepdanbooru) (1.26.12)
Requirement already satisfied: tifffile>=2019.7.26 in /opt/homebrew/lib/python3.10/site-packages (from scikit-image>=0.15.0->deepdanbooru) (2022.10.10)
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in /opt/homebrew/lib/python3.10/site-packages (from scikit-image>=0.15.0->deepdanbooru) (9.3.0)
Requirement already satisfied: scipy>=1.4.1 in /opt/homebrew/lib/python3.10/site-packages (from scikit-image>=0.15.0->deepdanbooru) (1.9.3)
Requirement already satisfied: packaging>=20.0 in /opt/homebrew/lib/python3.10/site-packages (from scikit-image>=0.15.0->deepdanbooru) (21.3)
Requirement already satisfied: imageio>=2.4.1 in /opt/homebrew/lib/python3.10/site-packages (from scikit-image>=0.15.0->deepdanbooru) (2.22.4)
Requirement already satisfied: networkx>=2.2 in /opt/homebrew/lib/python3.10/site-packages (from scikit-image>=0.15.0->deepdanbooru) (2.8.8)
Requirement already satisfied: PyWavelets>=1.1.1 in /opt/homebrew/lib/python3.10/site-packages (from scikit-image>=0.15.0->deepdanbooru) (1.4.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/homebrew/lib/python3.10/site-packages (from packaging>=20.0->scikit-image>=0.15.0->deepdanbooru) (3.0.9)```

I cannot importing KERAS tuner using anaconda

I am trying to import Keras tuner using anaconda and I think it has some issue with its installation because when I am executing the code it keeps telling me that there is no such a model with this name, and I tried with many other names but not worked, then I noticed that there is some kind of warnings in the installation but not understand it as shown below
when I did each one of these commands
pip install keras-tuner
pip install kerastuner
pip install keras_tuner
the response was:
WARNING: Ignoring invalid distribution -ip (d:\aapython3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\aapython3.9\lib\site-packages)
Requirement already satisfied: keras-tuner in d:\aapython3.9\lib\site-packages (1.0.4)
Requirement already satisfied: numpy in d:\aapython3.9\lib\site-packages (from keras-tuner) (1.19.5)
Requirement already satisfied: requests in d:\aapython3.9\lib\site-packages (from keras-tuner) (2.26.0)
Requirement already satisfied: tensorboard in d:\aapython3.9\lib\site-packages (from keras-tuner) (2.6.0)
Requirement already satisfied: kt-legacy in d:\aapython3.9\lib\site-packages (from keras-tuner) (1.0.4)
Requirement already satisfied: ipython in d:\aapython3.9\lib\site-packages (from keras-tuner) (7.22.0)
Requirement already satisfied: scipy in d:\aapython3.9\lib\site-packages (from keras-tuner) (1.6.2)
Requirement already satisfied: packaging in d:\aapython3.9\lib\site-packages (from keras-tuner) (21.0)
Requirement already satisfied: jedi>=0.16 in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (0.18.0)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (3.0.18)
Requirement already satisfied: pickleshare in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (0.7.5)
Requirement already satisfied: setuptools>=18.5 in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (49.2.1)
Requirement already satisfied: pygments in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (2.8.1)
Requirement already satisfied: decorator in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (5.0.7)
Requirement already satisfied: colorama in c:\users\user\appdata\roaming\python\python39\site-packages (from ipython->keras-tuner) (0.4.4)
Requirement already satisfied: traitlets>=4.2 in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (5.0.5)
Requirement already satisfied: backcall in d:\aapython3.9\lib\site-packages (from ipython->keras-tuner) (0.2.0)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in d:\aapython3.9\lib\site-packages (from jedi>=0.16->ipython->keras-tuner) (0.8.2)
Requirement already satisfied: wcwidth in d:\aapython3.9\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython->keras-tuner) (0.2.5)
Requirement already satisfied: ipython-genutils in d:\aapython3.9\lib\site-packages (from traitlets>=4.2->ipython->keras-tuner) (0.2.0)
Requirement already satisfied: pyparsing>=2.0.2 in d:\aapython3.9\lib\site-packages (from packaging->keras-tuner) (2.4.7)
Requirement already satisfied: certifi>=2017.4.17 in d:\aapython3.9\lib\site-packages (from requests->keras-tuner) (2021.5.30)
Requirement already satisfied: charset-normalizer~=2.0.0 in d:\aapython3.9\lib\site-packages (from requests->keras-tuner) (2.0.4)
Requirement already satisfied: idna<4,>=2.5 in d:\aapython3.9\lib\site-packages (from requests->keras-tuner) (3.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\aapython3.9\lib\site-packages (from requests->keras-tuner) (1.26.6)
Requirement already satisfied: wheel>=0.26 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (0.37.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (1.35.0)
Requirement already satisfied: absl-py>=0.4 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (0.13.0)
Requirement already satisfied: werkzeug>=0.11.15 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (2.0.1)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (1.8.0)
Requirement already satisfied: grpcio>=1.24.3 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (1.39.0)
Requirement already satisfied: markdown>=2.6.8 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (3.3.4)
Requirement already satisfied: protobuf>=3.6.0 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (3.15.6)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (0.4.5)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in d:\aapython3.9\lib\site-packages (from tensorboard->keras-tuner) (0.6.1)
Requirement already satisfied: six in c:\users\user\appdata\roaming\python\python39\site-packages (from absl-py>=0.4->tensorboard->keras-tuner) (1.15.0)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in d:\aapython3.9\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->keras-tuner) (4.2.2)
Requirement already satisfied: rsa<5,>=3.1.4 in d:\aapython3.9\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->keras-tuner) (4.7.2)
Requirement already satisfied: pyasn1-modules>=0.2.1 in d:\aapython3.9\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->keras-tuner) (0.2.8)
Requirement already satisfied: requests-oauthlib>=0.7.0 in d:\aapython3.9\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->keras-tuner) (1.3.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in d:\aapython3.9\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard->keras-tuner) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in d:\aapython3.9\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->keras-tuner) (3.1.1)
WARNING: Ignoring invalid distribution -ip (d:\aapython3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\aapython3.9\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\aapython3.9\lib\site-packages)
then when I am executing my code I got this:
Traceback (most recent call last):
File "ExpMnistTunerE1.py", line 23, in
from kerastuner.tuners import RandomSearch
ModuleNotFoundError: No module named 'kerastuner'
enter image description here

Jupyter Notebook command failing in Qiskit

I have Qiskit installed via Anaconda and a virtual environment set up in Python 3.8. When I run the command jupyter notebook in the Anaconda prompt I get an error. I'm not sure what the problem is. How do I fix it?
(.venv) C:\Users\brenm>pip install qiskit
Requirement already satisfied: qiskit in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (0.23.1)
Requirement already satisfied: qiskit-ignis==0.5.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.5.1)
Requirement already satisfied: qiskit-ibmq-provider==0.11.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.11.1)
Requirement already satisfied: qiskit-terra==0.16.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.16.1)
Requirement already satisfied: qiskit-aqua==0.8.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.8.1)
Requirement already satisfied: qiskit-aer==0.7.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.7.1)
Requirement already satisfied: pybind11>=2.4 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (2.6.1)
Requirement already satisfied: qiskit-terra==0.16.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.16.1)
Requirement already satisfied: scipy>=1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.5.4)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: cython>=0.27.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (0.29.21)
Requirement already satisfied: psutil>=5 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (5.7.3)
Requirement already satisfied: qiskit-terra==0.16.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.16.1)
Requirement already satisfied: scipy>=1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.5.4)
Requirement already satisfied: qiskit-ignis==0.5.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.5.1)
Requirement already satisfied: fastdtw in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (0.3.4)
Requirement already satisfied: scikit-learn>=0.20.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (0.23.2)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: pandas in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (1.1.5)
Requirement already satisfied: dlx in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (1.0.4)
Requirement already satisfied: yfinance in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (0.1.55)
Requirement already satisfied: docplex in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (2.19.202)
Requirement already satisfied: sympy>=1.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (1.7.1)
Requirement already satisfied: h5py in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (3.1.0)
Requirement already satisfied: retworkx>=0.5.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (0.7.2)
Requirement already satisfied: setuptools>=40.1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (51.0.0.post20201207)
Requirement already satisfied: quandl in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (3.5.3)
Requirement already satisfied: requests in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (2.25.0)
Requirement already satisfied: six in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (1.15.0)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from pandas->qiskit-aqua==0.8.1->qiskit) (2.8.1)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: pytz>=2017.2 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from pandas->qiskit-aqua==0.8.1->qiskit) (2020.4)
Requirement already satisfied: six in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (1.15.0)
Requirement already satisfied: requests in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (2.25.0)
Requirement already satisfied: urllib3>=1.21.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-ibmq-provider==0.11.1->qiskit) (1.26.2)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from pandas->qiskit-aqua==0.8.1->qiskit) (2.8.1)
Requirement already satisfied: qiskit-terra==0.16.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.16.1)
Requirement already satisfied: requests-ntlm>=1.1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-ibmq-provider==0.11.1->qiskit) (1.1.0)
Requirement already satisfied: nest-asyncio!=1.1.0,>=1.0.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-ibmq-provider==0.11.1->qiskit) (1.4.3)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: websockets>=8 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-ibmq-provider==0.11.1->qiskit) (8.1)
Requirement already satisfied: qiskit-terra==0.16.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit) (0.16.1)
Requirement already satisfied: scikit-learn>=0.20.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (0.23.2)
Requirement already satisfied: scipy>=1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.5.4)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: setuptools>=40.1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (51.0.0.post20201207)
Requirement already satisfied: dill>=0.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-terra==0.16.1->qiskit) (0.3.3)
Requirement already satisfied: psutil>=5 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (5.7.3)
Requirement already satisfied: fastjsonschema>=2.10 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-terra==0.16.1->qiskit) (2.14.5)
Requirement already satisfied: python-constraint>=1.4 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-terra==0.16.1->qiskit) (1.4.0)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from pandas->qiskit-aqua==0.8.1->qiskit) (2.8.1)
Requirement already satisfied: scipy>=1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.5.4)
Requirement already satisfied: networkx>=2.2 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-terra==0.16.1->qiskit) (2.5)
Requirement already satisfied: ply>=3.10 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-terra==0.16.1->qiskit) (3.11)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: sympy>=1.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (1.7.1)
Requirement already satisfied: retworkx>=0.5.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (0.7.2)
Requirement already satisfied: jsonschema>=2.6 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-terra==0.16.1->qiskit) (3.2.0)
Requirement already satisfied: six in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (1.15.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from jsonschema>=2.6->qiskit-terra==0.16.1->qiskit) (0.17.3)
Requirement already satisfied: setuptools>=40.1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (51.0.0.post20201207)
Requirement already satisfied: attrs>=17.4.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from jsonschema>=2.6->qiskit-terra==0.16.1->qiskit) (20.3.0)
Requirement already satisfied: decorator>=4.3.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from networkx>=2.2->qiskit-terra==0.16.1->qiskit) (4.4.2)
Requirement already satisfied: inflection>=0.3.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from quandl->qiskit-aqua==0.8.1->qiskit) (0.5.1)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from pandas->qiskit-aqua==0.8.1->qiskit) (2.8.1)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: pandas in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (1.1.5)
Requirement already satisfied: more-itertools in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from quandl->qiskit-aqua==0.8.1->qiskit) (8.6.0)
Requirement already satisfied: requests in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (2.25.0)
Requirement already satisfied: six in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (1.15.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from requests->docplex->qiskit-aqua==0.8.1->qiskit) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from requests->docplex->qiskit-aqua==0.8.1->qiskit) (2.10)
Requirement already satisfied: urllib3>=1.21.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-ibmq-provider==0.11.1->qiskit) (1.26.2)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from requests->docplex->qiskit-aqua==0.8.1->qiskit) (3.0.4)
Requirement already satisfied: ntlm-auth>=1.0.2 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.11.1->qiskit) (1.5.0)
Requirement already satisfied: requests in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (2.25.0)
Requirement already satisfied: cryptography>=1.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.11.1->qiskit) (3.3.1)
Requirement already satisfied: six in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (1.15.0)
Requirement already satisfied: cffi>=1.12 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.11.1->qiskit) (1.14.4)
Requirement already satisfied: pycparser in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from cffi>=1.12->cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.11.1->qiskit) (2.20)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from scikit-learn>=0.20.0->qiskit-aqua==0.8.1->qiskit) (2.1.0)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: joblib>=0.11 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from scikit-learn>=0.20.0->qiskit-aqua==0.8.1->qiskit) (1.0.0)
Requirement already satisfied: scipy>=1.0 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.5.4)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: mpmath>=0.19 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from sympy>=1.3->qiskit-aqua==0.8.1->qiskit) (1.1.0)
Requirement already satisfied: lxml>=4.5.1 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from yfinance->qiskit-aqua==0.8.1->qiskit) (4.6.2)
Requirement already satisfied: requests in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from docplex->qiskit-aqua==0.8.1->qiskit) (2.25.0)
Requirement already satisfied: pandas in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aqua==0.8.1->qiskit) (1.1.5)
Requirement already satisfied: numpy>=1.16.3 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from qiskit-aer==0.7.1->qiskit) (1.19.4)
Requirement already satisfied: multitasking>=0.0.7 in c:\users\brenm\anaconda3\envs.venv\lib\site-packages (from yfinance->qiskit-aqua==0.8.1->qiskit) (0.0.9)
(.venv) C:\Users\brenm>jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.'
Try
$ python -m notebook
If this still fails, try
$ python -m pip install jupyter --user
$ jupyter notebook

fbprophet Error : AttributeError: 'StanModel' object has no attribute 'fit_class'AttributeError: 'StanModel' object has no attribute 'fit_class'

I am trying to use fbprophet have installed all required packages. Please refer to below package details.
Requirement already satisfied: fbprophet in c:\programdata\anaconda3\lib\site-packages (0.7.1)
Requirement already satisfied: Cython>=0.22 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (0.29.21)
Requirement already satisfied: cmdstanpy==0.9.5 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (0.9.5)
Requirement already satisfied: pystan>=2.14 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (2.19.1.1)
Requirement already satisfied: numpy>=1.15.4 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (1.19.2)
Requirement already satisfied: pandas>=1.0.4 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (1.1.3)
Requirement already satisfied: matplotlib>=2.0.0 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (3.3.2)
Requirement already satisfied: LunarCalendar>=0.0.9 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (0.0.9)
Requirement already satisfied: convertdate>=2.1.2 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (2.2.0)
Requirement already satisfied: holidays>=0.10.2 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (0.10.4)
Requirement already satisfied: setuptools-git>=1.2 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (1.2)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (2.8.1)
Requirement already satisfied: tqdm>=4.36.1 in c:\programdata\anaconda3\lib\site-packages (from fbprophet) (4.50.2)
Requirement already satisfied: pytz>=2017.2 in c:\programdata\anaconda3\lib\site-packages (from pandas>=1.0.4->fbprophet) (2019.3)
Requirement already satisfied: pillow>=6.2.0 in c:\programdata\anaconda3\lib\site-packages (from matplotlib>=2.0.0->fbprophet) (8.0.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\programdata\anaconda3\lib\site-packages (from matplotlib>=2.0.0->fbprophet) (2.4.7)
Requirement already satisfied: cycler>=0.10 in c:\programdata\anaconda3\lib\site-packages (from matplotlib>=2.0.0->fbprophet) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib>=2.0.0->fbprophet) (1.3.0)
Requirement already satisfied: certifi>=2020.06.20 in c:\programdata\anaconda3\lib\site-packages (from matplotlib>=2.0.0->fbprophet) (2020.6.20)
Requirement already satisfied: ephem>=3.7.5.3 in c:\programdata\anaconda3\lib\site-packages (from LunarCalendar>=0.0.9->fbprophet) (3.7.7.1)
Requirement already satisfied: pymeeus<=1,>=0.3.6 in c:\programdata\anaconda3\lib\site-packages (from convertdate>=2.1.2->fbprophet) (0.3.7)
Requirement already satisfied: korean-lunar-calendar in c:\programdata\anaconda3\lib\site-packages (from holidays>=0.10.2->fbprophet) (0.2.1)
Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from holidays>=0.10.2->fbprophet) (1.15.0)
But while fitting model I am getting error "AttributeError: 'StanModel' object has no attribute 'fit_class'"
Can anyone please help me how to resolve this error
Also getting below warning when tried to load model
model = Prophet()
WARNING:pystan:No module named 'stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_4174861822198299618'
WARNING:pystan:Something went wrong while unpickling the StanModel. Consider recompiling.
Use prophet instead of fbprophet .
pip install pystan==2.19.1.1
pip install prophet

Categories