Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Russian
  • Search

[Решено] Проблема с установкой модуля openpyxl

Moderator: Pinkbyte

Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Author
Message
OlegM
n00b
n00b
Posts: 2
Joined: Fri Jun 28, 2024 8:24 am

[Решено] Проблема с установкой модуля openpyxl

  • Quote

Post by OlegM » Fri Jun 28, 2024 8:46 am

Мне для работы в python понадобился дополнительный модуль openpyxl.

Стандартными средствами питона модули в gentoo не устанавливаются, насколько я понял:

Code: Select all

$ pip install openpyxl
error: externally-managed-environment

× This environment is externally managed
╰─> 
    The system-wide Python installation in Gentoo should be maintained
    using the system package manager (e.g. emerge).
    
    If the package in question is not packaged for Gentoo, please
    consider installing it inside a virtual environment, e.g.:
    
    python -m venv /path/to/venv
    . /path/to/venv/bin/activate
    pip install mypackage
    
    To exit the virtual environment, run:
    
    deactivate
    
    The virtual environment is not deleted, and can be re-entered by
    re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Нужный мне модуль существует в виде пакета dev-python/openpyxl и нормально устанавливается через emerge, pip list показывает, что модуль в системе установлен, но приложения питона его почему то не видят (import openpyxl выдает ошибку "ModuleNotFoundError: No module named 'openpyxl'").

Подскажите, что делаю не так?
Top
OlegM
n00b
n00b
Posts: 2
Joined: Fri Jun 28, 2024 8:24 am

  • Quote

Post by OlegM » Fri Jun 28, 2024 1:03 pm

В общем разобрался. Виртуальное окружение надо было настроить.
Top
Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Russian”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic