ubuntuusers.de

pip

Status: Ungelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |
Dieses Thema ist die Diskussion des Artikels pip.

linux_joy

Anmeldungsdatum:
6. Februar 2008

Beiträge: 803

Wohnort: Hannover

Hallo,

die folgenden Links im Artikel sind tot:

Leider weiß ich nicht, was man dafür als adäquaten Ersatz nehmen könnte, deshalb poste ich das hier 😉 , als Hilfe könnte vllt. dieses dienen: offizielle Dokumentation 🇬🇧 leitet weiter zu https://pip.pypa.io//en/latest/ (ist es übrigens nicht komisch, das "...io//en..."?)

noisefloor Team-Icon

(Themenstarter)

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

Links sind korrigiert.

Gruß, noisefloor

linux_joy

Anmeldungsdatum:
6. Februar 2008

Beiträge: 803

Wohnort: Hannover

noisefloor schrieb:

Hallo,

Links sind korrigiert.

Gruß, noisefloor

Hallo,

danke, noisefloor.

Der folgende Link ist aber leider immer noch nicht korrigiert (ganz oben):

noisefloor Team-Icon

(Themenstarter)

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

auch korrigiert, Danke für den Hinweis.

Gruß, noisefloor

noisefloor Team-Icon

(Themenstarter)

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

zwecks Überarbeitung in der Baustelle.

Gruß, noisefloor

noisefloor Team-Icon

(Themenstarter)

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

habe den Artikel im größeren Maßstab überarbeitet / aktualisiert / präzisiert. Bitte mal drüber schauen.

Gruß, noisefloor

linux_joy

Anmeldungsdatum:
6. Februar 2008

Beiträge: 803

Wohnort: Hannover

Hallo noisefloor,

zunächst einmal herzlichen Dank an Dich für Deine Mühe!

Hier kommen nun meine Anmerkungen der Reihe nach:

Beispiele

Der folgende Befehl installiert das Modul "markdown" systemweit:

→→→ Das letzte Wort sollte wohl eher "lokal" heißen 😉

pip3 install --user markdown 
Collecting markdown
  Downloading Markdown-2.6.11-py2.py3-none-any.whl (78kB)
    100% |████████████████████████████████| 81kB 1.2MB/s 
Installing collected packages: markdown
Successfully installed markdown-2.6.11

Die Deinstallation sieht so aus:

pip uninstall markdown 
Uninstalling Markdown-2.6.11:
  /home/NUTZER/.local/bin/markdown_py
  /home/NUTZER/.local/lib/python3.5/site-packages/Markdown-2.6.11.dist-info/DESCRIPTION.rst
  ...
  /home/NUTZER/.local/lib/python3.5/site-packages/markdown/extensions/abbr.py
  ...
  /home/NUTZER/.local/lib/python3.5/site-packages/markdown/treeprocessors.py
  /home/NUTZER/.local/lib/python3.5/site-packages/markdown/util.py
Proceed (y/n)? y
  Successfully uninstalled Markdown-2.6.11

→→→ Also: "pip" statt "pip3"; zur lokalen Deinstallation ist kein --user erforderlich (Spezifikation lediglich durch fehlendes sudo)? 😉

Mit dem folgenden Befehl wird ein Modul aktualisiert, hier im Beispiel "markdown":

pip install -U markdown 

pip prüft dabei direkt, ob die Abhängigkeiten des Moduls ebenfalls aktuell sind. Sonst werden diese auch auf den neusten Stand gebracht.

→→→ Also wieder: "pip" statt "pip3"; zur lokalen Aktualisierung ist erneut kein --user erforderlich (Spezifikation lediglich durch fehlendes sudo)? 😉

Der folgende Befehl zeigt alle installierter Python-Module - auch derer, die über die Paketverwaltung von Ubuntu installiert wurden:

pip3 list 
-lxc (0.1)
apt-xapian-index (0.47)
apturl (0.5.2)
beautifulsoup4 (4.4.1)
...
unity-scope-yelp (0.1)
unity-scope-zotero (0.1)
urllib3 (1.22)
usb-creator (0.3.0)
virtualenv (15.0.1)
wheel (0.29.0)
xdiagnose (3.8.4.1)
xkit (0.0.0)
XlsxWriter (0.7.3)

→→→ Also wird gegenüber dem bisherigen Artikel freeze nun durch list ersetzt: Vorteil? 😉

(...)
Um mehrere Module zu installieren, kann man eine einfache Text-Datei anlegen, in den die Modulnamen aufgeführt sind. Sieht die Datei names requirements.txt z.B. so aus:

markdown
jinja2
howdoi

dann würde der Befehl

pip3 install --user -r requirments.txt 

die Module markdown, jinja2 und howdoi lokal installieren. Dies würde auch für die Deinstallation mit dem Befehl uninstall funktionieren.

→→→ Die Datei muss also zwingend requirements.txt heißen, oder ist ihr Name frei wählbar? Außerdem: Ginge stattdessen nicht auch einfach der folgende Befehl?

pip3 install --user markdown jinja2 howdoi 

bzw. der Einfachheit halber, falls man bereits ein oder zwei der Module installiert hat und diese bei der Installation des dritten Modules "in einem Aufwasch gleich mit aktualisiert":

pip3 install --user -U markdown jinja2 howdoi 

😉

→→→ Zumindest in /usr/local/lib/python2.7/ habe ich neben den dist-packages auch noch das Verzeichnis dist-packages. Was würde denn da hinein installiert?

→→→ Es gibt anscheinend eine Hierarchie: Zuerst kommen die lokal installierten Module, dann die systemweiten und am Schluss die Module, die über die Paketverwaltung installiert wurden. Richtig? Und was ist mit /usr/local/lib/python2.7/dist-packages/ bzw. /usr/local/lib/python3.4/dist-packages/? Installiert pip in Ersteres und pip3 in Letzteres? Wären das dann beim gleichen Modul in beiden Verzeichnissen jeweils unterschiedliche Versionen oder nicht (und wenn unterschiedlich: Hierarchie?)?

Vielen Dank im Voraus!

noisefloor Team-Icon

(Themenstarter)

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

Also wird gegenüber dem bisherigen Artikel freeze nun durch list ersetzt: Vorteil?

RTMF. Zum Anzeigen geht beides, freeze ist aber eigentlich dafür da, wenn man eine requirements.txt für sich erstellen möchte.

Die Datei muss also zwingend requirements.txt heißen, oder ist ihr Name frei wählbar?

