name is not defined for twitch-viewer module - python

I can not start the https://github.com/ohyou/twitch-viewer because of a NameError. I did the following on CMD:
Microsoft Windows [Version 10.0.18362.720]
(c) 2019 Microsoft Corporation. Alle Rechte vorbehalten.
C:\Users\Nesin>pip install requests
Requirement already satisfied: requests in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (2.23.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (1.25.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (2019.11.28)
Requirement already satisfied: idna<3,>=2.5 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (2.9)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (3.0.4)
C:\Users\Nesin>pip install json
ERROR: Could not find a version that satisfies the requirement json (from versions: none)
ERROR: No matching distribution found for json
C:\Users\Nesin>pip install simplejson
Requirement already satisfied: simplejson in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (3.17.0)
C:\Users\Nesin>pip install requests
Requirement already satisfied: requests in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (2.23.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (1.25.8)
Requirement already satisfied: idna<3,>=2.5 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (2.9)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests) (2019.11.28)
C:\Users\Nesin>pip install livestreamer
Requirement already satisfied: livestreamer in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (1.12.2)
Requirement already satisfied: requests<3.0,>=1.0 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from livestreamer) (2.23.0)
Requirement already satisfied: idna<3,>=2.5 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0,>=1.0->livestreamer) (2.9)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0,>=1.0->livestreamer) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0,>=1.0->livestreamer) (1.25.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\nesin\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0,>=1.0->livestreamer) (2019.11.28)
Then I did this here on Python:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import simplejson
import json
import requests
import livestreamer
nesgaming
Traceback (most recent call last):
File "", line 1, in
NameError: name 'nesgaming' is not defined
Can someone help me with this one? :)

It seems you intend to call come function from twitch-viewer.py with the argument "nesgaming".
You're telling Python "nesgaming," as if it were some variable, but you're not telling Python what "nesgaming" is or what to do with it.
I am unsure how your code block with the pip install statements relates to the question. You're not dealing with an import error as far as I can tell.

Related

YouTube video viewer program

I am trying to use the Youtube viewer program on someone's YouTube videos. The source code of this program can be found on the GitHub page.
There is a problem in the import statements, though.
In the YouTube viewer -> youtubeviewer -> download_driver.py file, so this page, there is an import statement.
import undetected_chromedriver._compat as uc
At first when I tried to run this program, the following error pops up:
ModuleNotFoundError: No module named 'undetected_chromedriver'
I eventually installed it using the python3 -m pip install undetected_chromedriver command. Everything ran smoothly until the statement above. The command prompt popped up the following error message.
Traceback (most recent call last):
File "C:\Users\14725\YouTube-Viewer\youtube_viewer.py", line 42, in <module>
from youtubeviewer.download_driver import *
File "C:\Users\14725\YouTube-Viewer\youtubeviewer\download_driver.py", line 29, in <module>
import undetected_chromedriver._compat as uc
ModuleNotFoundError: No module named 'undetected_chromedriver._compat'
I checked again if I had installed the module by using the python3 -m pip install undetected_chromedriver command. The following messages popped up:
Requirement already satisfied: undetected_chromedriver in c:\users\14725\appdata\roaming\python\python39\site-packages (3.4)
Requirement already satisfied: requests in c:\users\14725\appdata\roaming\python\python39\site-packages (from undetected_chromedriver) (2.28.0)
Requirement already satisfied: selenium>=4.0.0 in c:\users\14725\appdata\roaming\python\python39\site-packages (from undetected_chromedriver) (4.8.0)
Requirement already satisfied: websockets in c:\users\14725\appdata\roaming\python\python39\site-packages (from undetected_chromedriver) (10.4)
Requirement already satisfied: certifi>=2021.10.8 in c:\users\14725\appdata\roaming\python\python39\site-packages (from selenium>=4.0.0->undetected_chromedriver) (2022.5.18.1)
Requirement already satisfied: trio~=0.17 in c:\users\14725\appdata\roaming\python\python39\site-packages (from selenium>=4.0.0->undetected_chromedriver) (0.22.0)
Requirement already satisfied: urllib3[socks]~=1.26 in c:\users\14725\appdata\roaming\python\python39\site-packages (from selenium>=4.0.0->undetected_chromedriver) (1.26.9)
Requirement already satisfied: trio-websocket~=0.9 in c:\users\14725\appdata\roaming\python\python39\site-packages (from selenium>=4.0.0->undetected_chromedriver) (0.9.2)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\14725\appdata\roaming\python\python39\site-packages (from requests->undetected_chromedriver) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in c:\users\14725\appdata\roaming\python\python39\site-packages (from requests->undetected_chromedriver) (3.3)
Requirement already satisfied: cffi>=1.14 in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (1.15.0)
Requirement already satisfied: sniffio in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (1.3.0)
Requirement already satisfied: sortedcontainers in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (2.4.0)
Requirement already satisfied: async-generator>=1.9 in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (1.10)
Requirement already satisfied: outcome in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (1.2.0)
Requirement already satisfied: attrs>=19.2.0 in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (21.4.0)
Requirement already satisfied: exceptiongroup>=1.0.0rc9 in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (1.1.0)
Requirement already satisfied: wsproto>=0.14 in c:\users\14725\appdata\roaming\python\python39\site-packages (from trio-websocket~=0.9->selenium>=4.0.0->undetected_chromedriver) (1.2.0)
Requirement already satisfied: PySocks!=1.5.7,<2.0,>=1.5.6 in c:\users\14725\appdata\roaming\python\python39\site-packages (from urllib3[socks]~=1.26->selenium>=4.0.0->undetected_chromedriver) (1.7.1)
Requirement already satisfied: pycparser in c:\users\14725\appdata\roaming\python\python39\site-packages (from cffi>=1.14->trio~=0.17->selenium>=4.0.0->undetected_chromedriver) (2.21)
Requirement already satisfied: h11<1,>=0.9.0 in c:\users\14725\appdata\roaming\python\python39\site-packages (from wsproto>=0.14->trio-websocket~=0.9->selenium>=4.0.0->undetected_chromedriver) (0.14.0)
Which I think these have indicated that I have the module installed. What should I do to run this program? Have I missed something?
There was an important update of undetected_chromedriver recently. I recommend you to install the latest known stable version with:
pip install undetected-chromedriver==3.2.1

