Jump to content
Fórum Script Brasil

Search the Community

Showing results for tags 'dúvidas python'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Programação & Desenvolvimento
    • ASP
    • PHP
    • .NET
    • Java
    • C, C++
    • Delphi, Kylix
    • Lógica de Programação
    • Mobile
    • Visual Basic
    • Outras Linguagens de Programação
  • WEB
    • HTML, XHTML, CSS
    • Ajax, JavaScript, XML, DOM
    • Editores
  • Arte & Design
    • Corel Draw
    • Fireworks
    • Flash & ActionScript
    • Photoshop
    • Outros Programas de Arte e Design
  • Sistemas Operacionais
    • Microsoft Windows
    • GNU/Linux
    • Outros Sistemas Operacionais
  • Softwares, Hardwares e Redes
    • Microsoft Office
    • Softwares Livres
    • Outros Softwares
    • Hardware
    • Redes
  • Banco de Dados
    • Access
    • MySQL
    • PostgreSQL
    • SQL Server
    • Demais Bancos
  • Segurança e Malwares
    • Segurança
    • Remoção De Malwares
  • Empregos
    • Vagas Efetivas
    • Vagas para Estágios
    • Oportunidades para Freelances
  • Negócios & Oportunidades
    • Classificados & Serviços
    • Eventos
  • Geral
    • Avaliações de Trabalhos
    • Links
    • Outros Assuntos
    • Entretenimento
  • Script Brasil
    • Novidades e Anúncios Script Brasil
    • Mercado Livre / Mercado Sócios
    • Sugestões e Críticas
    • Apresentações

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. Olá pessoal. Eu sou novo no python e estou seguindo tutorais, mas quando vou aplicar os códigos na minha máquina, erros aparecem. Por exemplo: Fui instalar o Scipy via pip, apareceu isso no final: error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "C:\Users\X601797\tentativa-clusterizacao\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "C:\Users\X601797\tentativa-clusterizacao\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\X601797\tentativa-clusterizacao\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 112, in get_requires_for_build_wheel backend = _build_backend() ^^^^^^^^^^^^^^^^ File "C:\Users\X601797\tentativa-clusterizacao\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend obj = import_module(mod_path) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\X601797\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1293, in _gcd_import File "<frozen importlib._bootstrap>", line 1266, in _find_and_load File "<frozen importlib._bootstrap>", line 1216, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 400, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1293, in _gcd_import File "<frozen importlib._bootstrap>", line 1266, in _find_and_load File "<frozen importlib._bootstrap>", line 1237, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 841, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 994, in exec_module File "<frozen importlib._bootstrap>", line 400, in _call_with_frames_removed File "C:\Users\X601797\AppData\Local\Temp\pip-build-env-30gbi4jr\overlay\Lib\site-packages\setuptools\__init__.py", line 16, in <module> import setuptools.version File "C:\Users\X601797\AppData\Local\Temp\pip-build-env-30gbi4jr\overlay\Lib\site-packages\setuptools\version.py", line 1, in <module> import pkg_resources File "C:\Users\X601797\AppData\Local\Temp\pip-build-env-30gbi4jr\overlay\Lib\site-packages\pkg_resources\__init__.py", line 2172, in <module> register_finder(pkgutil.ImpImporter, find_on_path) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Depois tento instalar o jupyter, com o comando: pip install jupyter error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Cargo, the Rust package manager, is not installed or is not on PATH. This package requires Rust and Cargo to compile extensions. Install it through the system's package manager or via https://rustup.rs/ Checking for Rust toolchain.... [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. Mas aí, beleza, funcionando no fim é o que importa. No entanto, quando vou ativar o bendito por meio do comando: jupyter notebook, aparece isso: (tentativa-clusterizacao) C:\Users\X601797>jupyter notebook 'jupyter' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. tentei também: C:\Users\X601797\AppData\Local\Programs\Python\Python312\Scripts>jupyter notebook 'jupyter' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. vejam que eu tentei duas alternativas que encontrei na internet. Nada resolve. Fim dos tempos. Alguém sabe como resolver isso? Para que eu preciso do Jupyter: pretendo usar o kmeans para clusterizar uma base de dados que tenho. Se alguém puder ajudar, ficarei grato! Att,
  2. from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, QMetaObject, QObject, QPoint, QRect, QSize, QTime, QUrl, Qt) from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont, QFontDatabase, QGradient, QIcon, QImage, QKeySequence, QLinearGradient, QPainter, QPalette, QPixmap, QRadialGradient, QTransform) from PySide6.QtWidgets import (QApplication, QGridLayout, QLabel, QMainWindow, QPushButton, QSizePolicy, QSpacerItem, QWidget) class Ui_telainicial(object): def setupUi(self, telainicial): if not telainicial.objectName(): telainicial.setObjectName(u"telainicial") telainicial.resize(656, 444) icon = QIcon() icon.addFile(u"../logos/\u00edcone.png", QSize(), QIcon.Normal, QIcon.Off) telainicial.setWindowIcon(icon) telainicial.setStyleSheet(u"background-color: rgb(0, 169, 253);") telainicial.setIconSize(QSize(25, 25)) self.centralwidget = QWidget(telainicial) self.centralwidget.setObjectName(u"centralwidget") self.gridLayout_2 = QGridLayout(self.centralwidget) self.gridLayout_2.setObjectName(u"gridLayout_2") self.gridLayout = QGridLayout() self.gridLayout.setObjectName(u"gridLayout") self.btn_sair = QPushButton(self.centralwidget) self.btn_sair.setObjectName(u"btn_sair") self.btn_sair.setMinimumSize(QSize(151, 41)) self.btn_sair.setMaximumSize(QSize(500, 60)) font = QFont() font.setFamilies([u"Comic Sans MS"]) font.setPointSize(20) font.setItalic(False) self.btn_sair.setFont(font) self.btn_sair.setCursor(QCursor(Qt.PointingHandCursor)) self.btn_sair.setStyleSheet(u"QPushButton {\n" " color: rgb(255, 255, 255);\n" " background-color: rgb(108, 97, 169);\n" " border-radius:20px\n" "}\n" "\n" "QPushButton:hover{\n" " color: rgb(108, 97, 169);\n" " background-color: rgb(255, 255, 255);\n" " border-radius:20px\n" "}") self.gridLayout.addWidget(self.btn_sair, 10, 1, 1, 1) self.horizontalSpacer_2 = QSpacerItem(130, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.gridLayout.addItem(self.horizontalSpacer_2, 11, 2, 1, 1) self.verticalSpacer_5 = QSpacerItem(10, 10, QSizePolicy.Minimum, QSizePolicy.Fixed) self.gridLayout.addItem(self.verticalSpacer_5, 2, 1, 1, 1) self.verticalSpacer_2 = QSpacerItem(10, 10, QSizePolicy.Minimum, QSizePolicy.Fixed) self.gridLayout.addItem(self.verticalSpacer_2, 7, 1, 1, 1) self.btn_sobre_o_programa = QPushButton(self.centralwidget) self.btn_sobre_o_programa.setObjectName(u"btn_sobre_o_programa") self.btn_sobre_o_programa.setMinimumSize(QSize(151, 41)) self.btn_sobre_o_programa.setMaximumSize(QSize(500, 60)) font1 = QFont() font1.setFamilies([u"Comic Sans MS"]) font1.setPointSize(20) self.btn_sobre_o_programa.setFont(font1) self.btn_sobre_o_programa.setCursor(QCursor(Qt.PointingHandCursor)) self.btn_sobre_o_programa.setStyleSheet(u"QPushButton {\n" " color: rgb(255, 255, 255);\n" " background-color: rgb(113, 191, 79);\n" " border-radius:20px\n" "}\n" "\n" "QPushButton:hover{\n" " color: rgb(113, 191, 79);\n" " background-color: rgb(255, 255, 255);\n" " border-radius:20px\n" "}") self.gridLayout.addWidget(self.btn_sobre_o_programa, 8, 1, 1, 1) self.verticalSpacer = QSpacerItem(10, 10, QSizePolicy.Minimum, QSizePolicy.Fixed) self.gridLayout.addItem(self.verticalSpacer, 9, 1, 1, 1) self.btn_alunos = QPushButton(self.centralwidget) self.btn_alunos.setObjectName(u"btn_alunos") self.btn_alunos.setMinimumSize(QSize(151, 41)) self.btn_alunos.setMaximumSize(QSize(500, 60)) self.btn_alunos.setFont(font1) self.btn_alunos.setCursor(QCursor(Qt.PointingHandCursor)) self.btn_alunos.setStyleSheet(u"QPushButton {\n" " color: rgb(255, 255, 255);\n" " background-color: rgb(239, 78, 69);\n" " border-radius:20px\n" "}\n" "\n" "QPushButton:hover{\n" " color: rgb(239, 78, 69);\n" " background-color: rgb(255, 255, 255);\n" " border-radius:20px\n" "}") self.gridLayout.addWidget(self.btn_alunos, 1, 1, 1, 1) self.verticalSpacer_3 = QSpacerItem(20, 3, QSizePolicy.Minimum, QSizePolicy.Fixed) self.gridLayout.addItem(self.verticalSpacer_3, 3, 1, 1, 1) self.btn_professores = QPushButton(self.centralwidget) self.btn_professores.setObjectName(u"btn_professores") self.btn_professores.setMinimumSize(QSize(151, 41)) self.btn_professores.setMaximumSize(QSize(500, 60)) self.btn_professores.setFont(font1) self.btn_professores.setCursor(QCursor(Qt.PointingHandCursor)) self.btn_professores.setStyleSheet(u"QPushButton {\n" " color: rgb(255, 255, 255);\n" " background-color: rgb(252, 227, 36);\n" " border-radius:20px\n" "}\n" "\n" "QPushButton:hover{\n" " color: rgb(252, 227, 36);\n" " background-color: rgb(255, 255, 255);\n" " border-radius:20px\n" "}") self.gridLayout.addWidget(self.btn_professores, 4, 1, 1, 1) self.horizontalSpacer = QSpacerItem(130, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.gridLayout.addItem(self.horizontalSpacer, 11, 0, 1, 1) self.lbl_logo_telainicial = QLabel(self.centralwidget) self.lbl_logo_telainicial.setObjectName(u"lbl_logo_telainicial") self.lbl_logo_telainicial.setMinimumSize(QSize(200, 10)) self.lbl_logo_telainicial.setMaximumSize(QSize(500, 230)) self.lbl_logo_telainicial.setPixmap(QPixmap(u"../logos/Logo CEAI.png")) self.lbl_logo_telainicial.setScaledContents(True) self.gridLayout.addWidget(self.lbl_logo_telainicial, 0, 1, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) telainicial.setCentralWidget(self.centralwidget) self.btn_alunos.clicked.connect(self.mostrar_alunos) self.retranslateUi(telainicial) QMetaObject.connectSlotsByName(telainicial) ... def mostrar_alunos(self): from ui_aluno import Ui_telaaluno self.janelaaluno = QtWidgets.QMainWindow() self.ui_aluno = Ui_telaaluno() self.ui_aluno.setupUi(self.janelaaluno) self.janelaaluno.show
×
×
  • Create New...