Letzteres, requirements.txt ist aber das, was üblich ist.

Außerdem: Ginge stattdessen nicht auch einfach der folgende Befehl?

Ja, geht.

Zumindest in /usr/local/lib/python2.7/ habe ich neben den dist-packages auch noch das Verzeichnis dist-packages. Was würde denn da hinein installiert?

??? - 2x das gleiche Verzeichnis?

Python 2.7 und 3.x sind immer getrennt, auch die Module sind getrennt. Was für P2.7 installiert ist sieht P3.X nicht und umgekehrt.7

Der Rest ist korrigiert, sofern Korrekturbedarf bestand. Wenn du sonst noch Fragen zur praktischen Nutzung von pip hast, machst du am besten einen Thread im Supportforum auf. Das ist effektiver, als hier in der Diskussion zum Artikel.

Gruß, noisefloor

linux_joy

Anmeldungsdatum:
6. Februar 2008

Beiträge: 803

Wohnort: Hannover

noisefloor schrieb:

Hallo,

(...)

Zumindest in /usr/local/lib/python2.7/ habe ich neben den dist-packages auch noch das Verzeichnis dist-packages. Was würde denn da hinein installiert?

??? - 2x das gleiche Verzeichnis?

Tja... der Sch*** Fehlerteufel!!! Richtig ist: "Zumindest in /usr/local/lib/python2.7/ habe ich neben den dist-packages auch noch das Verzeichnis site-packages. Was würde denn da hinein installiert?"

Python 2.7 und 3.x sind immer getrennt, auch die Module sind getrennt. Was für P2.7 installiert ist sieht P3.X nicht und umgekehrt.7

Also, ich zitiere der Einfachheit halber mal aus der Baustelle:

Wohin werden mit pip installierte Python-Module installiert?

(...)
Wird pip mit Root-Rechten ausgeführt, befinden sich die installierten Module im Verzeichnis /usr/local/lib/pythonX.Y/dist-packages/ bzw. einem Unterverzeichnis davon, wobei X.Y die Python-Version ist, für die installiert wurde. Sind im Python-Modul ausführbare Programme enthalten, werden diese nach /usr/local/bin abgelegt.

Und bei lokal installierten Modulen: "Sind im Python-Modul ausführbare Programm enthalten, werden diese im Homeverzeichnis des Nutzers unter ~/.local/bin abgelegt. "

Und genau darauf will ich hinaus: Wäre z.B. das Modul youtube-dl systemweit jeweils unter Python 2 und 3 installiert, dann könnte es in /usr/local/bin trotzdem nur ein einziges ausführbares Programm mit Namen "youtube-dl" geben, nämlich das von dem zuletzt installierten Python-Modul. Also sind zwar die Module getrennt, nicht jedoch deren ausführbare Programme!

Der Rest ist korrigiert, sofern Korrekturbedarf bestand. Wenn du sonst noch Fragen zur praktischen Nutzung von pip hast, machst du am besten einen Thread im Supportforum auf. Das ist effektiver, als hier in der Diskussion zum Artikel.

Gruß, noisefloor

Zunächst ein Zitat von mir:

→→→ Es gibt anscheinend eine Hierarchie: Zuerst kommen die lokal installierten Module, dann die systemweiten und am Schluss die Module, die über die Paketverwaltung installiert wurden. Richtig? Und was ist mit /usr/local/lib/python2.7/dist-packages/ bzw. /usr/local/lib/python3.4/dist-packages/? Installiert pip in Ersteres und pip3 in Letzteres? Wären das dann beim gleichen Modul in beiden Verzeichnissen jeweils unterschiedliche Versionen oder nicht (und wenn unterschiedlich: Hierarchie?)?

Hier habe ich anscheinend so einiges dureinandergebracht, wobei davon am schlimmsten die fehlende Unterscheidung zwischen den installierten Modulen und deren etwaigen ausführbaren Programmen!





Nun zum Punkt "Kombinierte Installation bzw. Update lokaler Python-Module" ("streamlink" ist bereits installiert):

pip3 install -U streamlink markdown 
Requirement already up-to-date: streamlink in ./.local/lib/python3.4/site-packages
Downloading/unpacking markdown
  Downloading Markdown-2.6.11-py2.py3-none-any.whl (78kB): 78kB downloaded
