Jump to content
Fórum Script Brasil
  • 0

Iniciante - dúvidas sobre instalação do Jupyter


João Jesus

Question

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,
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      651.9k
×
×
  • Create New...