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,andis 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,andis 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,isnot installed orisnot on PATH.This package requires RustandCargo 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.
Pergunta
João Jesus
Olá pessoal.
tentei também:
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.