Downloading/unpacking requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0 from https://pypi.python.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl#md5=eb9be71cc41fd73a51a7c9cd1adde5de (from streamlink)
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB): 88kB downloaded
Requirement already up-to-date: pycryptodome>=3.4.3,<4 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso-639 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso3166 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: websocket-client in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: PySocks>=1.5.6,!=1.5.7 in ./.local/lib/python3.4/site-packages (from streamlink)
Downloading/unpacking urllib3>=1.21.1,<1.23 from https://pypi.python.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl#md5=1c11e1c80371cc4e89911071010a98d1 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB): 132kB downloaded
Downloading/unpacking certifi>=2017.4.17 from https://pypi.python.org/packages/fa/53/0a5562e2b96749e99a3d55d8c7df91c9e4d8c39a9da1f1a49ac9e4f4b39f/certifi-2018.1.18-py2.py3-none-any.whl#md5=38f1c6a4a5d6b5e8bcb614354d6584c9 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB): 151kB downloaded
Requirement already up-to-date: chardet>=3.0.2,<3.1.0 in /usr/local/lib/python3.4/dist-packages (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
Downloading/unpacking idna>=2.5,<2.7 from https://pypi.python.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl#md5=875c4a7b32b4897537d5ea9247b5c79e (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Installing collected packages: markdown, requests, urllib3, certifi, idna
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 206, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 193, in clobber
    os.makedirs(destsubdir)
  File "/usr/lib/python3.4/os.py", line 237, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/Markdown-2.6.11.dist-info'

Storing debug log for failure in /home/oom/.pip/pip.log

Fehler!!!

Also ein weiterer Versuch: Erfolg!

pip3 install --user -U streamlink markdown 
Requirement already up-to-date: streamlink in ./.local/lib/python3.4/site-packages
Downloading/unpacking markdown
  Downloading Markdown-2.6.11-py2.py3-none-any.whl (78kB): 78kB downloaded
Downloading/unpacking requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0 from https://pypi.python.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl#md5=eb9be71cc41fd73a51a7c9cd1adde5de (from streamlink)
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB): 88kB downloaded
Requirement already up-to-date: pycryptodome>=3.4.3,<4 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso-639 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso3166 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: websocket-client in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: PySocks>=1.5.6,!=1.5.7 in ./.local/lib/python3.4/site-packages (from streamlink)
Downloading/unpacking idna>=2.5,<2.7 from https://pypi.python.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl#md5=875c4a7b32b4897537d5ea9247b5c79e (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking certifi>=2017.4.17 from https://pypi.python.org/packages/fa/53/0a5562e2b96749e99a3d55d8c7df91c9e4d8c39a9da1f1a49ac9e4f4b39f/certifi-2018.1.18-py2.py3-none-any.whl#md5=38f1c6a4a5d6b5e8bcb614354d6584c9 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB): 151kB downloaded
Requirement already up-to-date: chardet>=3.0.2,<3.1.0 in /usr/local/lib/python3.4/dist-packages (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
Downloading/unpacking urllib3>=1.21.1,<1.23 from https://pypi.python.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl#md5=1c11e1c80371cc4e89911071010a98d1 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB): 132kB downloaded
Installing collected packages: markdown, requests, idna, certifi, urllib3
Successfully installed markdown requests idna certifi urllib3
Cleaning up...



Übrigens lassen sich Module NICHT lokal installieren, falls es die gleichnamigen bereits systemweit sind:

pip3 install --user youtube-dl livestreamer 
Requirement already satisfied (use --upgrade to upgrade): youtube-dl in /usr/local/lib/python3.4/dist-packages
Requirement already satisfied (use --upgrade to upgrade): livestreamer in /usr/local/lib/python3.4/dist-packages
Requirement already satisfied (use --upgrade to upgrade): requests>=1.0,<3.0 in /usr/local/lib/python3.4/dist-packages (from livestreamer)
Cleaning up...

noisefloor Team-Icon

(Themenstarter)

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

Also sind zwar die Module getrennt, nicht jedoch deren ausführbare Programme!

Das ist doch auch völlig Latte, ob eine ausführbares Programm mit P2 oder P3 läuft - _wie_ das Programm sein Funktionalität bereit stellt, ist doch gleich. Das ist genau so, als würde es von Interesse sein, ob ein C-Programm mit gcc 5.0.1 oder 5.4.0 kompiliert ist.

Übrigens lassen sich Module NICHT lokal installieren, falls es die gleichnamigen bereits systemweit sind.

Werde ich testen.

Generell ist es übrigens _sehr_ empfehlenswert, so oft wie möglich ein virtual environment zu nutzen. Dann hat man alles schön sauber getrennt.

Gruß, noisefloor

noisefloor Team-Icon

(Themenstarter)

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

so fertig. Aus meiner Sicht zumindest. Verbesserungsvorschläge etc. sind nach wie vor willkommen.

Gruß, noisefloor

linux_joy

Anmeldungsdatum:
6. Februar 2008

Beiträge: 803

Wohnort: Hannover

Hallo,

noisefloor schrieb:

(...)
so fertig. Aus meiner Sicht zumindest. Verbesserungsvorschläge etc. sind nach wie vor willkommen.

(...)

Gerne, siehe meine letzten Seiten-Bearbeitungen 😉


Noch was:

Mit dem folgenden Befehl wird ein Modul aktualisiert, hier im Beispiel "markdown":

pip3 install -U markdown 

pip prüft dabei direkt, ob die Abhängigkeiten des Moduls ebenfalls aktuell sind. Sonst werden diese auch auf den neusten Stand gebracht.

Das würde bei mir (mit Ubuntu 14.04) zunächst auch so funktionieren, allerdings nur, weil das Modul aufm neuesten Stand ist:

Requirement already up-to-date: markdown in ./.local/lib/python3.4/site-packages
Cleaning up...

Denn bei STREAMLINK würde die Installation des aktualisierten Modules scheitern:

pip3 install -U streamlink 
Downloading/unpacking streamlink from https://pypi.python.org/packages/90/cc/9be3a49696ebb9328ff62e90b0165e194e5863d7755b6a659f4b668063fd/streamlink-0.10.0.tar.gz#md5=30fb17a494ba9f4c33a2f3c6435026f4
  Downloading streamlink-0.10.0.tar.gz (555kB): 555kB downloaded
  Running setup.py (path:/tmp/pip_build_oom/streamlink/setup.py) egg_info for package streamlink
    
    no previously-included directories found matching 'docs/_build'
Requirement already up-to-date: requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: pycryptodome>=3.4.3,<4 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso-639 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso3166 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: websocket-client in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: PySocks>=1.5.6,!=1.5.7 in ./.local/lib/python3.4/site-packages (from streamlink)
Installing collected packages: streamlink
  Found existing installation: streamlink 0.9.0
    Uninstalling streamlink:
      Successfully uninstalled streamlink
  Running setup.py install for streamlink
    error: could not create '/usr/local/lib/python3.4/dist-packages/streamlink': Permission denied
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_oom/streamlink/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-umv7kglt-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib

creating build/lib/streamlink

copying src/streamlink/buffers.py -> build/lib/streamlink

copying src/streamlink/options.py -> build/lib/streamlink

copying src/streamlink/cache.py -> build/lib/streamlink

copying src/streamlink/__init__.py -> build/lib/streamlink

copying src/streamlink/compat.py -> build/lib/streamlink

.
.
.
.

creating build/lib/streamlink/utils

copying src/streamlink/utils/__init__.py -> build/lib/streamlink/utils

copying src/streamlink/utils/crypto.py -> build/lib/streamlink/utils

copying src/streamlink/utils/named_pipe.py -> build/lib/streamlink/utils

copying src/streamlink/utils/l10n.py -> build/lib/streamlink/utils

creating build/lib/streamlink/plugin

copying src/streamlink/plugin/__init__.py -> build/lib/streamlink/plugin

copying src/streamlink/plugin/plugin.py -> build/lib/streamlink/plugin

creating build/lib/streamlink/packages

copying src/streamlink/packages/__init__.py -> build/lib/streamlink/packages

copying src/streamlink/packages/requests_file.py -> build/lib/streamlink/packages

creating build/lib/streamlink_cli/utils

copying src/streamlink_cli/utils/progress.py -> build/lib/streamlink_cli/utils

copying src/streamlink_cli/utils/__init__.py -> build/lib/streamlink_cli/utils

.
.
.
.
.

copying src/streamlink/packages/flashmedia/packet.py -> build/lib/streamlink/packages/flashmedia

copying src/streamlink/packages/flashmedia/f4v.py -> build/lib/streamlink/packages/flashmedia

copying src/streamlink/packages/flashmedia/amf.py -> build/lib/streamlink/packages/flashmedia

copying src/streamlink/packages/flashmedia/types.py -> build/lib/streamlink/packages/flashmedia

copying src/streamlink/packages/flashmedia/flv.py -> build/lib/streamlink/packages/flashmedia

running install_lib

creating /usr/local/lib/python3.4/dist-packages/streamlink

error: could not create '/usr/local/lib/python3.4/dist-packages/streamlink': Permission denied

----------------------------------------
  Rolling back uninstall of streamlink
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_oom/streamlink/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-umv7kglt-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_oom/streamlink
Storing debug log for failure in /home/oom/.pip/pip.log

Also wohl lieber doch gleich:

pip3 install --user -U markdown 

?!

linux_joy

Anmeldungsdatum:
6. Februar 2008

Beiträge: 803

Wohnort: Hannover

Hallo,

analog zum Befehl aus Alle Python-Pakete mit pip aktualisieren; zunächst:

pip3 freeze --local 
Markdown==2.6.11
PySocks==1.6.8
certifi==2018.1.18
chardet==3.0.4
idna==2.6
iso-639==0.4.5
iso3166==0.8
livestreamer==1.12.2
mps-youtube==0.2.7.1
pafy==0.5.3.1
pycryptodome==3.4.7
requests==2.18.4
streamlink==0.10.0
urllib3==1.22
virtualenv==15.1.0
websocket-client==0.46.0
youtube-dl==2017.6.12

Wobei z.B. "youtube-dl" aber systemweit installiert ist: Aber der Befehl

pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip3 install --user -U 

installiert es jetzt zusätzlich lokal:

Requirement already up-to-date: Markdown in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: PySocks in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: certifi in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: chardet in /usr/local/lib/python3.4/dist-packages
Cleaning up...
Requirement already up-to-date: idna in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: iso-639 in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: iso3166 in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: livestreamer in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: requests>=1.0,<3.0 in ./.local/lib/python3.4/site-packages (from livestreamer)
Cleaning up...
Requirement already up-to-date: mps-youtube in /usr/local/lib/python3.4/dist-packages
Cleaning up...
Requirement already up-to-date: pafy in /usr/local/lib/python3.4/dist-packages
Cleaning up...
Requirement already up-to-date: pycryptodome in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: requests in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: streamlink in ./.local/lib/python3.4/site-packages
Requirement already up-to-date: requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: pycryptodome>=3.4.3,<4 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso-639 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso3166 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: websocket-client in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: PySocks>=1.5.6,!=1.5.7 in ./.local/lib/python3.4/site-packages (from streamlink)
Cleaning up...
Requirement already up-to-date: urllib3 in ./.local/lib/python3.4/site-packages
Cleaning up...
Requirement already up-to-date: virtualenv in /usr/local/lib/python3.4/dist-packages
Cleaning up...
Requirement already up-to-date: websocket-client in ./.local/lib/python3.4/site-packages
Cleaning up...
Downloading/unpacking youtube-dl from https://pypi.python.org/packages/aa/df/6026e07693f8862faeadca04066cad617f57e79d724a5d80a9b41ef3047a/youtube_dl-2018.1.21-py2.py3-none-any.whl#md5=50cb3e5c6a578aeafc7ffed3b53d21e8
  Downloading youtube_dl-2018.1.21-py2.py3-none-any.whl (1.7MB): 1.7MB downloaded
Installing collected packages: youtube-dl
Successfully installed youtube-dl
Cleaning up...
pip3 freeze --local 
Markdown==2.6.11
PySocks==1.6.8
certifi==2018.1.18
chardet==3.0.4
idna==2.6
iso-639==0.4.5
iso3166==0.8
livestreamer==1.12.2
mps-youtube==0.2.7.1
pafy==0.5.3.1
pycryptodome==3.4.7
requests==2.18.4
streamlink==0.10.0
urllib3==1.22
virtualenv==15.1.0
websocket-client==0.46.0
youtube-dl==2018.1.21
ls -la /usr/local/lib/python3.4/dist-packages 
insgesamt 196
drwxrwsr-x 24 root staff  4096 Jun 13  2017 .
drwxrwsr-x  3 root staff  4096 Apr 16  2014 ..
drwxr-sr-x  3 root staff  4096 Jun 13  2017 certifi
drwxr-sr-x  2 root staff  4096 Jun 13  2017 certifi-2017.4.17.dist-info
drwxr-sr-x  4 root staff  4096 Jun 13  2017 chardet
drwxr-sr-x  2 root staff  4096 Jun 13  2017 chardet-3.0.4.dist-info
drwxr-sr-x  3 root staff  4096 Jun 13  2017 idna
drwxr-sr-x  2 root staff  4096 Jun 13  2017 idna-2.5.dist-info
drwxr-sr-x  7 root staff  4096 Aug  8  2016 livestreamer
drwxr-sr-x  2 root staff  4096 Aug  8  2016 livestreamer-1.12.2.egg-info
drwxr-sr-x  5 root staff  4096 Aug  8  2016 livestreamer_cli
drwxr-sr-x  4 root staff  4096 Aug  8  2016 mps_youtube
drwxr-sr-x  2 root staff  4096 Aug  8  2016 mps_youtube-0.2.7.1.dist-info
drwxr-sr-x  3 root staff  4096 Feb 22  2017 pafy
drwxr-sr-x  2 root staff  4096 Feb 22  2017 pafy-0.5.3.1.egg-info
drwxr-sr-x  2 root staff  4096 Jun  9  2017 __pycache__
drwxr-sr-x  3 root staff  4096 Jun 13  2017 requests
drwxr-sr-x  2 root staff  4096 Jun 13  2017 requests-2.17.3.dist-info
drwxr-sr-x  6 root staff  4096 Jun 13  2017 urllib3
drwxr-sr-x  2 root staff  4096 Jun 13  2017 urllib3-1.21.1.dist-info
drwxr-sr-x  2 root staff  4096 Jun  9  2017 virtualenv-15.1.0.dist-info
-rw-r--r--  1 root root  99021 Jun  9  2017 virtualenv.py
drwxr-sr-x  3 root staff  4096 Jun  9  2017 virtualenv_support
drwxr-sr-x  6 root staff  4096 Jun 13  2017 youtube_dl
drwxr-sr-x  2 root staff  4096 Jun 13  2017 youtube_dl-2017.6.12.dist-info
ls -la ~/.local/lib/python3.4/site-packages 
insgesamt 144
drwx------ 27    4096 Jan 25 08:12 .
drwx------  3    4096 Jan 19 14:48 ..
drwxrwxr-x  3    4096 Jan 19 15:00 certifi
drwxrwxr-x  2    4096 Jan 19 15:00 certifi-2018.1.18.dist-info
drwxrwxr-x 13    4096 Jan 19 14:49 Crypto
drwxrwxr-x  3    4096 Jan 19 15:00 idna
drwxrwxr-x  2    4096 Jan 19 15:00 idna-2.6.dist-info
drwxrwxr-x  3    4096 Jan 19 14:49 iso3166
drwxrwxr-x  2    4096 Jan 19 14:49 iso3166-0.8.dist-info
drwxrwxr-x  3    4096 Jan 19 14:49 iso639
drwxrwxr-x  2    4096 Jan 19 14:49 iso_639-0.4.5.egg-info
drwxrwxr-x  4    4096 Jan 19 15:00 markdown
drwxrwxr-x  2    4096 Jan 19 15:00 Markdown-2.6.11.dist-info
drwxrwxr-x  2    4096 Jan 19 14:49 __pycache__
drwxrwxr-x  2    4096 Jan 19 14:49 pycryptodome-3.4.7.egg-info
drwxrwxr-x  2    4096 Jan 19 14:49 PySocks-1.6.8.egg-info
drwxrwxr-x  3    4096 Jan 19 15:00 requests
drwxrwxr-x  2    4096 Jan 19 15:00 requests-2.18.4.dist-info
-rw-rw-r--  1    2913 Jan 19 14:48 sockshandler.py
-rw-rw-r--  1   32281 Jan 19 14:48 socks.py
drwxrwxr-x  8    4096 Jan 25 07:10 streamlink
drwxrwxr-x  2    4096 Jan 25 07:10 streamlink-0.10.0.egg-info
drwxrwxr-x  4    4096 Jan 25 07:10 streamlink_cli
drwxrwxr-x  6    4096 Jan 19 15:00 urllib3
drwxrwxr-x  2    4096 Jan 19 15:00 urllib3-1.22.dist-info
drwxrwxr-x  4    4096 Jan 19 14:49 websocket
drwxrwxr-x  2    4096 Jan 19 14:49 websocket_client-0.46.0.dist-info
drwxrwxr-x  6    4096 Jan 25 08:12 youtube_dl
drwxrwxr-x  2    4096 Jan 25 08:12 youtube_dl-2018.1.21.dist-info

"youtube-dl" zumindest lässt sich also zusätzlich lokal installieren (das bereits systemweit installierte Modul bleibt dabei unangetastet), wie das mit anderen global installierten Modulen aussähe, das könntest ja z.B. Du mal testen 😬

Es geht also grundsätzlich doch, die gleichzeitige systemweite und lokale Installation eines Modules!



Zu Letzterem verhilft ebenso die Option --force-reinstall:

pip3 install --user -U markdown streamlink livestreamer mps-youtube youtube-dl 
Requirement already up-to-date: markdown in ./.local/lib/python3.4/site-packages
Requirement already up-to-date: streamlink in ./.local/lib/python3.4/site-packages
Requirement already up-to-date: livestreamer in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: mps-youtube in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: youtube-dl in ./.local/lib/python3.4/site-packages
Requirement already up-to-date: requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: pycryptodome>=3.4.3,<4 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso-639 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: iso3166 in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: websocket-client in ./.local/lib/python3.4/site-packages (from streamlink)
Requirement already up-to-date: PySocks>=1.5.6,!=1.5.7 in ./.local/lib/python3.4/site-packages (from streamlink)
Cleaning up...
pip3 install --user -U --force-reinstall markdown streamlink livestreamer mps-youtube youtube-dl 
Downloading/unpacking markdown
  Downloading Markdown-2.6.11-py2.py3-none-any.whl (78kB): 78kB downloaded
Downloading/unpacking streamlink
  Downloading streamlink-0.10.0.tar.gz (555kB): 555kB downloaded
  Running setup.py (path:/tmp/pip_build_oom/streamlink/setup.py) egg_info for package streamlink
    
    no previously-included directories found matching 'docs/_build'
Downloading/unpacking livestreamer
  Downloading livestreamer-1.12.2.tar.gz (430kB): 430kB downloaded
  Running setup.py (path:/tmp/pip_build_oom/livestreamer/setup.py) egg_info for package livestreamer
    
    warning: no files found matching 'AUTHORS'
Downloading/unpacking mps-youtube
  Downloading mps_youtube-0.2.7.1-py3-none-any.whl (74kB): 74kB downloaded
Downloading/unpacking youtube-dl
  Downloading youtube_dl-2018.1.21-py2.py3-none-any.whl (1.7MB): 1.7MB downloaded
Downloading/unpacking requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0 (from streamlink)
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB): 88kB downloaded
Downloading/unpacking pycryptodome>=3.4.3,<4 (from streamlink)
  Downloading pycryptodome-3.4.7.tar.gz (6.5MB): 6.5MB downloaded
  Running setup.py (path:/tmp/pip_build_oom/pycryptodome/setup.py) egg_info for package pycryptodome
    
    warning: no files found matching 'Doc/epydoc-config'
    warning: no files found matching '.separate_namespace'
