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.
Related
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
I'm facing problem while trying to open jupyter notebook in python 3.9.1, the error is given at last, Plz someone can help me...This problem really tired me.
PS C:\WINDOWS\system32> pip install jupyter
----------
Requirement already satisfied: jupyter in c:\users\saquib\appdata\roaming\python\python39\site-packages (1.0.0)
Requirement already satisfied: qtconsole in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter) (5.0.3)
Requirement already satisfied: notebook in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter) (6.3.0)
Requirement already satisfied: ipywidgets in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter) (7.6.3)
Requirement already satisfied: jupyter-console in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter) (6.4.0)
Requirement already satisfied: ipykernel in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter) (5.5.0)
Requirement already satisfied: nbconvert in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter) (6.0.7)
Requirement already satisfied: traitlets>=4.1.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipykernel->jupyter) (5.0.5)
Requirement already satisfied: tornado>=4.2 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipykernel->jupyter) (6.1)
Requirement already satisfied: ipython>=5.0.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipykernel->jupyter) (7.22.0)
Requirement already satisfied: jupyter-client in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipykernel->jupyter) (6.1.12)
Requirement already satisfied: jedi>=0.16 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.18.0)
Requirement already satisfied: pickleshare in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: pygments in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (2.8.1)
Requirement already satisfied: decorator in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (4.4.2)
Requirement already satisfied: backcall in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: colorama in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.4.4)
Requirement already satisfied: setuptools>=18.5 in c:\program files\python39\lib\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (49.2.1)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipython>=5.0.0->ipykernel->jupyter) (3.0.18)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jedi>=0.16->ipython>=5.0.0->ipykernel->jupyter) (0.8.1)
Requirement already satisfied: wcwidth in c:\users\saquib\appdata\roaming\python\python39\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->jupyter) (0.2.5)
Requirement already satisfied: ipython-genutils in c:\users\saquib\appdata\roaming\python\python39\site-packages (from traitlets>=4.1.0->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: widgetsnbextension~=3.5.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipywidgets->jupyter) (3.5.1)
Requirement already satisfied: jupyterlab-widgets>=1.0.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipywidgets->jupyter) (1.0.0)
Requirement already satisfied: nbformat>=4.2.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from ipywidgets->jupyter) (5.1.2)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbformat>=4.2.0->ipywidgets->jupyter) (3.2.0)
Requirement already satisfied: jupyter-core in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbformat>=4.2.0->ipywidgets->jupyter) (4.7.1)
Requirement already satisfied: six>=1.11.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (1.15.0)
Requirement already satisfied: attrs>=17.4.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (20.3.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (0.17.3)
Requirement already satisfied: jinja2 in c:\program files\python39\lib\site-packages (from notebook->jupyter) (2.11.2)
Requirement already satisfied: pyzmq>=17 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from notebook->jupyter) (22.0.3)
Requirement already satisfied: Send2Trash>=1.5.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from notebook->jupyter) (1.5.0)
Requirement already satisfied: argon2-cffi in c:\users\saquib\appdata\roaming\python\python39\site-packages (from notebook->jupyter) (20.1.0)
Requirement already satisfied: terminado>=0.8.3 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from notebook->jupyter) (0.9.3)
Requirement already satisfied: prometheus-client in c:\users\saquib\appdata\roaming\python\python39\site-packages (from notebook->jupyter) (0.9.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter-client->ipykernel->jupyter) (2.8.1)
Requirement already satisfied: pywin32>=1.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from jupyter-core->nbformat>=4.2.0->ipywidgets->jupyter) (300)
Requirement already satisfied: pywinpty>=0.5 in c:\program files\python39\lib\site-packages (from terminado>=0.8.3->notebook->jupyter) (0.5.7)
Requirement already satisfied: cffi>=1.0.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from argon2-cffi->notebook->jupyter) (1.14.5)
Requirement already satisfied: pycparser in c:\users\saquib\appdata\roaming\python\python39\site-packages (from cffi>=1.0.0->argon2-cffi->notebook->jupyter) (2.20)
Requirement already satisfied: MarkupSafe>=0.23 in c:\program files\python39\lib\site-packages (from jinja2->notebook->jupyter) (1.1.1)
Requirement already satisfied: nbclient<0.6.0,>=0.5.0 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (0.5.3)
Requirement already satisfied: testpath in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (0.4.4)
Requirement already satisfied: defusedxml in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (0.7.1)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (1.4.3)
Requirement already satisfied: entrypoints>=0.2.2 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (0.3)
Requirement already satisfied: jupyterlab-pygments in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (0.1.2)
Requirement already satisfied: mistune<2,>=0.8.1 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (0.8.4)
Requirement already satisfied: bleach in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbconvert->jupyter) (3.3.0)
Requirement already satisfied: nest-asyncio in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->jupyter) (1.5.1)
Requirement already satisfied: async-generator in c:\users\saquib\appdata\roaming\python\python39\site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->jupyter) (1.10)
Requirement already satisfied: webencodings in c:\users\saquib\appdata\roaming\python\python39\site-packages (from bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: packaging in c:\users\saquib\appdata\roaming\python\python39\site-packages (from bleach->nbconvert->jupyter) (20.9)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\saquib\appdata\roaming\python\python39\site-packages (from packaging->bleach->nbconvert->jupyter) (2.4.7)
Requirement already satisfied: qtpy in c:\users\saquib\appdata\roaming\python\python39\site-packages (from qtconsole->jupyter) (1.9.0)
- PS C:\WINDOWS\system32> jupyter notebook
----------------------------------------
jupyter : The term 'jupyter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ jupyter notebook
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (jupyter:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Try running this:
python -m notebook
Or if it’s Python 3 try:
python3 -m notebook
I’m not sure if this is the solution, but I know this is the command for Windows to open Jupyter Notebook.
I am new to python so I am not using any environment, all I am doing is trying to install tensorflow using pip and getting the following:
> pip install tensorflow
Collecting tensorflow
Using cached tensorflow-2.3.1-cp38-cp38-win_amd64.whl (342.5 MB)
Requirement already satisfied: google-pasta>=0.1.8 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (0.2.0)
Requirement already satisfied: tensorboard<3,>=2.3.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (2.3.0)
Requirement already satisfied: grpcio>=1.8.6 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (1.33.2)
Requirement already satisfied: numpy<1.19.0,>=1.16.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (1.18.5)
Requirement already satisfied: astunparse==1.6.3 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (1.6.3)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (3.3.0)
Requirement already satisfied: wrapt>=1.11.1 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (1.12.1)
Requirement already satisfied: wheel>=0.26 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (0.35.1)
Requirement already satisfied: h5py<2.11.0,>=2.10.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (2.10.0)
Requirement already satisfied: six>=1.12.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (1.15.0)
Requirement already satisfied: tensorflow-estimator<2.4.0,>=2.3.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (2.3.0)
Requirement already satisfied: gast==0.3.3 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (0.3.3)
Requirement already satisfied: absl-py>=0.7.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (0.11.0)
Requirement already satisfied: termcolor>=1.1.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: keras-preprocessing<1.2,>=1.1.1 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (1.1.2)
Requirement already satisfied: protobuf>=3.9.2 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorflow) (3.13.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.7.0)
Requirement already satisfied: markdown>=2.6.8 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (3.3.3)
Requirement already satisfied: setuptools>=41.0.0 in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (49.2.1)
Requirement already satisfied: werkzeug>=0.11.15 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.0.1)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (0.4.2)
Requirement already satisfied: google-auth<2,>=1.6.3 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.23.0)
Requirement already satisfied: requests<3,>=2.21.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (2.24.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow) (1.3.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (0.2.8)
Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3.5" in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (4.6)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (4.1.1)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (1.25.11)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (2020.11.8)
Requirement already satisfied: oauthlib>=3.0.0 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow) (3.1.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\users\teren\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (0.4.8)
Installing collected packages: tensorflow
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\teren\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python38\\site-packages\\tensorflow\\include\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel\\lb_policy\\grpclb\\client_load_reporting_filter.h'
The pip version is 20.2.4 and the python version is 3.8.
I am using Windows 10 so I am not sure if this is a windows thing.
I see that the pip is using a cached package so I tried
pip --no-cache-dir install tensorflow
but I still get
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\teren\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python38\\site-packages\\tensorflow\\include\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel\\lb_policy\\grpclb\\client_load_reporting_filter.h'
The problem with missing files during pip install on Windows happens when the path is too long.
You can fix this by using regedit, going to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem and changing the value of LongPathsEnabled to 1.
You need to create an environment which is recommended by tensorflow community
Please follow the following link
https://www.tensorflow.org/install/pip
Please ensure you follow this document step by step
Incase if you feel that its a lot of manual work then use Anaconda navigator
Click on Environments tab create Environment named tensorflow and then on to right download all packages which you need to install
Once done click on your new environment and launch jupyter notebook
When I open the Spyder in anaconda, the Spyder indicates that an error occurred while starting the kernel in Spyder. I have tried (in the terminal) two suggested commands from Spyder. However, after I restart anaconda and open Spyder, the same problem exists, so I don't know how to solve the problem. Thank you for your help!
Below is what Spyder says when opened:
An error occurred while starting the kernel
Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed. Without this module is not possible for Spyder to create a console for you.
You can install it by running in a system terminal:
conda install spyder‑kernels=0.*
or
pip install spyder‑kernels==0.*
The results in the terminal are listed below.
(base) pn-204-190:~ yangboning$ conda install spyder-kernels=0.*
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
(base) pn-204-190:~ yangboning$ pip install spyder-kernels==0.*
Requirement already satisfied: spyder-kernels==0.* in ./opt/anaconda3/lib/python3.7/site-packages (0.5.2)
Requirement already satisfied: ipykernel>=4.8.2 in ./opt/anaconda3/lib/python3.7/site-packages (from spyder-kernels==0.*) (5.1.2)
Requirement already satisfied: wurlitzer; platform_system != "Windows" in ./opt/anaconda3/lib/python3.7/site-packages (from spyder-kernels==0.*) (1.0.3)
Requirement already satisfied: pyzmq>=17 in ./opt/anaconda3/lib/python3.7/site-packages (from spyder-kernels==0.*) (18.1.0)
Requirement already satisfied: cloudpickle in ./opt/anaconda3/lib/python3.7/site-packages (from spyder-kernels==0.*) (1.2.2)
Requirement already satisfied: jupyter-client>=5.2.3 in ./opt/anaconda3/lib/python3.7/site-packages (from spyder-kernels==0.*) (5.3.3)
Requirement already satisfied: traitlets>=4.1.0 in ./opt/anaconda3/lib/python3.7/site-packages (from ipykernel>=4.8.2->spyder-kernels==0.*) (4.3.3)
Requirement already satisfied: ipython>=5.0.0 in ./opt/anaconda3/lib/python3.7/site-packages (from ipykernel>=4.8.2->spyder-kernels==0.*) (7.8.0)
Requirement already satisfied: tornado>=4.2 in ./opt/anaconda3/lib/python3.7/site-packages (from ipykernel>=4.8.2->spyder-kernels==0.*) (6.0.3)
Requirement already satisfied: python-dateutil>=2.1 in ./opt/anaconda3/lib/python3.7/site-packages (from jupyter-client>=5.2.3->spyder-kernels==0.*) (2.8.0)
Requirement already satisfied: jupyter-core in ./opt/anaconda3/lib/python3.7/site-packages (from jupyter-client>=5.2.3->spyder-kernels==0.*) (4.5.0)
Requirement already satisfied: ipython-genutils in ./opt/anaconda3/lib/python3.7/site-packages (from traitlets>=4.1.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.2.0)
Requirement already satisfied: six in ./opt/anaconda3/lib/python3.7/site-packages (from traitlets>=4.1.0->ipykernel>=4.8.2->spyder-kernels==0.*) (1.12.0)
Requirement already satisfied: decorator in ./opt/anaconda3/lib/python3.7/site-packages (from traitlets>=4.1.0->ipykernel>=4.8.2->spyder-kernels==0.*) (4.4.0)
Requirement already satisfied: jedi>=0.10 in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.15.1)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (2.0.10)
Requirement already satisfied: pygments in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (2.4.2)
Requirement already satisfied: pickleshare in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.7.5)
Requirement already satisfied: appnope; sys_platform == "darwin" in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.1.0)
Requirement already satisfied: setuptools>=18.5 in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (41.4.0)
Requirement already satisfied: pexpect; sys_platform != "win32" in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (4.7.0)
Requirement already satisfied: backcall in ./opt/anaconda3/lib/python3.7/site-packages (from ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.1.0)
Requirement already satisfied: parso>=0.5.0 in ./opt/anaconda3/lib/python3.7/site-packages (from jedi>=0.10->ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.5.1)
Requirement already satisfied: wcwidth in ./opt/anaconda3/lib/python3.7/site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.1.7)
Requirement already satisfied: ptyprocess>=0.5 in ./opt/anaconda3/lib/python3.7/site-packages (from pexpect; sys_platform != "win32"->ipython>=5.0.0->ipykernel>=4.8.2->spyder-kernels==0.*) (0.6.0)
(base) pn-204-190:~ yangboning$
you can try:
conda install spyder-kernels
or
pip install spyder-kernels
If the solution by #lyq didn't work, this worked for me.
Open Anaconda prompt and run this line:
spyder --reset
Check for a compatible version of spyder-kernel from here and install using pip like this-
pip install spyder-kernels== COMPATIBLE VERSION
I'm running a Ubuntu 18.04 system, recently installed a new ssd and mapped $HOME onto the ssd then moved the existing files onto it. Somehow, in that process I've mucked up my PYTHONPATH, I believe.
If I run twine upload dist/* I get the following error:
bash: /home/henry/.local/bin/twine: No such file or directory
If I run pip install twine, I get the following output:
Requirement already satisfied: twine in /usr/local/lib/python2.7/dist-packages (1.12.1)
Requirement already satisfied: setuptools>=0.7.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (39.1.0)
Requirement already satisfied: pkginfo>=1.4.2 in /home/henry/.local/lib/python2.7/site-packages (from twine) (1.4.2)
Requirement already satisfied: readme-renderer>=21.0 in /usr/local/lib/python2.7/dist-packages (from twine) (24.0)
Requirement already satisfied: requests!=2.15,!=2.16,>=2.5.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (2.18.4)
Requirement already satisfied: tqdm>=4.14 in /home/henry/.local/lib/python2.7/site-packages (from twine) (4.23.3)
Requirement already satisfied: requests-toolbelt>=0.8.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (0.8.0)
Requirement already satisfied: Pygments in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (2.2.0)
Requirement already satisfied: six in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (1.11.0)
Requirement already satisfied: bleach>=2.1.0 in /usr/local/lib/python2.7/dist-packages (from readme-renderer>=21.0->twine) (3.0.2)
Requirement already satisfied: docutils>=0.13.1 in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (0.14)
Requirement already satisfied: idna<2.7,>=2.5 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2018.1.18)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (3.0.4)
Requirement already satisfied: webencodings in /usr/lib/python2.7/dist-packages (from bleach>=2.1.0->readme-renderer>=21.0->twine) (0.5)
echo "PYTHONPATH=$PYTHONPATH" gives me PYTHONPATH=
What do I do to correct?
use
python -m twine upload dist/*