I wanted to automate sending messages on WhatsApp from Google Colab using the pywhatkit library. So far I have tried doing:
pip install pywhatkit
Output:
Requirement already satisfied: pywhatkit in /usr/local/lib/python3.7/dist-packages (5.3)
Requirement already satisfied: wikipedia in /usr/local/lib/python3.7/dist-packages (from pywhatkit) (1.4.0)
Requirement already satisfied: pyautogui in /usr/local/lib/python3.7/dist-packages (from pywhatkit) (0.9.53)
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from pywhatkit) (2.23.0)
Requirement already satisfied: Pillow in /usr/local/lib/python3.7/dist-packages (from pywhatkit) (7.1.2)
Requirement already satisfied: mouseinfo in /usr/local/lib/python3.7/dist-packages (from pyautogui->pywhatkit) (0.1.3)
Requirement already satisfied: pyscreeze>=0.1.21 in /usr/local/lib/python3.7/dist-packages (from pyautogui->pywhatkit) (0.1.28)
Requirement already satisfied: pygetwindow>=0.0.5 in /usr/local/lib/python3.7/dist-packages (from pyautogui->pywhatkit) (0.0.9)
Requirement already satisfied: PyTweening>=1.0.1 in /usr/local/lib/python3.7/dist-packages (from pyautogui->pywhatkit) (1.0.4)
Requirement already satisfied: python3-Xlib in /usr/local/lib/python3.7/dist-packages (from pyautogui->pywhatkit) (0.15)
Requirement already satisfied: pymsgbox in /usr/local/lib/python3.7/dist-packages (from pyautogui->pywhatkit) (1.0.9)
Requirement already satisfied: pyrect in /usr/local/lib/python3.7/dist-packages (from pygetwindow>=0.0.5->pyautogui->pywhatkit) (0.2.0)
Requirement already satisfied: pyperclip in /usr/local/lib/python3.7/dist-packages (from mouseinfo->pyautogui->pywhatkit) (1.8.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->pywhatkit) (2021.10.8)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->pywhatkit) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->pywhatkit) (2.10)
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->pywhatkit) (1.24.3)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.7/dist-packages (from wikipedia->pywhatkit) (4.6.3)
I have also tried to see if pip list has it installed and it says it has:
pip list
Output:
....
....
pywhatkit 5.3
....
....
When I try to import it shows error.
import pywhatkit
Output:
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-16-54f6f476dc6e> in <module>()
----> 1 import pywhatkit
4 frames
/usr/lib/python3.7/os.py in __getitem__(self, key)
679 except KeyError:
680 # raise KeyError with the original key value
--> 681 raise KeyError(key) from None
682 return self.decodevalue(value)
683
KeyError: 'DISPLAY'
What is the workaround or solution to this problem?
Related
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 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'm trying to run a python file that utilizes easyocr but despite a successful install, I can't get it to recognize that I have easyocr installed. Does anyone know why that is?
Please see below for the install and response in Anaconda:
(base) C:\Users\[username]\Desktop >pip install easyocr
Collecting easyocr
Using cached easyocr-1.4.1-py3-none-any.whl (63.6 MB)
Requirement already satisfied: Pillow<8.3.0 in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (8.2.0)
Requirement already satisfied: numpy in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (1.19.2)
Requirement already satisfied: scipy in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (1.6.2)
Requirement already satisfied: opencv-python-headless in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (4.5.1.48)
Requirement already satisfied: python-bidi in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (0.4.2)
Requirement already satisfied: torch in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (1.8.1)
Requirement already satisfied: torchvision>=0.5 in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (0.9.1)
Requirement already satisfied: scikit-image in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (0.18.1)
Requirement already satisfied: PyYAML in c:\users\[username]\anaconda3\lib\site-packages (from easyocr) (5.4.1)
Requirement already satisfied: typing-extensions in c:\users\[username]\anaconda3\lib\site-packages (from torch->easyocr) (3.7.4.3)
Requirement already satisfied: six in c:\users\[username]\anaconda3\lib\site-packages (from python-bidi->easyocr) (1.15.0)
Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in c:\users\[username]\anaconda3\lib\site-packages (from scikit-image->easyocr) (3.4.1)
Requirement already satisfied: networkx>=2.0 in c:\users\[username]\anaconda3\lib\site-packages (from scikit-image->easyocr) (2.5.1)
Requirement already satisfied: imageio>=2.3.0 in c:\users\[username]\anaconda3\lib\site-packages (from scikit-image->easyocr) (2.9.0)
Requirement already satisfied: tifffile>=2019.7.26 in c:\users\[username]\anaconda3\lib\site-packages (from scikit-image->easyocr) (2021.4.8)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\[username]\anaconda3\lib\site-packages (from scikit-image->easyocr) (1.1.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\[username]\anaconda3\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (1.3.1)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\[username]\anaconda3\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\[username]\anaconda3\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (2.8.1)
Requirement already satisfied: cycler>=0.10 in c:\users\[username]\anaconda3\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->easyocr) (0.10.0)
Requirement already satisfied: decorator<5,>=4.3 in c:\users\[username]\anaconda3\lib\site-packages (from networkx>=2.0->scikit-image->easyocr) (4.4.2)
Installing collected packages: easyocr
Successfully installed easyocr-1.4.1
(base) C:\Users\[username]\Desktop\test.py
Traceback (most recent call last):
File "C:\Users\[username]\Desktop\test.py", line 9, in <module>
from ocr import OCR
File "C:\Users\[username]\Desktop\ ocr.py", line 3, in <module>
import easyocr
ModuleNotFoundError: No module named 'easyocr'
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
When i try to import pymc3 module on my Jupyter notebook
using import pymc3 as pm i get the following error
```ImportError Traceback (most recent call last)
<ipython-input-5-2e5c536b7c65> in <module>
----> 1 import pymc3 as pm
~\Anaconda3_2\lib\site-packages\pymc3\__init__.py in <module>
19 from . import sampling
20
---> 21 from .diagnostics import *
22 from .backends.tracetab import *
23 from .backends import save_trace, load_trace
~\Anaconda3_2\lib\site-packages\pymc3\diagnostics.py in <module>
2
3 import numpy as np
----> 4 from .stats import statfunc, autocov
5 from .util import get_default_varnames
6 from .backends.base import MultiTrace
ImportError: cannot import name 'statfunc'```
I have pymc3 installed. See below. I am not sure what is needed to import statfunc. Can someone advise?
```base) C:\Users\gosal\Anaconda3_2\envs\py3>pip install pymc3
Requirement already satisfied: pymc3 in c:\users\gosal\anaconda3_2\lib\site-packages (3.9.2)
Requirement already satisfied: contextvars; python_version < "3.7" in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (2.4)
Requirement already satisfied: scipy>=0.18.1 in c:\users\gosal\appdata\roaming\python\python36\site-packages (from pymc3) (1.2.0)
Requirement already satisfied: h5py>=2.7.0 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (2.8.0)
Requirement already satisfied: fastprogress>=0.2.0 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (0.2.3)
Requirement already satisfied: arviz>=0.9.0 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (0.9.0)
Requirement already satisfied: typing-extensions>=3.7.4 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (3.7.4.2)
Requirement already satisfied: theano>=1.0.4 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (1.0.4)
Requirement already satisfied: pandas>=0.18.0 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (1.0.4)
Requirement already satisfied: patsy>=0.5.1 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (0.5.1)
Requirement already satisfied: numpy>=1.13.0 in c:\users\gosal\anaconda3_2\lib\site-packages (from pymc3) (1.18.5)
Requirement already satisfied: immutables>=0.9 in c:\users\gosal\anaconda3_2\lib\site-packages (from contextvars; python_version < "3.7"->pymc3) (0.14)
Requirement already satisfied: six in c:\users\gosal\anaconda3_2\lib\site-packages (from h5py>=2.7.0->pymc3) (1.12.0)
Requirement already satisfied: packaging in c:\users\gosal\anaconda3_2\lib\site-packages (from arviz>=0.9.0->pymc3) (19.0)
Requirement already satisfied: netcdf4 in c:\users\gosal\anaconda3_2\lib\site-packages (from arviz>=0.9.0->pymc3) (1.5.4)
Requirement already satisfied: xarray>=0.11 in c:\users\gosal\anaconda3_2\lib\site-packages (from arviz>=0.9.0->pymc3) (0.16.0)
Requirement already satisfied: matplotlib>=3.0 in c:\users\gosal\anaconda3_2\lib\site-packages (from arviz>=0.9.0->pymc3) (3.2.1)
Requirement already satisfied: python-dateutil>=2.6.1 in c:\users\gosal\anaconda3_2\lib\site-packages (from pandas>=0.18.0->pymc3) (2.7.5)
Requirement already satisfied: pytz>=2017.2 in c:\users\gosal\anaconda3_2\lib\site-packages (from pandas>=0.18.0->pymc3) (2019.3)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\gosal\anaconda3_2\lib\site-packages (from packaging->arviz>=0.9.0->pymc3) (2.3.1)
Requirement already satisfied: cftime in c:\users\gosal\anaconda3_2\lib\site-packages (from netcdf4->arviz>=0.9.0->pymc3) (1.2.1)
Requirement already satisfied: setuptools>=41.2 in c:\users\gosal\anaconda3_2\lib\site-packages (from xarray>=0.11->arviz>=0.9.0->pymc3) (49.2.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\gosal\anaconda3_2\lib\site-packages (from matplotlib>=3.0->arviz>=0.9.0->pymc3) (1.0.1)
Requirement already satisfied: cycler>=0.10 in c:\users\gosal\anaconda3_2\lib\site-packages (from matplotlib>=3.0->arviz>=0.9.0->pymc3) (0.10.0)```