Downloading/unpacking iso-639 (from streamlink)
  Downloading iso-639-0.4.5.tar.gz (167kB): 167kB downloaded
  Running setup.py (path:/tmp/pip_build_oom/iso-639/setup.py) egg_info for package iso-639
    
Downloading/unpacking iso3166 (from streamlink)
  Downloading iso3166-0.8-py2.py3-none-any.whl
Downloading/unpacking websocket-client (from streamlink)
  Downloading websocket_client-0.46.0-py2.py3-none-any.whl (200kB): 200kB downloaded
Downloading/unpacking PySocks>=1.5.6,!=1.5.7 (from streamlink)
  Downloading PySocks-1.6.8.tar.gz (283kB): 283kB downloaded
  Running setup.py (path:/tmp/pip_build_oom/PySocks/setup.py) egg_info for package PySocks
    
Downloading/unpacking pafy>=0.3.82,!=0.4.0,!=0.4.1,!=0.4.2 (from mps-youtube)
  Downloading pafy-0.5.3.1.tar.gz
  Running setup.py (path:/tmp/pip_build_oom/pafy/setup.py) egg_info for package pafy
    
Downloading/unpacking idna>=2.5,<2.7 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking urllib3>=1.21.1,<1.23 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB): 132kB downloaded
Downloading/unpacking chardet>=3.0.2,<3.1.0 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB): 133kB downloaded
Downloading/unpacking certifi>=2017.4.17 (from requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0->streamlink)
  Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB): 151kB downloaded