EasyOCR Module Not Found Error Despite Successful Install

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'

Issue of installing tensorflow 1.15 with python 3.7.7

I am trying to install tensorflow 1.15, and it's installed well. When I run again pip install tensorflow==1.15 it shows me the below screen:
C:\Users\Fatima>pip install tensorflow==1.15
Requirement already satisfied: tensorflow==1.15 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (1.15.0)
Requirement already satisfied: tensorflow-estimator==1.15.1 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.15.1)
Requirement already satisfied: keras-applications>=1.0.8 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.0.8)
Requirement already satisfied: grpcio>=1.8.6 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.37.1)
Requirement already satisfied: termcolor>=1.1.0 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.1.0)
Requirement already satisfied: six>=1.10.0 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.15.0)
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.1.2)
Requirement already satisfied: gast==0.2.2 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (0.2.2)
Requirement already satisfied: absl-py>=0.7.0 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (0.12.0)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (3.3.0)
Requirement already satisfied: wrapt>=1.11.1 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.12.1)
Requirement already satisfied: numpy<2.0,>=1.16.0 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.20.2)
Requirement already satisfied: protobuf>=3.6.1 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (3.15.8)
Requirement already satisfied: astor>=0.6.0 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (0.8.1)
Requirement already satisfied: wheel>=0.26 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (0.36.2)
Requirement already satisfied: tensorboard<1.16.0,>=1.15.0 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (1.15.0)
Requirement already satisfied: google-pasta>=0.1.6 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorflow==1.15) (0.2.0)
Requirement already satisfied: h5py in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from keras-applications>=1.0.8->tensorflow==1.15) (3.2.1)
Requirement already satisfied: markdown>=2.6.8 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorboard<1.16.0,>=1.15.0->tensorflow==1.15) (3.3.4)
Requirement already satisfied: setuptools>=41.0.0 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorboard<1.16.0,>=1.15.0->tensorflow==1.15) (41.2.0)
Requirement already satisfied: werkzeug>=0.11.15 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from tensorboard<1.16.0,>=1.15.0->tensorflow==1.15) (1.0.1)
Requirement already satisfied: importlib-metadata in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from markdown>=2.6.8->tensorboard<1.16.0,>=1.15.0->tensorflow==1.15) (4.0.1)
Requirement already satisfied: cached-property in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from h5py->keras-applications>=1.0.8->tensorflow==1.15) (1.5.2)
Requirement already satisfied: typing-extensions>=3.6.4 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard<1.16.0,>=1.15.0->tensorflow==1.15) (3.10.0.0)
Requirement already satisfied: zipp>=0.5 in c:\users\Fatima\appdata\local\programs\python\python37\lib\site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard<1.16.0,>=1.15.0->tensorflow==1.15) (3.4.1)
That means that tensorflow is installed, right? The python I am using is V3.7.7
I use Pycharm to run the following code as test:
import tensorflow as tf
print(tf.__version__)
It gives me an error as follows:
Traceback (most recent call last):
File "C:/Python394/for_trials.py", line 1, in <module>
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
It's like it couldn't identify the tensorflow, or the python is not compatible with Tf1. However, following the guide, that python 3.7 and older are compatible with Tf1.
Could you please help me in solving that issue to install Tf1 ?
thank you
The problem is that tensorflow is well installed in your machine but in which environment? for pycharm to see tensorflow, tensorflow must be installed in the same environment that pycharm uses to execute code. But if for example your pycharm is configured to execute codes in a virtual environment and tensorflow is installed in anaconda, there is has no way it works. So the simple solution that you can do is to change the environment of pycham to the environment where tensorflow is installed
tu change l’interpréteur comme ceci
tu change l’interpréteur comme ceci
tu change l’interpréteur comme ceci

