Автор Тема: pip3 не хочет ставить модуля  (Прочитано 1775 раз)

Оффлайн zah

  • Давно тут
  • **
  • Сообщений: 140
  • ^_^
   Всем привет!

На борту p9, но в p8 у коллеги наблюдается тоже самое. При установке через pip3 модулей, которых нет в репозитории по имени python3-module-name, ругается на следующее:

# pip3 install slate
Collecting slate
  Using cached https://files.pythonhosted.org/packages/40/cc/ee9faa3ca14cfc1c5c76305a62b8da84d3ae5abf6cf8c89045a1d48f86ce/slate-0.3.zip
Collecting distribute
  Using cached https://files.pythonhosted.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/.private/root/pip-install-ql0ex5_z/distribute/setup.py'"'"'; __file__='"'"'/tmp/.private/root/pip-install-ql0ex5_z/distribute/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/.private/root/pip-install-ql0ex5_z/distribute/pip-egg-info
         cwd: /tmp/.private/root/pip-install-ql0ex5_z/distribute/
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/.private/root/pip-install-ql0ex5_z/distribute/setuptools/__init__.py", line 2, in <module>
        from setuptools.extension import Extension, Library
      File "/tmp/.private/root/pip-install-ql0ex5_z/distribute/setuptools/extension.py", line 5, in <module>
        from setuptools.dist import _get_unpatched
      File "/tmp/.private/root/pip-install-ql0ex5_z/distribute/setuptools/dist.py", line 7, in <module>
        from setuptools.command.install import install
      File "/tmp/.private/root/pip-install-ql0ex5_z/distribute/setuptools/command/__init__.py", line 8, in <module>
        from setuptools.command import install_scripts
      File "/tmp/.private/root/pip-install-ql0ex5_z/distribute/setuptools/command/install_scripts.py", line 3, in <module>
        from pkg_resources import Distribution, PathMetadata, ensure_directory
      File "/tmp/.private/root/pip-install-ql0ex5_z/distribute/pkg_resources.py", line 1518, in <module>
        register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
    AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Кто-то сталкивался может с подобным?

Оффлайн zah

  • Давно тут
  • **
  • Сообщений: 140
  • ^_^
Re: pip3 не хочет ставить модуля
« Ответ #1 : 02.12.2019 15:52:44 »
Нарыл информацию что модуль slate, который я ставлю выше в сообщении, работает только на python2.
Тогда возникает следующий вопрос:
- если модуль поддерживается вторым пайтоном, может ли он быть виден при поиске через pip3?
~ pip3 search slate
slate-db (0.1.1)              - Wrapper for working with Slate databases.
slate-utils (0.0.2)           - Some simple utilites to help automate tasks in Slate.
slate (0.5.2)                 - Extract text from PDF documents easily.

Оффлайн Антон Мидюков

  • alt linux team
  • ***
  • Сообщений: 5 183
  • antohami@
Re: pip3 не хочет ставить модуля
« Ответ #2 : 02.12.2019 17:28:55 »
- если модуль поддерживается вторым пайтоном, может ли он быть виден при поиске через pip3?

Вы сами ответили себе. Может. Лучше на https://pypi.org смотреть.