Files
VSTU_Schedule_Parser/checkenv.py
2025-09-11 14:16:38 +03:00

28 lines
1.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import sys
import os
print("--- ДИАГНОСТИКА ОКРУЖЕНИЯ ---")
print(f"Исполняемый файл Python: {sys.executable}")
print("-" * 20)
try:
import xlwt
print("✅ Библиотека 'xlwt' успешно импортирована.")
print(f" Версия: {xlwt.__VERSION__}")
# Попробуем найти, где она лежит
print(f" Расположение: {os.path.dirname(xlwt.__file__)}")
except ImportError:
print("❌ ОШИБКА: Библиотека 'xlwt' НЕ НАЙДЕНА в этом окружении.")
try:
import pandas
print("✅ Библиотека 'pandas' успешно импортирована.")
print(f" Версия: {pandas.__version__}")
# Попробуем найти, где она лежит
print(f" Расположение: {os.path.dirname(pandas.__file__)}")
except ImportError:
print("❌ ОШИБКА: Библиотека 'pandas' НЕ НАЙДЕНА в этом окружении.")
print("-" * 20)