Downloading/unpacking six (from websocket-client->streamlink)
  Downloading six-1.11.0-py2.py3-none-any.whl
Installing collected packages: markdown, streamlink, livestreamer, mps-youtube, youtube-dl, requests, pycryptodome, iso-639, iso3166, websocket-client, PySocks, pafy, idna, urllib3, chardet, certifi, six
  Found existing installation: Markdown 2.6.11
    Uninstalling Markdown:
      Successfully uninstalled Markdown
  Found existing installation: streamlink 0.10.0
    Uninstalling streamlink:
      Successfully uninstalled streamlink
  Running setup.py install for streamlink
    
    no previously-included directories found matching 'docs/_build'
    Installing streamlink script to /home/oom/.local/bin
  Running setup.py install for livestreamer
    
    warning: no files found matching 'AUTHORS'
    Installing livestreamer script to /home/oom/.local/bin
  Found existing installation: youtube-dl 2018.1.21
    Uninstalling youtube-dl:
      Successfully uninstalled youtube-dl
  Found existing installation: requests 2.18.4
    Uninstalling requests:
      Successfully uninstalled requests
  Found existing installation: pycryptodome 3.4.7
    Uninstalling pycryptodome:
      Successfully uninstalled pycryptodome
  Running setup.py install for pycryptodome
    Skipping implicit fixer: buffer
    Skipping implicit fixer: idioms
    Skipping implicit fixer: set_literal
    Skipping implicit fixer: ws_comma
    building 'Crypto.Hash._MD2' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/MD2.c -o build/temp.linux-x86_64-3.4/src/MD2.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/MD2.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_MD2.cpython-34m.so
    building 'Crypto.Hash._MD4' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/MD4.c -o build/temp.linux-x86_64-3.4/src/MD4.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/MD4.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_MD4.cpython-34m.so
    building 'Crypto.Hash._SHA256' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/SHA256.c -o build/temp.linux-x86_64-3.4/src/SHA256.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/SHA256.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_SHA256.cpython-34m.so
    building 'Crypto.Hash._SHA224' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/SHA224.c -o build/temp.linux-x86_64-3.4/src/SHA224.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/SHA224.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_SHA224.cpython-34m.so
    building 'Crypto.Hash._SHA384' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/SHA384.c -o build/temp.linux-x86_64-3.4/src/SHA384.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/SHA384.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_SHA384.cpython-34m.so
    building 'Crypto.Hash._SHA512' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/SHA512.c -o build/temp.linux-x86_64-3.4/src/SHA512.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/SHA512.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_SHA512.cpython-34m.so
    building 'Crypto.Hash._RIPEMD160' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/RIPEMD160.c -o build/temp.linux-x86_64-3.4/src/RIPEMD160.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/RIPEMD160.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_RIPEMD160.cpython-34m.so
    building 'Crypto.Hash._keccak' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/keccak.c -o build/temp.linux-x86_64-3.4/src/keccak.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/keccak.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_keccak.cpython-34m.so
    building 'Crypto.Hash._BLAKE2b' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/blake2b.c -o build/temp.linux-x86_64-3.4/src/blake2b.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/blake2b.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_BLAKE2b.cpython-34m.so
    building 'Crypto.Hash._BLAKE2s' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/blake2s.c -o build/temp.linux-x86_64-3.4/src/blake2s.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/blake2s.o -o build/lib.linux-x86_64-3.4/Crypto/Hash/_BLAKE2s.cpython-34m.so
    building 'Crypto.Cipher._raw_aes' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/AES.c -o build/temp.linux-x86_64-3.4/src/AES.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/AES.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_aes.cpython-34m.so
    building 'Crypto.Cipher._raw_aesni' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/AESNI.c -o build/temp.linux-x86_64-3.4/src/AESNI.o -maes
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/AESNI.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_aesni.cpython-34m.so
    building 'Crypto.Cipher._raw_arc2' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/ARC2.c -o build/temp.linux-x86_64-3.4/src/ARC2.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/ARC2.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_arc2.cpython-34m.so
    building 'Crypto.Cipher._raw_blowfish' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/Blowfish.c -o build/temp.linux-x86_64-3.4/src/Blowfish.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/Blowfish.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_blowfish.cpython-34m.so
    building 'Crypto.Cipher._raw_cast' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/CAST.c -o build/temp.linux-x86_64-3.4/src/CAST.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/CAST.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_cast.cpython-34m.so
    building 'Crypto.Cipher._raw_des' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -Isrc/libtom/ -I/usr/include/python3.4m -c src/DES.c -o build/temp.linux-x86_64-3.4/src/DES.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/DES.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_des.cpython-34m.so
    building 'Crypto.Cipher._raw_des3' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -Isrc/libtom/ -I/usr/include/python3.4m -c src/DES3.c -o build/temp.linux-x86_64-3.4/src/DES3.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/DES3.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_des3.cpython-34m.so
    building 'Crypto.Util._galois' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/galois.c -o build/temp.linux-x86_64-3.4/src/galois.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/galois.o -o build/lib.linux-x86_64-3.4/Crypto/Util/_galois.cpython-34m.so
    building 'Crypto.Util._cpuid' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/cpuid.c -o build/temp.linux-x86_64-3.4/src/cpuid.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/cpuid.o -o build/lib.linux-x86_64-3.4/Crypto/Util/_cpuid.cpython-34m.so
    building 'Crypto.Cipher._raw_ecb' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/raw_ecb.c -o build/temp.linux-x86_64-3.4/src/raw_ecb.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/raw_ecb.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_ecb.cpython-34m.so
    building 'Crypto.Cipher._raw_cbc' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/raw_cbc.c -o build/temp.linux-x86_64-3.4/src/raw_cbc.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/raw_cbc.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_cbc.cpython-34m.so
    building 'Crypto.Cipher._raw_cfb' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/raw_cfb.c -o build/temp.linux-x86_64-3.4/src/raw_cfb.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/raw_cfb.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_cfb.cpython-34m.so
    building 'Crypto.Cipher._raw_ofb' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/raw_ofb.c -o build/temp.linux-x86_64-3.4/src/raw_ofb.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/raw_ofb.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_ofb.cpython-34m.so
    building 'Crypto.Cipher._raw_ctr' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/raw_ctr.c -o build/temp.linux-x86_64-3.4/src/raw_ctr.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/raw_ctr.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_ctr.cpython-34m.so
    building 'Crypto.Cipher._raw_ocb' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/raw_ocb.c -o build/temp.linux-x86_64-3.4/src/raw_ocb.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/raw_ocb.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_raw_ocb.cpython-34m.so
    building 'Crypto.Cipher._ARC4' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/ARC4.c -o build/temp.linux-x86_64-3.4/src/ARC4.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/ARC4.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_ARC4.cpython-34m.so
    building 'Crypto.Cipher._Salsa20' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -Isrc/libtom/ -I/usr/include/python3.4m -c src/Salsa20.c -o build/temp.linux-x86_64-3.4/src/Salsa20.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/Salsa20.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_Salsa20.cpython-34m.so
    building 'Crypto.Cipher._chacha20' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/chacha20.c -o build/temp.linux-x86_64-3.4/src/chacha20.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/chacha20.o -o build/lib.linux-x86_64-3.4/Crypto/Cipher/_chacha20.cpython-34m.so
    building 'Crypto.Protocol._scrypt' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/scrypt.c -o build/temp.linux-x86_64-3.4/src/scrypt.o
    In file included from src/pycrypto_common.h:56:0,
                     from src/scrypt.c:32:
    src/scrypt.c: In function ‘scryptBlockMix’:
    src/scrypt.c:106:15: warning: comparison of distinct pointer types lacks a cast [enabled by default]
         assert(in != out);
                   ^
    src/scrypt.c:114:11: warning: assignment from incompatible pointer type [enabled by default]
             x = y;
               ^
    src/scrypt.c: In function ‘scryptROMix’:
    src/scrypt.c:159:9: warning: passing argument 1 of ‘scryptBlockMix’ from incompatible pointer type [enabled by default]
             scryptBlockMix(x, &x[two_r], two_r, core);
             ^
    src/scrypt.c:99:13: note: expected ‘const uint8_t (*)[64]’ but argument is of type ‘uint8_t (*)[64]’
     static void scryptBlockMix(const uint8_t in[][64], uint8_t out[][64], size_t two_r,
                 ^
    src/scrypt.c:173:9: warning: passing argument 1 of ‘scryptBlockMix’ from incompatible pointer type [enabled by default]
             scryptBlockMix(x, (uint8_t (*)[64])data_out, two_r, core);
             ^
    src/scrypt.c:99:13: note: expected ‘const uint8_t (*)[64]’ but argument is of type ‘uint8_t (*)[64]’
     static void scryptBlockMix(const uint8_t in[][64], uint8_t out[][64], size_t two_r,
                 ^
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/scrypt.o -o build/lib.linux-x86_64-3.4/Crypto/Protocol/_scrypt.cpython-34m.so
    building 'Crypto.Util._strxor' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DLTC_NO_ASM -DHAVE_CPUID_H -Isrc/ -I/usr/include/python3.4m -c src/strxor.c -o build/temp.linux-x86_64-3.4/src/strxor.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/src/strxor.o -o build/lib.linux-x86_64-3.4/Crypto/Util/_strxor.cpython-34m.so
    Compiling support for Intel AES instructions
    
    warning: no files found matching 'Doc/epydoc-config'
    warning: no files found matching '.separate_namespace'
  Found existing installation: iso-639 0.4.5
    Uninstalling iso-639:
      Successfully uninstalled iso-639
  Running setup.py install for iso-639
    
  Found existing installation: iso3166 0.8
    Uninstalling iso3166:
      Successfully uninstalled iso3166
  Found existing installation: websocket-client 0.46.0
    Uninstalling websocket-client:
      Successfully uninstalled websocket-client
  Found existing installation: PySocks 1.6.8
    Uninstalling PySocks:
      Successfully uninstalled PySocks
  Running setup.py install for PySocks
    
  Running setup.py install for pafy
    
    changing mode of build/scripts-3.4/ytdl from 664 to 775
    changing mode of /home/oom/.local/bin/ytdl to 775
  Found existing installation: idna 2.6
    Uninstalling idna:
      Successfully uninstalled idna
  Found existing installation: urllib3 1.22
    Uninstalling urllib3:
      Successfully uninstalled urllib3
  Found existing installation: certifi 2018.1.18
    Uninstalling certifi:
      Successfully uninstalled certifi
Successfully installed markdown streamlink livestreamer mps-youtube youtube-dl requests pycryptodome iso-639 iso3166 websocket-client PySocks pafy idna urllib3 chardet certifi six
Cleaning up...
ls -la /usr/local/lib/python3.4/dist-packages 
insgesamt 196
drwxrwsr-x 24 root staff  4096 Jun 13  2017 .
drwxrwsr-x  3 root staff  4096 Apr 16  2014 ..
drwxr-sr-x  3 root staff  4096 Jun 13  2017 certifi
drwxr-sr-x  2 root staff  4096 Jun 13  2017 certifi-2017.4.17.dist-info
drwxr-sr-x  4 root staff  4096 Jun 13  2017 chardet
drwxr-sr-x  2 root staff  4096 Jun 13  2017 chardet-3.0.4.dist-info
drwxr-sr-x  3 root staff  4096 Jun 13  2017 idna
drwxr-sr-x  2 root staff  4096 Jun 13  2017 idna-2.5.dist-info
drwxr-sr-x  7 root staff  4096 Aug  8  2016 livestreamer
drwxr-sr-x  2 root staff  4096 Aug  8  2016 livestreamer-1.12.2.egg-info
drwxr-sr-x  5 root staff  4096 Aug  8  2016 livestreamer_cli
drwxr-sr-x  4 root staff  4096 Aug  8  2016 mps_youtube
drwxr-sr-x  2 root staff  4096 Aug  8  2016 mps_youtube-0.2.7.1.dist-info
drwxr-sr-x  3 root staff  4096 Feb 22  2017 pafy
drwxr-sr-x  2 root staff  4096 Feb 22  2017 pafy-0.5.3.1.egg-info
drwxr-sr-x  2 root staff  4096 Jun  9  2017 __pycache__
drwxr-sr-x  3 root staff  4096 Jun 13  2017 requests
drwxr-sr-x  2 root staff  4096 Jun 13  2017 requests-2.17.3.dist-info
drwxr-sr-x  6 root staff  4096 Jun 13  2017 urllib3
drwxr-sr-x  2 root staff  4096 Jun 13  2017 urllib3-1.21.1.dist-info
drwxr-sr-x  2 root staff  4096 Jun  9  2017 virtualenv-15.1.0.dist-info
-rw-r--r--  1 root root  99021 Jun  9  2017 virtualenv.py
drwxr-sr-x  3 root staff  4096 Jun  9  2017 virtualenv_support
drwxr-sr-x  6 root staff  4096 Jun 13  2017 youtube_dl
drwxr-sr-x  2 root staff  4096 Jun 13  2017 youtube_dl-2017.6.12.dist-info
ls -la ~/.local/lib/python3.4/site-packages 
insgesamt 216
drwx------ 37    4096 Jan 25 10:14 .
drwx------  3    4096 Jan 19 14:48 ..
drwxrwxr-x  3    4096 Jan 25 10:14 certifi
drwxrwxr-x  2    4096 Jan 25 10:14 certifi-2018.1.18.dist-info
drwxrwxr-x  4    4096 Jan 25 10:14 chardet
drwxrwxr-x  2    4096 Jan 25 10:14 chardet-3.0.4.dist-info
drwxrwxr-x 13    4096 Jan 25 10:14 Crypto
drwxrwxr-x  3    4096 Jan 25 10:14 idna
drwxrwxr-x  2    4096 Jan 25 10:14 idna-2.6.dist-info
drwxrwxr-x  3    4096 Jan 25 10:14 iso3166
drwxrwxr-x  2    4096 Jan 25 10:14 iso3166-0.8.dist-info
drwxrwxr-x  3    4096 Jan 25 10:14 iso639
drwxrwxr-x  2    4096 Jan 25 10:14 iso_639-0.4.5.egg-info
drwxrwxr-x  7    4096 Jan 25 10:13 livestreamer
drwxrwxr-x  2    4096 Jan 25 10:13 livestreamer-1.12.2.egg-info
drwxrwxr-x  5    4096 Jan 25 10:13 livestreamer_cli
drwxrwxr-x  4    4096 Jan 25 10:13 markdown
drwxrwxr-x  2    4096 Jan 25 10:13 Markdown-2.6.11.dist-info
drwxrwxr-x  4    4096 Jan 25 10:13 mps_youtube
drwxrwxr-x  2    4096 Jan 25 10:13 mps_youtube-0.2.7.1.dist-info
drwxrwxr-x  3    4096 Jan 25 10:14 pafy
drwxrwxr-x  2    4096 Jan 25 10:14 pafy-0.5.3.1.egg-info
drwxrwxr-x  2    4096 Jan 25 10:14 __pycache__
drwxrwxr-x  2    4096 Jan 25 10:14 pycryptodome-3.4.7.egg-info
drwxrwxr-x  2    4096 Jan 25 10:14 PySocks-1.6.8.egg-info
drwxrwxr-x  3    4096 Jan 25 10:13 requests
drwxrwxr-x  2    4096 Jan 25 10:13 requests-2.18.4.dist-info
drwxrwxr-x  2    4096 Jan 25 10:14 six-1.11.0.dist-info
-rw-rw-r--  1   30888 Jan 25 10:13 six.py
-rw-rw-r--  1    2913 Jan 25 10:13 sockshandler.py
-rw-rw-r--  1   32281 Jan 25 10:13 socks.py
drwxrwxr-x  8    4096 Jan 25 10:13 streamlink
drwxrwxr-x  2    4096 Jan 25 10:13 streamlink-0.10.0.egg-info
drwxrwxr-x  4    4096 Jan 25 10:13 streamlink_cli
drwxrwxr-x  6    4096 Jan 25 10:14 urllib3
drwxrwxr-x  2    4096 Jan 25 10:14 urllib3-1.22.dist-info
drwxrwxr-x  4    4096 Jan 25 10:14 websocket
drwxrwxr-x  2    4096 Jan 25 10:14 websocket_client-0.46.0.dist-info
drwxrwxr-x  6    4096 Jan 25 10:13 youtube_dl
drwxrwxr-x  2    4096 Jan 25 10:13 youtube_dl-2018.1.21.dist-info
pip3 freeze --local 
Markdown==2.6.11
PySocks==1.6.8
certifi==2018.1.18
chardet==3.0.4
idna==2.6
iso-639==0.4.5
iso3166==0.8
livestreamer==1.12.2
mps-youtube==0.2.7.1
pafy==0.5.3.1
pycryptodome==3.4.7
requests==2.18.4
six==1.11.0
streamlink==0.10.0
urllib3==1.22
virtualenv==15.1.0
websocket-client==0.46.0
youtube-dl==2018.1.21
pip3 list --local 
certifi (2018.1.18)
chardet (3.0.4)
idna (2.6)
iso-639 (0.4.5)
iso3166 (0.8)
livestreamer (1.12.2)
Markdown (2.6.11)
mps-youtube (0.2.7.1)
pafy (0.5.3.1)
pycryptodome (3.4.7)
PySocks (1.6.8)
requests (2.18.4)
six (1.11.0)
streamlink (0.10.0)
urllib3 (1.22)
virtualenv (15.1.0)
websocket-client (0.46.0)
youtube-dl (2018.1.21)

linux_joy

Anmeldungsdatum:
6. Februar 2008

Beiträge: 803

Wohnort: Hannover

Hallo,

Problembehebung

Ubuntu 14.04

Unter Ubuntu 14.04 kann es beim Paket python-pip aus den offiziellen Paketquellen zu Problemen kommen. Eine Installation ist zwar möglich, der Start von pip bricht aber mit einer Fehlermeldung ab. Der zugehörige Bugreport bei Launchpad trägt die Nummer 1306991. In diesem Fall muss pip erst komplett deinstalliert und dann manuell installiert werden.



Aber in dem erwähnten Bug-Report werden in den Antworten #46 und #49 andere Lösungen vorgeschlagen:

sudo apt-get remove pyton3-pip
sudo easy_install3 pip 

bzw. Python 2:

sudo apt-get purge -y python-pip
sudo easy_install pip 

Heinrich_Schwietering Team-Icon

Wikiteam
Avatar von Heinrich_Schwietering

Anmeldungsdatum:
12. November 2005

Beiträge: 11344

Wohnort: Bremen

Hi!

Und was ist das anderes, als pip komplett zu deinstallieren, und manuell wieder zu installieren? Nur ohne vorgeschrieben Befehl? Es soll da verschiedenen Möglichkeiten geben, habe ich irgendwo gehört...

so long
hank