Python Forum
Error with NumPy, BeautifulSoup when using pip
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error with NumPy, BeautifulSoup when using pip
#1
Hello to all,

Yesterday, I made a big mistake, and I find myself with the necessity to reinstall all Python, and libraries.

I made the jump to version 3.9.
Is it too soon for some packages and libraries?

Here is the error result.
What should I do,

forget 3.9 and go back to previous version???

or ??






PS C:\Users\User\Desktop> python  -m pip install NumPy
Collecting NumPy
  Using cached numpy-1.19.2.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\KAORIF~1\AppData\Local\Temp\tmpjbqpr6vq'
         cwd: C:\Users\User\AppData\Local\Temp\pip-install-auovlwkg\numpy
    Complete output (200 lines):
    Running from numpy source directory.
    setup.py:470: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      run_build = parse_setuppy_commands()
    Processing numpy/random\_bounded_integers.pxd.in
    Processing numpy/random\bit_generator.pyx
    Processing numpy/random\mtrand.pyx
    Processing numpy/random\_bounded_integers.pyx.in
    Processing numpy/random\_common.pyx
    Processing numpy/random\_generator.pyx
    Processing numpy/random\_mt19937.pyx
    Processing numpy/random\_pcg64.pyx
    Processing numpy/random\_philox.pyx
    Processing numpy/random\_sfc64.pyx
    Cythonizing sources
    blas_opt_info:
    blas_mkl_info:
    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
    customize MSVCCompiler
      libraries mkl_rt not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    blis_info:
      libraries blis not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    openblas_info:
      libraries openblas not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
    get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
    customize GnuFCompiler
    Could not locate executable g77
    Could not locate executable f77
    customize IntelVisualFCompiler
    Could not locate executable ifort
    Could not locate executable ifl
    customize AbsoftFCompiler
    Could not locate executable f90
    customize CompaqVisualFCompiler
    Could not locate executable DF
    customize IntelItaniumVisualFCompiler
    Could not locate executable efl
    customize Gnu95FCompiler
    Could not locate executable gfortran
    Could not locate executable f95
    customize G95FCompiler
    Could not locate executable g95
    customize IntelEM64VisualFCompiler
    customize IntelEM64TFCompiler
    Could not locate executable efort
    Could not locate executable efc
    customize PGroupFlangCompiler
    Could not locate executable flang
    don't know how to compile Fortran code on platform 'nt'
      NOT AVAILABLE

    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries tatlas not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    atlas_3_10_blas_info:
      libraries satlas not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    atlas_blas_info:
      libraries f77blas,cblas,atlas not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    accelerate_info:
      NOT AVAILABLE

    C:\Users\User\AppData\Local\Temp\pip-install-auovlwkg\numpy\numpy\distutils\system_info.py:1914: UserWarning:
        Optimized (vendor) Blas libraries are not found.
        Falls back to netlib Blas library which has worse performance.
        A better performance should be easily gained by switching
        Blas library.
      if self._calc_info(blas):
    blas_info:
      libraries blas not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    C:\Users\User\AppData\Local\Temp\pip-install-auovlwkg\numpy\numpy\distutils\system_info.py:1914: UserWarning:
        Blas (http://www.netlib.org/blas/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [blas]) or by setting
        the BLAS environment variable.
      if self._calc_info(blas):
    blas_src_info:
      NOT AVAILABLE

    C:\Users\User\AppData\Local\Temp\pip-install-auovlwkg\numpy\numpy\distutils\system_info.py:1914: UserWarning:
        Blas (http://www.netlib.org/blas/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [blas_src]) or by setting
        the BLAS_SRC environment variable.
      if self._calc_info(blas):
      NOT AVAILABLE

    non-existing path in 'numpy\\distutils': 'site.cfg'
    lapack_opt_info:
    lapack_mkl_info:
      libraries mkl_rt not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    openblas_lapack_info:
      libraries openblas not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    openblas_clapack_info:
      libraries openblas,lapack not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    flame_info:
      libraries flame not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries tatlas,tatlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries lapack_atlas not found in C:\
      libraries tatlas,tatlas not found in C:\
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
      libraries tatlas,tatlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE

    atlas_3_10_info:
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries satlas,satlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries lapack_atlas not found in C:\
      libraries satlas,satlas not found in C:\
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
      libraries satlas,satlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE

    atlas_threads_info:
    Setting PTATLAS=ATLAS
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries ptf77blas,ptcblas,atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries lapack_atlas not found in C:\
      libraries ptf77blas,ptcblas,atlas not found in C:\
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
      libraries ptf77blas,ptcblas,atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE

    atlas_info:
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries f77blas,cblas,atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\lib
      libraries lapack_atlas not found in C:\
      libraries f77blas,cblas,atlas not found in C:\
      libraries lapack_atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
      libraries f77blas,cblas,atlas not found in C:\Users\User\AppData\Local\Programs\Python\Python39\libs
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE

    lapack_info:
      libraries lapack not found in ['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python39\\libs']
      NOT AVAILABLE

    C:\Users\User\AppData\Local\Temp\pip-install-auovlwkg\numpy\numpy\distutils\system_info.py:1748: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
    lapack_src_info:
      NOT AVAILABLE

    C:\Users\User\AppData\Local\Temp\pip-install-auovlwkg\numpy\numpy\distutils\system_info.py:1748: UserWarning:
        Lapack (http://www.netlib.org/lapack/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [lapack_src]) or by setting
        the LAPACK_SRC environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
      NOT AVAILABLE

    numpy_linalg_lapack_lite:
      FOUND:
        language = c
        define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]

    C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    running dist_info
    running build_src
    build_src
    building py_modules sources
    creating build
    creating build\src.win-amd64-3.9
    creating build\src.win-amd64-3.9\numpy
    creating build\src.win-amd64-3.9\numpy\distutils
    building library "npymath" sources
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\KAORIF~1\AppData\Local\Temp\tmpjbqpr6vq' Check the logs for full command output.
PS C:\Users\User\Desktop> python  -m pip install BeautifulSoup
Collecting BeautifulSoup
  Downloading BeautifulSoup-3.2.2.tar.gz (32 kB)
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-g97n2jyh\\beautifulsoup\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-g97n2jyh\\beautifulsoup\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-pip-egg-info-dhrfyfcq'
         cwd: C:\Users\User\AppData\Local\Temp\pip-install-g97n2jyh\beautifulsoup\
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\User\AppData\Local\Temp\pip-install-g97n2jyh\beautifulsoup\setup.py", line 3
        "You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."
                                                                                                       ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
PS C:\Users\User\Desktop>
Reply
#2
(Oct-20-2020, 07:50 AM)tsurubaso Wrote: I made the jump to version 3.9.
Is it too soon for some packages and libraries?
It may work if use gohlke NumPy.
Download then:
pip install numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl
Reply
#3
(Oct-20-2020, 09:27 AM)snippsat Wrote:
(Oct-20-2020, 07:50 AM)tsurubaso Wrote: I made the jump to version 3.9.
Is it too soon for some packages and libraries?
It may work if use gohlke NumPy.
Download then:
pip install numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl

Thanks!! snippsat

I will try and report.

Edit:
May be doing something wrong.


I tried

Error:
PS C:\Users\User\Desktop> python -m pip install numpy?1.19.2+mkl?cp39?cp39?win_amd64.whl WARNING: Requirement 'numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl' looks like a filename, but the file does not exist ERROR: numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl is not a valid wheel filename. PS C:\Users\User\Desktop> python -m pip install numpy?1.19.2 ERROR: Invalid requirement: 'numpy‑1.19.2' PS C:\Users\User\Desktop> python -m pip install numpy1.19.2 ERROR: Could not find a version that satisfies the requirement numpy1.19.2 (from versions: none) ERROR: No matching distribution found for numpy1.19.2
Reply
#4
You most be in same folder as numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl when doing this from command line.
Now you do it from C:\Users\User\Desktop
Default when download file will be in C:\Users\User\Downloads.
Do command from Downloads folder or move file to Desktop folder.
Reply
#5
I tried
PS C:\Users\User\Downloads> python -m pip install --upgrade setuptools
Collecting setuptools
  Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 49.2.1
    Uninstalling setuptools-49.2.1:
      Successfully uninstalled setuptools-49.2.1
Successfully installed setuptools-50.3.2
without success
Reply
#6
Hmm why you post install/upgrade of setuptools?
It is:
python -m pip install numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl
Reply
#7
Trying what ever I can
I succeeded
PS C:\Users\User\Desktop> python -m pip install numpy?1.19.2+mkl?cp39?cp39?win_amd64.whl
WARNING: Requirement 'numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl' looks like a filename, but the file does not exist
ERROR: numpy‑1.19.2+mkl‑cp39‑cp39‑win_amd64.whl is not a valid wheel filename.
PS C:\Users\User\Desktop> python -m pip install C:\Users\User\Downloads\numpy-1.19.2+mkl-cp39-cp39-win_amd64.whl
ERROR: Invalid requirement: 'C:\\Users\\User'
Hint: It looks like a path. File 'C:\Users\User' does not exist.
PS C:\Users\User\Desktop> python -m pip install "C:\Users\User\Downloads\numpy-1.19.2+mkl-cp39-cp39-win_amd64.whl"
Processing c:\users\User\downloads\numpy-1.19.2+mkl-cp39-cp39-win_amd64.whl
Installing collected packages: numpy
Successfully installed numpy-1.19.2+mkl
Reply
#8
To sum up all
I followed the advice of
@snippsat
Thanks again.
I went there to download all missing packages.
After download
in the download folder,
python -m pip install 'Full/Path/to/the/package'
Everything working like a charm.

But don't ask me what the original error was, no idea.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Strange ModuleNotFound Error on BeautifulSoup for Python 3.11 Gaberson19 1 918 Jul-13-2023, 10:38 AM
Last Post: Gaurav_Kumar
  [Solved]Help with BeautifulSoup.getText() Error Extra 5 3,634 Jan-19-2023, 02:03 PM
Last Post: prvncpa
  Python beautifulsoup pagination error The61 5 3,400 Apr-09-2020, 09:17 PM
Last Post: Larz60+
  BeautifulSoup: Error while extracting a value from an HTML table kawasso 3 3,156 Aug-25-2019, 01:13 AM
Last Post: kawasso
  beautifulsoup error rudolphyaber 7 5,444 May-26-2019, 02:12 PM
Last Post: heiner55
  BeautifulSoup Parsing Error slinkplink 6 9,454 Feb-12-2018, 02:55 PM
Last Post: seco

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020