I am trying to install jupyter
pip install --user jupyter
However I get this error:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7'
Check the permissions.
How do I check the permissions of --user? How do I change the permission of --user?
Full log:
morgans-imac:~ morganallen$ pip install --user jupyter
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting jupyter
Using cached https://files.pythonhosted.org/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl
Collecting qtconsole (from jupyter)
Using cached https://files.pythonhosted.org/packages/e0/7a/8aefbc0ed078dec7951ac9a06dcd1869243ecd7bcbce26fa47bf5e469a8f/qtconsole-4.4.3-py2.py3-none-any.whl
Collecting notebook (from jupyter)
Using cached https://files.pythonhosted.org/packages/f8/a6/dbdf0954d073ab2cf5421cad20334d1e4c780da37205c04522c045298f67/notebook-5.7.4-py2.py3-none-any.whl
Collecting nbconvert (from jupyter)
Using cached https://files.pythonhosted.org/packages/b5/bb/94c493051d60e5b9c0f7f9a368b324201818c1b1c4cae85d1e49a41846c7/nbconvert-5.4.0-py2.py3-none-any.whl
Collecting ipywidgets (from jupyter)
Using cached https://files.pythonhosted.org/packages/30/9a/a008c7b1183fac9e52066d80a379b3c64eab535bd9d86cdc29a0b766fd82/ipywidgets-7.4.2-py2.py3-none-any.whl
Collecting jupyter-console (from jupyter)
Using cached https://files.pythonhosted.org/packages/77/82/6469cd7fccf7958cbe5dce2e623f1e3c5e27f1bb1ad36d90519bc2d5d370/jupyter_console-5.2.0-py2.py3-none-any.whl
Requirement already satisfied: ipykernel in /Library/Python/2.7/site-packages (from jupyter) (4.10.0)
Requirement already satisfied: pygments in /Library/Python/2.7/site-packages (from qtconsole->jupyter) (2.3.1)
Requirement already satisfied: ipython-genutils in /Library/Python/2.7/site-packages (from qtconsole->jupyter) (0.2.0)
Requirement already satisfied: jupyter-client>=4.1 in /Library/Python/2.7/site-packages (from qtconsole->jupyter) (5.2.4)
Requirement already satisfied: jupyter-core in /Library/Python/2.7/site-packages (from qtconsole->jupyter) (4.4.0)
Requirement already satisfied: traitlets in /Library/Python/2.7/site-packages (from qtconsole->jupyter) (4.3.2)
Collecting prometheus-client (from notebook->jupyter)
Collecting terminado>=0.8.1 (from notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/2e/20/a26211a24425923d46e1213b376a6ee60dc30bcdf1b0c345e2c3769deb1c/terminado-0.8.1-py2.py3-none-any.whl
Collecting nbformat (from notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/da/27/9a654d2b6cc1eaa517d1c5a4405166c7f6d72f04f6e7eea41855fe808a46/nbformat-4.4.0-py2.py3-none-any.whl
Requirement already satisfied: pyzmq>=17 in /Library/Python/2.7/site-packages (from notebook->jupyter) (17.1.2)
Requirement already satisfied: jinja2 in /Library/Python/2.7/site-packages (from notebook->jupyter) (2.9.6)
Collecting Send2Trash (from notebook->jupyter)
Requirement already satisfied: tornado>=4 in /Library/Python/2.7/site-packages (from notebook->jupyter) (5.0.2)
Collecting ipaddress; python_version == "2.7" (from notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
Collecting entrypoints>=0.2.2 (from nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting bleach (from nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
Collecting defusedxml (from nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/87/1c/17f3e3935a913dfe2a5ca85fa5ccbef366bfd82eb318b1f75dadbf0affca/defusedxml-0.5.0-py2.py3-none-any.whl
Collecting testpath (from nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/be/a4/162f9ebb6489421fe46dcca2ae420369edfee4b563c668d93cb4605d12ba/testpath-0.4.2-py2.py3-none-any.whl
Collecting mistune>=0.8.1 (from nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl
Requirement already satisfied: ipython<6.0.0,>=4.0.0; python_version < "3.3" in /Library/Python/2.7/site-packages (from ipywidgets->jupyter) (5.8.0)
Collecting widgetsnbextension~=3.4.0 (from ipywidgets->jupyter)
Using cached https://files.pythonhosted.org/packages/8a/81/35789a3952afb48238289171728072d26d6e76649ddc8b3588657a2d78c1/widgetsnbextension-3.4.2-py2.py3-none-any.whl
Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.0 in /Library/Python/2.7/site-packages (from jupyter-console->jupyter) (1.0.15)
Requirement already satisfied: python-dateutil>=2.1 in /Library/Python/2.7/site-packages (from jupyter-client>=4.1->qtconsole->jupyter) (2.7.3)
Requirement already satisfied: six in /Library/Python/2.7/site-packages (from traitlets->qtconsole->jupyter) (1.11.0)
Requirement already satisfied: enum34; python_version == "2.7" in /Library/Python/2.7/site-packages (from traitlets->qtconsole->jupyter) (1.1.6)
Requirement already satisfied: decorator in /Library/Python/2.7/site-packages (from traitlets->qtconsole->jupyter) (4.3.2)
Requirement already satisfied: ptyprocess; os_name != "nt" in /Library/Python/2.7/site-packages (from terminado>=0.8.1->notebook->jupyter) (0.6.0)
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Requirement already satisfied: MarkupSafe>=0.23 in /Library/Python/2.7/site-packages (from jinja2->notebook->jupyter) (1.0)
Requirement already satisfied: futures in /Library/Python/2.7/site-packages (from tornado>=4->notebook->jupyter) (3.0.5)
Requirement already satisfied: singledispatch in /Library/Python/2.7/site-packages (from tornado>=4->notebook->jupyter) (3.4.0.3)
Requirement already satisfied: backports_abc>=0.4 in /Library/Python/2.7/site-packages (from tornado>=4->notebook->jupyter) (0.5)
Collecting configparser>=3.5; python_version == "2.7" (from entrypoints>=0.2.2->nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/e9/b1/98e5e3094aac1c0efaeb208fb45f9b42eb1d5681b4c5dac77b05d0fec71a/configparser-3.7.1-py2-none-any.whl
Collecting webencodings (from bleach->nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Requirement already satisfied: simplegeneric>0.8 in /Library/Python/2.7/site-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (0.8.1)
Requirement already satisfied: backports.shutil-get-terminal-size; python_version == "2.7" in /Library/Python/2.7/site-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (1.0.0)
Requirement already satisfied: pexpect; sys_platform != "win32" in /Library/Python/2.7/site-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (4.6.0)
Requirement already satisfied: setuptools>=18.5 in /Library/Python/2.7/site-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (32.3.1)
Requirement already satisfied: pickleshare in /Library/Python/2.7/site-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (0.7.5)
Requirement already satisfied: appnope; sys_platform == "darwin" in /Library/Python/2.7/site-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (0.1.0)
Requirement already satisfied: pathlib2; python_version == "2.7" or python_version == "3.3" in /Library/Python/2.7/site-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (2.3.3)
Requirement already satisfied: wcwidth in /Library/Python/2.7/site-packages (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter) (0.1.7)
Collecting functools32; python_version == "2.7" (from jsonschema!=2.5.0,>=2.4->nbformat->notebook->jupyter)
Requirement already satisfied: scandir; python_version < "3.5" in /Library/Python/2.7/site-packages (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (1.9.0)
Installing collected packages: qtconsole, prometheus-client, configparser, entrypoints, functools32, jsonschema, nbformat, webencodings, bleach, pandocfilters, defusedxml, testpath, mistune, nbconvert, terminado, Send2Trash, ipaddress, notebook, widgetsnbextension, ipywidgets, jupyter-console, jupyter
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/morganallen/Library/Python/2.7'
Check the permissions.
Related
i executed this code:
from demo import load_checkpoints
generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml',
checkpoint_path='/content/gdrive/My Drive/first-order-motion-model/vox-cpk.pth.tar')
after executing, it thrown this error sayng that im missing a module called demo:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-aac07a390ef5> in <module>()
10 import libarchive
11
---> 12 from demo import load_checkpoints
13 generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml',
14 checkpoint_path='/content/gdrive/My Drive/first-order-motion-model/vox-cpk.pth.tar')
ModuleNotFoundError: No module named 'demo'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
I followed the Instructions on the Note. I added one !pip and two !apt commands before the main code.
!pip install cartopy
import cartopy
# https://pypi.python.org/pypi/pydot
!apt-get -qq install -y graphviz && pip install pydot
import pydot
# https://pypi.python.org/pypi/libarchive
!apt-get -qq install -y libarchive-dev && pip install -U libarchive
import libarchive
from demo import load_checkpoints
generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml',
checkpoint_path='/content/gdrive/My Drive/first-order-motion-model/vox-cpk.pth.tar')
but it throws the same error. I dont know what to do now beacuse im doing a school project about Deepfakes and my teacher requested me to make an example of a Deepfake. I found a simple tutorial page about how to do it but they doesnt say a word about errors. I have 0 knowledge about coding so again, i dont know what to do to fix this issue. If someone replies, thanks.
Collecting cartopy
Downloading https://files.pythonhosted.org/packages/46/c1/04e50c9986842f00f7db0e7a65caa896840050d7328f74e5b7437aa01179/Cartopy-0.18.0.tar.gz (14.4MB)
|████████████████████████████████| 14.4MB 229kB/s
Requirement already satisfied: numpy>=1.10 in /usr/local/lib/python3.7/dist-packages (from cartopy) (1.19.5)
Requirement already satisfied: shapely>=1.5.6 in /usr/local/lib/python3.7/dist-packages (from cartopy) (1.7.1)
Collecting pyshp>=1.1.4
Downloading https://files.pythonhosted.org/packages/38/85/fbf87e7aa55103e0d06af756bdbc15cf821fa580414c23142d60a35d4f85/pyshp-2.1.3.tar.gz (219kB)
|████████████████████████████████| 225kB 46.0MB/s
Requirement already satisfied: six>=1.3.0 in /usr/local/lib/python3.7/dist-packages (from cartopy) (1.15.0)
Requirement already satisfied: setuptools>=0.7.2 in /usr/local/lib/python3.7/dist-packages (from cartopy) (54.1.2)
Building wheels for collected packages: cartopy, pyshp
Building wheel for cartopy (setup.py) ... done
Created wheel for cartopy: filename=Cartopy-0.18.0-cp37-cp37m-linux_x86_64.whl size=15127707 sha256=a654609daeabe10086e2283a53e85918564f6eeb193a30c16acc8c117cc7108b
Stored in directory: /root/.cache/pip/wheels/8d/f8/da/2c05136f2162370d2baec85bfbbf91d7729ab9e248da878acd
Building wheel for pyshp (setup.py) ... done
Created wheel for pyshp: filename=pyshp-2.1.3-cp37-none-any.whl size=37264 sha256=fb70034866333f4cb28a6d1a447eddf047eb9e4c0e40afc257fac9d5d1d4b947
Stored in directory: /root/.cache/pip/wheels/76/2b/d4/53e6b9a0fb0a9f9f29664cf82605af8bc81d5ab44d987896dd
Successfully built cartopy pyshp
Installing collected packages: pyshp, cartopy
Successfully installed cartopy-0.18.0 pyshp-2.1.3
Requirement already satisfied: pydot in /usr/local/lib/python3.7/dist-packages (1.3.0)
Requirement already satisfied: pyparsing>=2.1.4 in /usr/local/lib/python3.7/dist-packages (from pydot) (2.4.7)
Selecting previously unselected package libarchive-dev:amd64.
(Reading database ... 160980 files and directories currently installed.)
Preparing to unpack .../libarchive-dev_3.2.2-3.1ubuntu0.6_amd64.deb ...
Unpacking libarchive-dev:amd64 (3.2.2-3.1ubuntu0.6) ...
Setting up libarchive-dev:amd64 (3.2.2-3.1ubuntu0.6) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Collecting libarchive
Downloading https://files.pythonhosted.org/packages/bf/d4/26f5c9835d4d648e4f22b5fb91288457698e928aaf9d4ab7eff405b7ef03/libarchive-0.4.7.tar.gz
Collecting nose
Downloading https://files.pythonhosted.org/packages/15/d8/dd071918c040f50fa1cf80da16423af51ff8ce4a0f2399b7bf8de45ac3d9/nose-1.3.7-py3-none-any.whl (154kB)
|████████████████████████████████| 163kB 6.9MB/s
Building wheels for collected packages: libarchive
Building wheel for libarchive (setup.py) ... done
Created wheel for libarchive: filename=libarchive-0.4.7-cp37-none-any.whl size=31633 sha256=84002f656d8b4ff6394a0b9b122bbba28ce6781884855c6f6b81ac52abef0488
Stored in directory: /root/.cache/pip/wheels/3b/5c/fa/92ee330d259e8fa5bedbd53f67040710fe81cfa463b8711d26
Successfully built libarchive
Installing collected packages: nose, libarchive
Successfully installed libarchive-0.4.7 nose-1.3.7
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-aac07a390ef5> in <module>()
10 import libarchive
11
---> 12 from demo import load_checkpoints
13 generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml',
14 checkpoint_path='/content/gdrive/My Drive/first-order-motion-model/vox-cpk.pth.tar')
ModuleNotFoundError: No module named 'demo'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
https://colab.research.google.com/github/AliaksandrSiarohin/first-order-model/blob/master/demo.ipynb#scrollTo=3FQiXqQPWt5B&uniqifier=5
https://www.kapwing.com/resources/baka-mitai-dame-da-ne-meme/
The error you are getting is referring to not being able to import the 'demo' module, and there are two possible reasons for that:
You don't have "demo" installed from the public PyPi repository. This is where publicly available packages are published. The "pip install" command will usually fetch packages from PyPi.
You are are missing part of the codebase for your project -- specifically a file called "demo.py".
In your case, you are missing number 2. The code for the project you are working on is found in the Github repository for the demo, and you can see the file demo.py in the top level of the folder structure. To me, it looks like you didn't actually run the first part of the code:
!git clone https://github.com/AliaksandrSiarohin/first-order-model
Still throwing errors. I also made sure i didnt skip Executing the First Block of Code.
!git clone https://github.com/AliaksandrSiarohin/first-order-model
!pip install demo-py
from demo import load_checkpoints
generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml',
checkpoint_path='/content/gdrive/My Drive/first-order-motion-model/vox-cpk.pth.tar')
fatal: destination path 'first-order-model' already exists and is not an empty directory.
Requirement already satisfied: demo-py in /usr/local/lib/python3.7/dist-packages (0.0.1a8)
Requirement already satisfied: jupyter-contrib-nbextensions in /usr/local/lib/python3.7/dist-packages (from demo-py) (0.5.1)
Requirement already satisfied: spacy>=2.3.2 in /usr/local/lib/python3.7/dist-packages (from demo-py) (3.0.5)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.7/dist-packages (from demo-py) (3.2.2)
Requirement already satisfied: ipywidgets in /usr/local/lib/python3.7/dist-packages (from demo-py) (7.6.3)
Requirement already satisfied: ipython in /usr/local/lib/python3.7/dist-packages (from demo-py) (5.5.0)
Requirement already satisfied: pandas in /usr/local/lib/python3.7/dist-packages (from demo-py) (1.1.5)
Requirement already satisfied: nbconvert>=4.2 in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (5.6.1)
Requirement already satisfied: jupyter-nbextensions-configurator>=0.4.0 in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (0.4.1)
Requirement already satisfied: jupyter-highlight-selected-word>=0.1.1 in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (0.2.0)
Requirement already satisfied: jupyter-latex-envs>=1.3.8 in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (1.4.6)
Requirement already satisfied: tornado in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (5.1.1)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (3.13)
Requirement already satisfied: ipython-genutils in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (0.2.0)
Requirement already satisfied: jupyter-contrib-core>=0.3.3 in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (0.3.3)
Requirement already satisfied: lxml in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (4.2.6)
Requirement already satisfied: jupyter-core in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (4.7.1)
Requirement already satisfied: traitlets>=4.1 in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (5.0.5)
Requirement already satisfied: notebook>=4.0 in /usr/local/lib/python3.7/dist-packages (from jupyter-contrib-nbextensions->demo-py) (5.3.1)
Requirement already satisfied: catalogue<2.1.0,>=2.0.1 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (2.0.1)
Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (2.0.5)
Requirement already satisfied: wasabi<1.1.0,>=0.8.1 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (0.8.2)
Requirement already satisfied: srsly<3.0.0,>=2.4.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (2.4.0)
Requirement already satisfied: typing-extensions<4.0.0.0,>=3.7.4; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (3.7.4.3)
Requirement already satisfied: requests<3.0.0,>=2.13.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (2.23.0)
Requirement already satisfied: blis<0.8.0,>=0.4.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (0.4.1)
Requirement already satisfied: typer<0.4.0,>=0.3.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (0.3.2)
Requirement already satisfied: tqdm<5.0.0,>=4.38.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (4.41.1)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (2.11.3)
Requirement already satisfied: pydantic<1.8.0,>=1.7.1 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (1.7.3)
Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (3.0.5)
Requirement already satisfied: pathy>=0.3.5 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (0.4.0)
Requirement already satisfied: numpy>=1.15.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (1.19.5)
Requirement already satisfied: thinc<8.1.0,>=8.0.2 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (8.0.2)
Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (3.0.1)
Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (1.0.5)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (54.1.2)
Requirement already satisfied: importlib-metadata>=0.20; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (3.7.2)
Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.7/dist-packages (from spacy>=2.3.2->demo-py) (20.9)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/dist-packages (from matplotlib->demo-py) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib->demo-py) (2.4.7)
Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib->demo-py) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib->demo-py) (1.3.1)
Requirement already satisfied: ipykernel>=4.5.1 in /usr/local/lib/python3.7/dist-packages (from ipywidgets->demo-py) (4.10.1)
Requirement already satisfied: jupyterlab-widgets>=1.0.0; python_version >= "3.6" in /usr/local/lib/python3.7/dist-packages (from ipywidgets->demo-py) (1.0.0)
Requirement already satisfied: nbformat>=4.2.0 in /usr/local/lib/python3.7/dist-packages (from ipywidgets->demo-py) (5.1.2)
Requirement already satisfied: widgetsnbextension~=3.5.0 in /usr/local/lib/python3.7/dist-packages (from ipywidgets->demo-py) (3.5.1)
Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.4 in /usr/local/lib/python3.7/dist-packages (from ipython->demo-py) (1.0.18)
Requirement already satisfied: pickleshare in /usr/local/lib/python3.7/dist-packages (from ipython->demo-py) (0.7.5)
Requirement already satisfied: simplegeneric>0.8 in /usr/local/lib/python3.7/dist-packages (from ipython->demo-py) (0.8.1)
Requirement already satisfied: pexpect; sys_platform != "win32" in /usr/local/lib/python3.7/dist-packages (from ipython->demo-py) (4.8.0)
Requirement already satisfied: decorator in /usr/local/lib/python3.7/dist-packages (from ipython->demo-py) (4.4.2)
Requirement already satisfied: pygments in /usr/local/lib/python3.7/dist-packages (from ipython->demo-py) (2.6.1)
Requirement already satisfied: pytz>=2017.2 in /usr/local/lib/python3.7/dist-packages (from pandas->demo-py) (2018.9)
Requirement already satisfied: entrypoints>=0.2.2 in /usr/local/lib/python3.7/dist-packages (from nbconvert>=4.2->jupyter-contrib-nbextensions->demo-py) (0.3)
Requirement already satisfied: testpath in /usr/local/lib/python3.7/dist-packages (from nbconvert>=4.2->jupyter-contrib-nbextensions->demo-py) (0.4.4)
Requirement already satisfied: defusedxml in /usr/local/lib/python3.7/dist-packages (from nbconvert>=4.2->jupyter-contrib-nbextensions->demo-py) (0.7.1)
Requirement already satisfied: mistune<2,>=0.8.1 in /usr/local/lib/python3.7/dist-packages (from nbconvert>=4.2->jupyter-contrib-nbextensions->demo-py) (0.8.4)
Requirement already satisfied: pandocfilters>=1.4.1 in /usr/local/lib/python3.7/dist-packages (from nbconvert>=4.2->jupyter-contrib-nbextensions->demo-py) (1.4.3)
Requirement already satisfied: bleach in /usr/local/lib/python3.7/dist-packages (from nbconvert>=4.2->jupyter-contrib-nbextensions->demo-py) (3.3.0)
Requirement already satisfied: jupyter-client>=5.2.0 in /usr/local/lib/python3.7/dist-packages (from notebook>=4.0->jupyter-contrib-nbextensions->demo-py) (5.3.5)
Requirement already satisfied: Send2Trash in /usr/local/lib/python3.7/dist-packages (from notebook>=4.0->jupyter-contrib-nbextensions->demo-py) (1.5.0)
Requirement already satisfied: terminado>=0.8.1 in /usr/local/lib/python3.7/dist-packages (from notebook>=4.0->jupyter-contrib-nbextensions->demo-py) (0.9.2)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests<3.0.0,>=2.13.0->spacy>=2.3.2->demo-py) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests<3.0.0,>=2.13.0->spacy>=2.3.2->demo-py) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests<3.0.0,>=2.13.0->spacy>=2.3.2->demo-py) (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<3.0.0,>=2.13.0->spacy>=2.3.2->demo-py) (1.24.3)
Requirement already satisfied: click<7.2.0,>=7.1.1 in /usr/local/lib/python3.7/dist-packages (from typer<0.4.0,>=0.3.0->spacy>=2.3.2->demo-py) (7.1.2)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/dist-packages (from jinja2->spacy>=2.3.2->demo-py) (1.1.1)
Requirement already satisfied: smart-open<4.0.0,>=2.2.0 in /usr/local/lib/python3.7/dist-packages (from pathy>=0.3.5->spacy>=2.3.2->demo-py) (3.0.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=0.20; python_version < "3.8"->spacy>=2.3.2->demo-py) (3.4.1)
Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from cycler>=0.10->matplotlib->demo-py) (1.15.0)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /usr/local/lib/python3.7/dist-packages (from nbformat>=4.2.0->ipywidgets->demo-py) (2.6.0)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.7/dist-packages (from prompt-toolkit<2.0.0,>=1.0.4->ipython->demo-py) (0.2.5)
Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.7/dist-packages (from pexpect; sys_platform != "win32"->ipython->demo-py) (0.7.0)
Requirement already satisfied: webencodings in /usr/local/lib/python3.7/dist-packages (from bleach->nbconvert>=4.2->jupyter-contrib-nbextensions->demo-py) (0.5.1)
Requirement already satisfied: pyzmq>=13 in /usr/local/lib/python3.7/dist-packages (from jupyter-client>=5.2.0->notebook>=4.0->jupyter-contrib-nbextensions->demo-py) (22.0.3)
ModuleNotFoundError Traceback (most recent call last)
in ()
3 get_ipython().system('pip install demo-py')
4
----> 5 from demo import load_checkpoints
6 generator, kp_detector = load_checkpoints(config_path='config/vox-256.yaml',
7 checkpoint_path='/content/gdrive/My Drive/first-order-motion-model/vox-cpk.pth.tar')
ModuleNotFoundError: No module named 'demo'
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
One of my friends recommended me adding demo.py manualy into the Goodgle Drive Folder.
That helped for one try but now i got stuck at "Preform image Animation"
from demo import make_animation
from skimage import img_as_ubyte
predictions = make_animation(source_image, driving_video, generator, kp_detector, relative=True)
#save resulting video
imageio.mimsave('../generated.mp4', [img_as_ubyte(frame) for frame in predictions], fps=fps)
#video can be downloaded from /content folder
HTML(display(source_image, driving_video, predictions).to_html5_video())
Log:
Timestamp Level Message
Mar 25, 2021, 11:09:39 AM WARNING WARNING:root:kernel ce4cbcbb-2a51-4c3f-8e25-24389f444623 restarted
Mar 25, 2021, 11:09:39 AM INFO KernelRestarter: restarting kernel (1/5), keep random ports
Mar 25, 2021, 11:08:13 AM WARNING tcmalloc: large alloc 1345585152 bytes == 0x5601ed3a6000 # 0x7ff6df0431e7 0x7ff6d64b946e 0x7ff6d6509c7b 0x7ff6d6509d97 0x7ff6d65a2887 0x560001d36050 0x560001e2799d 0x560001da9fe9 0x560001da4b0e 0x560001d3777a 0x560001da686a 0x560001da4b0e 0x560001da4813 0x560001da2cc0 0x560001d35ee9 0x560001d35de0 0x560001da9ac2 0x560001da4b0e 0x560001d3777a 0x560001da5c9e 0x560001da4b0e 0x560001d3777a 0x560001da686a 0x560001da4e0d 0x560001d3802c 0x560001d38231 0x560001da71e6 0x560001da4e0d 0x560001d3777a 0x560001da686a 0x560001da4b0e
Mar 25, 2021, 11:08:11 AM WARNING tcmalloc: large alloc 2691170304 bytes == 0x5600dfd8c000 # 0x7ff6df0431e7 0x7ff6d64b946e 0x7ff6d6509c7b 0x7ff6d650ce83 0x7ff6d650d07b 0x7ff6d65ae761 0x560001d36050 0x560001d35de0 0x560001daa244 0x560001da4b0e 0x560001d3777a 0x560001da686a 0x560001da4b0e 0x560001da4813 0x560001da2cc0 0x560001d35ee9 0x560001d35de0 0x560001da9ac2 0x560001da4b0e 0x560001d3777a 0x560001da5c9e 0x560001da4b0e 0x560001d3777a 0x560001da686a 0x560001da4e0d 0x560001d3802c 0x560001d38231 0x560001da71e6 0x560001da4e0d 0x560001d3777a 0x560001da686a
Mar 25, 2021, 11:04:26 AM INFO Adapting to protocol v5.1 for kernel ce4cbcbb-2a51-4c3f-8e25-24389f444623
Mar 25, 2021, 11:04:24 AM INFO Kernel started: ce4cbcbb-2a51-4c3f-8e25-24389f444623
Mar 25, 2021, 11:03:46 AM INFO Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Mar 25, 2021, 11:03:46 AM INFO http://172.28.0.2:9000/
Mar 25, 2021, 11:03:46 AM INFO The Jupyter Notebook is running at:
Mar 25, 2021, 11:03:46 AM INFO 0 active kernels
I have been trying to install tensorflow on my system for python3.8 with pip3 v 20.1.1 ; Linux ( Ubuntu 20.04 LTS ). after the download is complete it returns error that there is not enough space:
Using cached tensorflow-2.2.0-cp38-cp38-manylinux2010_x86_64.whl (516.3 MB)
Requirement already satisfied: google-pasta>=0.1.8 in ./.local/lib/python3.8/site-packages (from tensorflow) (0.2.0)
Requirement already satisfied: protobuf>=3.8.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (3.12.2)
Requirement already satisfied: tensorboard<2.3.0,>=2.2.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (2.2.2)
Requirement already satisfied: opt-einsum>=2.3.2 in ./.local/lib/python3.8/site-packages (from tensorflow) (3.2.1)
Requirement already satisfied: numpy<2.0,>=1.16.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.18.4)
Requirement already satisfied: wrapt>=1.11.1 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.12.1)
Requirement already satisfied: tensorflow-estimator<2.3.0,>=2.2.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (2.2.0)
Requirement already satisfied: absl-py>=0.7.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (0.9.0)
Requirement already satisfied: six>=1.12.0 in /usr/lib/python3/dist-packages (from tensorflow) (1.14.0)
Requirement already satisfied: h5py<2.11.0,>=2.10.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (2.10.0)
Requirement already satisfied: gast==0.3.3 in ./.local/lib/python3.8/site-packages (from tensorflow) (0.3.3)
Requirement already satisfied: astunparse==1.6.3 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.6.3)
Requirement already satisfied: keras-preprocessing>=1.1.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.1.2)
Requirement already satisfied: termcolor>=1.1.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: wheel>=0.26; python_version >= "3" in /usr/lib/python3/dist-packages (from tensorflow) (0.34.2)
Requirement already satisfied: grpcio>=1.8.6 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.29.0)
Requirement already satisfied: scipy==1.4.1; python_version >= "3" in ./.local/lib/python3.8/site-packages (from tensorflow) (1.4.1)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf>=3.8.0->tensorflow) (45.2.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (1.16.1)
Requirement already satisfied: werkzeug>=0.11.15 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (1.0.1)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (0.4.1)
Requirement already satisfied: requests<3,>=2.21.0 in /usr/lib/python3/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (2.22.0)
Requirement already satisfied: markdown>=2.6.8 in /usr/lib/python3/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (3.1.1)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (1.6.0.post3)
Requirement already satisfied: rsa<4.1,>=3.1.4 in ./.local/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (4.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./.local/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (0.2.8)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in ./.local/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (4.1.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in ./.local/lib/python3.8/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow) (1.3.0)
Requirement already satisfied: pyasn1>=0.1.3 in ./.local/lib/python3.8/site-packages (from rsa<4.1,>=3.1.4->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow) (3.1.0)
Installing collected packages: tensorflow
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
I have 2GiB+ free space on all partitions except /srv, /boot and /boot/efi
What do I do?
I'm trying to use Backblaze/b2-sdk-python. I think I managed to install it by just doing pip install b2sdk
$ pip install b2sdk
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: b2sdk in /Library/Python/2.7/site-packages (0.1.8)
Requirement already satisfied: futures>=3.0.5; python_version < "3.2" in /Library/Python/2.7/site-packages (from b2sdk) (3.3.0)
Requirement already satisfied: arrow<0.13.1,>=0.8.0 in /Library/Python/2.7/site-packages (from b2sdk) (0.13.0)
Requirement already satisfied: six>=1.10 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from b2sdk) (1.12.0)
Requirement already satisfied: logfury>=0.1.2 in /Library/Python/2.7/site-packages (from b2sdk) (0.1.2)
Requirement already satisfied: enum34>=1.1.6; python_version < "3.4" in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from b2sdk) (1.1.6)
Requirement already satisfied: setuptools in /Library/Python/2.7/site-packages (from b2sdk) (44.0.0)
Requirement already satisfied: tqdm>=4.5.0 in /Library/Python/2.7/site-packages (from b2sdk) (4.43.0)
Requirement already satisfied: requests>=2.9.1 in /Library/Python/2.7/site-packages (from b2sdk) (2.23.0)
Requirement already satisfied: backports.functools-lru-cache>=1.2.1; python_version == "2.7" in /Library/Python/2.7/site-packages (from arrow<0.13.1,>=0.8.0->b2sdk) (1.6.1)
Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from arrow<0.13.1,>=0.8.0->b2sdk) (1.5)
Requirement already satisfied: funcsigs in /Library/Python/2.7/site-packages (from logfury>=0.1.2->b2sdk) (1.0.2)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Library/Python/2.7/site-packages (from requests>=2.9.1->b2sdk) (1.25.8)
Requirement already satisfied: idna<3,>=2.5 in /Library/Python/2.7/site-packages (from requests>=2.9.1->b2sdk) (2.9)
Requirement already satisfied: chardet<4,>=3.0.2 in /Library/Python/2.7/site-packages (from requests>=2.9.1->b2sdk) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Python/2.7/site-packages (from requests>=2.9.1->b2sdk) (2019.11.28)
But following the Quick Start Guide after I do
>>> from b2sdk.v1 import *
Then I get
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named v1
May I ask what is going on?
I'm using Python 2.7.16 on macOS.
I'm trying to install Google Cloud's Video Intelligence library for Python.
However, when I run the command:
pip install --upgrade google-cloud-videointelligence
I get the following error:
(video_labeler) PS C:\path> pip install google-cloud-videointelligence
Collecting google-cloud-videointelligence
Using cached https://files.pythonhosted.org/packages/f0/32/4518904fb73fa8264c6e827df6c062e3c62b0a6dc7eb34a35b7e60d3ed93/google_cloud_videointelligence-1.11.0-py2.py3-none-any.whl
Requirement already satisfied: google-api-core[grpc]<2.0.0dev,>=1.14.0 in c:\path\lib\site-packages (from google-cloud-videointelligence) (1.14.3)
Requirement already satisfied: six>=1.10.0 in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (1.12.0)
Requirement already satisfied: protobuf>=3.4.0 in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (3.10.0)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (2.22.0)
Requirement already satisfied: pytz in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (2019.3)
Requirement already satisfied: setuptools>=34.0.0 in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (40.8.0)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.6.0 in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (1.6.0)
Requirement already satisfied: google-auth<2.0dev,>=0.4.0 in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (1.6.3)
Requirement already satisfied: grpcio<2.0dev,>=1.8.2; extra == "grpc" in c:\path\lib\site-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (1.24.1)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\path\lib\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (1.25.6)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\path\lib\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\path\lib\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (2019.9.11)
Requirement already satisfied: idna<2.9,>=2.5 in c:\path\lib\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (2.8)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\path\lib\site-packages (from google-auth<2.0dev,>=0.4.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (0.2.7)
Requirement already satisfied: cachetools>=2.0.0 in c:\path\lib\site-packages (from google-auth<2.0dev,>=0.4.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (3.1.1)
Requirement already satisfied: rsa>=3.1.4 in c:\path\lib\site-packages (from google-auth<2.0dev,>=0.4.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (4.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\path\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2.0dev,>=0.4.0->google-api-core[grpc]<2.0.0dev,>=1.14.0->google-cloud-videointelligence) (0.4.7)
Installing collected packages: google-cloud-videointelligence
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\\path\\Lib\\site-packages\\google\\cloud\\videointelligence_v1p1beta1\\gapic\\transports\\__pycache__\\video_intelligence_service_grpc_transport.cpython-37.pyc'
This is being run in a virtualenv based on Python 3.7.
Help to fixing this will be greatly appreciated.
try installing in a virtualenv
Mac/Linux
pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-videointelligence
Windows
pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-videointelligence
On linux redhat:
I tried to install jupyter locally:
$ pip install jupyter --user
and it seems as everything was installed properly...
But - I cannot runt jupyter notebook, nor ~/.local/bin/jupyter notebook
Why?
The installation...
$ pip install jupyter --user
Collecting jupyter Using cached
jupyter-1.0.0-py2.py3-none-any.whl Requirement already satisfied:
ipywidgets in ~/.local/lib/python2.7/site-packages
(from jupyter) Requirement already satisfied: notebook in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: ipykernel in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: qtconsole in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: jupyter-console in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: nbconvert in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: traitlets>=4.2.1 in
~/.local/lib/python2.7/site-packages (from
ipywidgets->jupyter) Requirement already satisfied: ipython>=4.0.0 in
~/.local/lib/python2.7/site-packages (from
ipywidgets->jupyter) Requirement already satisfied:
widgetsnbextension>=1.2.6 in
~/.local/lib/python2.7/site-packages (from
ipywidgets->jupyter) Requirement already satisfied: tornado>=4 in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: terminado>=0.3.3;
sys_platform != "win32" in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: jupyter-core in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: jinja2 in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: ipython-genutils in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: nbformat in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: jupyter-client in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: pygments in
~/.local/lib/python2.7/site-packages (from
qtconsole->jupyter) Requirement already satisfied:
prompt-toolkit<2.0.0,>=1.0.0 in
~/.local/lib/python2.7/site-packages (from
jupyter-console->jupyter) Requirement already satisfied: mistune!=0.6
in ~/.local/lib/python2.7/site-packages (from
nbconvert->jupyter) Requirement already satisfied: entrypoints in
~/.local/lib/python2.7/site-packages (from
nbconvert->jupyter) Requirement already satisfied: decorator in
~/.local/lib/python2.7/site-packages (from
traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied:
enum34; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied:
six in ~/.local/lib/python2.7/site-packages (from
traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied:
setuptools>=18.5 in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
backports.shutil-get-terminal-size; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
simplegeneric>0.8 in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
pickleshare in ~/.local/lib/python2.7/site-packages
(from ipython>=4.0.0->ipywidgets->jupyter) Requirement already
satisfied: pexpect; sys_platform != "win32" in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
pathlib2; python_version == "2.7" or python_version == "3.3" in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
backports.ssl-match-hostname in
~/.local/lib/python2.7/site-packages (from
tornado>=4->notebook->jupyter) Requirement already satisfied:
backports-abc>=0.4 in
~/.local/lib/python2.7/site-packages (from
tornado>=4->notebook->jupyter) Requirement already satisfied: certifi
in ~/.local/lib/python2.7/site-packages (from
tornado>=4->notebook->jupyter) Requirement already satisfied:
singledispatch in ~/.local/lib/python2.7/site-packages
(from tornado>=4->notebook->jupyter) Requirement already satisfied:
ptyprocess in ~/.local/lib/python2.7/site-packages
(from terminado>=0.3.3; sys_platform != "win32"->notebook->jupyter)
Requirement already satisfied: MarkupSafe in
~/.local/lib/python2.7/site-packages (from
jinja2->notebook->jupyter) Requirement already satisfied:
jsonschema!=2.5.0,>=2.0 in
~/.local/lib/python2.7/site-packages (from
nbformat->notebook->jupyter) Requirement already satisfied: pyzmq>=13
in ~/.local/lib/python2.7/site-packages (from
jupyter-client->notebook->jupyter) Requirement already satisfied:
wcwidth in ~/.local/lib/python2.7/site-packages (from
prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter) Requirement
already satisfied: configparser>=3.5; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
entrypoints->nbconvert->jupyter) Requirement already satisfied:
functools32; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
jsonschema!=2.5.0,>=2.0->nbformat->notebook->jupyter) Installing
collected packages: jupyter Successfully installed jupyter-1.0.0
Set two variables first whose CMD commands are below:
set PYSPARK_DRIVER_PYTHON_OPTS=notebook
set PYSPARK_DRIVER_PYTHON=ipython
Now run pyspark with command pyspark, which will open 8888(default) port with jupyter running initiated sparkContext.