Import Error: Cannot import name 'statfunc' (pymc3 module already installed)

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)```

jupyter installs but 'jupyter' is not recognized when I try to run

I installed Jupyter Notebook and it reports requirement satisfied, but when I try to run, it reports 'jupyter' is not recognized as an internal or external command.
I am guessing I am missing a path definition, but can't find jupyter.exe.
I see other posts on stackoverflow say to set python library path as per installation instructions, but I search the jupyter installation and found no references to this.
Any suggestions?
btw, complete newbie in Python.
c:\Users\john_\Documents>python -m pip install jupyter
Requirement already satisfied: jupyter in c:\users\john_\appdata\roaming\python\python36\site-packages
Requirement already satisfied: qtconsole in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: notebook in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: nbconvert in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: ipykernel in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: jupyter-console in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: ipywidgets in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: jupyter-client>=4.1 in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: ipython-genutils in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: jupyter-core in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: traitlets in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: pygments in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: nbformat in c:\users\john_\appdata\roaming\python\python36\site-packages (from notebook->jupyter)
Requirement already satisfied: jinja2 in c:\users\john_\appdata\roaming\python\python36\site-packages (from notebook->jupyter)
Requirement already satisfied: tornado>=4 in c:\users\john_\appdata\roaming\python\python36\site-packages (from notebook->jupyter)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: entrypoints>=0.2.2 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: bleach in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from nbconvert->jupyter)
Requirement already satisfied: mistune>=0.7.4 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: testpath in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: ipython>=4.0.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipykernel->jupyter)
Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter-console->jupyter)
Requirement already satisfied: widgetsnbextension~=3.0.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipywidgets->jupyter)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter-client>=4.1->qtconsole->jupyter)
Requirement already satisfied: pyzmq>=13 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter-client>=4.1->qtconsole->jupyter)
Requirement already satisfied: decorator in c:\users\john_\appdata\roaming\python\python36\site-packages (from traitlets->qtconsole->jupyter)
Requirement already satisfied: six in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from traitlets->qtconsole->jupyter)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbformat->notebook->jupyter)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jinja2->notebook->jupyter)
Requirement already satisfied: html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from bleach->nbconvert->jupyter)
Requirement already satisfied: simplegeneric>0.8 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: setuptools>=18.5 in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: jedi>=0.10 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: pickleshare in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: wcwidth in c:\users\john_\appdata\roaming\python\python36\site-packages (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
Requirement already satisfied: parso==0.1.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jedi>=0.10->ipython>=4.0.0->ipykernel->jupyter)
Here is the error when I try to run jupyter
c:\Users\john_\Documents>jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
Here I show python is installed and can run
c:\Users\john_\Documents>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
check whether there is an exe named jupyter in the scripts folder inside python installation folder. if yes, then add the scripts folder into the path.
I would suggest you to use anaconda distribution of python. it will take care of everything.

Categories