Sigo recibiendo el mismo error sin importar qué paquete trato de instalar con pip, a pesar de pip está instalado y funciona bien. En este caso, estoy tratando de instalar Seaborn y este es el error que obtengo. Tuve que instalar Vs Build Tools, pero nada cambió, excepto que ahora dice que la excepción original fue: [WinError 3] El sistema no puede encontrar la ruta especificado: 'C:'Archivos de programa (x86)'Microsoft Visual Studio'2019'BuildTools'VC'Tools'MSVC'14.23.28105' PlatformSDK-lib', y la clase Compiler era MSVCCompiler que es básicamente que el sistema no puede encontrarlo y no sé si lo empeoré al instalarlo o qué, pero no puedo seguir no sé qué hacer, cualquier ayuda sería más útil

  C:\Users\micae\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    running bdist_wheel
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building py_modules sources
    creating build
    creating build\src.win-amd64-3.8
    creating build\src.win-amd64-3.8\numpy
    creating build\src.win-amd64-3.8\numpy\distutils
    building library "npymath" sources
    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
    error: Could not initialize compiler instance: do you have Visual Studio
    installed?  If you are trying to build with MinGW, please use "python setup.py
    build -c mingw32" instead.  If you have Visual Studio installed, check it is
    correctly installed, and the right version (VS 2008 for python 2.6, 2.7 and 3.2,
    VS 2010 for >= 3.3).

    Original exception was: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\PlatformSDK\\lib', and the Compiler class was MSVCCompiler
    ============================================================================
    ============================================================================
    ----------------------------------------
    ERROR: Failed building wheel for numpy
    Running setup.py clean for numpy
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\micae\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\micae\\AppData\\Local\\Temp\\pip-install-ip0nzt0h\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\micae\\AppData\\Local\\Temp\\pip-install-ip0nzt0h\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
         cwd: C:\Users\micae\AppData\Local\Temp\pip-install-ip0nzt0h\numpy
    Complete output (10 lines):
    Running from numpy source directory.

    `setup.py clean` is not supported, use one of the following instead:

      - `git clean -xdf` (cleans all files)
      - `git clean -Xdf` (cleans all versioned files, doesn't touch
                          files that aren't checked into the git repo)

    Add `--force` to your command to use it anyway if you must (unsupported).


      C:\Users\micae\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running install
      running build
      running config_cc
      unifing config_cc, config, build_clib, build_ext, build commands --compiler options
      running config_fc
      unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
      running build_src
      build_src
      building py_modules sources
      building library "npymath" sources
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      error: Could not initialize compiler instance: do you have Visual Studio
      installed?  If you are trying to build with MinGW, please use "python setup.py
      build -c mingw32" instead.  If you have Visual Studio installed, check it is
      correctly installed, and the right version (VS 2008 for python 2.6, 2.7 and 3.2,
      VS 2010 for >= 3.3).

      Original exception was: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\PlatformSDK\\lib', and the Compiler class was MSVCCompiler
      ============================================================================
      ============================================================================

  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\micae\AppData\Local\Programs\Python\Python38\python.exe' 'C:\Users\micae\AppData\Local\Programs\Python\Python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\micae\AppData\Local\Temp\pip-build-env-9bvfhm_w\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools 'Cython>=0.29.2' 'numpy==1.13.3; python_version=='"'"'3.5'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version>='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.5'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version>='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' Check the logs for full command output. ``` 

0
aware 4 nov. 2019 a las 01:28

1 respuesta

La mejor respuesta

Sugeriría usar Python 3.7

Python 3.8 todavía es muy nuevo, por lo que compilará todos sus propios paquetes y, como ha descubierto, esto puede involucrarse un poco.

Hay un relacionado problema numpy para esto quieres (un poquito) más información.

0
Sam Mason 3 nov. 2019 a las 22:35