• 1399/08/24

مشكل ىر نصب كتابخانه streamlit :

جناب تقي پور سلام

      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries ptf77blas,ptcblas,atlas not found in ['c:\\users\\gold\\appdat
a\\local\\programs\\python\\python38-32\\lib', 'C:\\', 'c:\\users\\gold\\appdata
\\local\\programs\\python\\python38-32\\libs']
        NOT AVAILABLE

      atlas_blas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries f77blas,cblas,atlas not found in ['c:\\users\\gold\\appdata\\l
ocal\\programs\\python\\python38-32\\lib', 'C:\\', 'c:\\users\\gold\\appdata\\lo
cal\\programs\\python\\python38-32\\libs']
        NOT AVAILABLE

      accelerate_info:
        NOT AVAILABLE

      C:\Users\Gold\AppData\Local\Temp\pip-install-_zzx5dcf\numpy\numpy\distutil
s\system_info.py:625: UserWarning:
          Atlas (http://math-atlas.sourceforge.net/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [atlas]) or by setting
          the ATLAS environment variable.
        self.calc_info()
      blas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries blas not found in ['c:\\users\\gold\\appdata\\local\\programs\
\python\\python38-32\\lib', 'C:\\', 'c:\\users\\gold\\appdata\\local\\programs\\
python\\python38-32\\libs']
        NOT AVAILABLE

      C:\Users\Gold\AppData\Local\Temp\pip-install-_zzx5dcf\numpy\numpy\distutil
s\system_info.py:625: 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.
        self.calc_info()
      blas_src_info:
        NOT AVAILABLE

      C:\Users\Gold\AppData\Local\Temp\pip-install-_zzx5dcf\numpy\numpy\distutil
s\system_info.py:625: 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.
        self.calc_info()
        NOT AVAILABLE

      'svnversion' is not recognized as an internal or external command,
      operable program or batch file.
      non-existing path in 'numpy\\distutils': 'site.cfg'
      lapack_opt_info:
      lapack_mkl_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries mkl_rt not found in ['c:\\users\\gold\\appdata\\local\\program
s\\python\\python38-32\\lib', 'C:\\', 'c:\\users\\gold\\appdata\\local\\programs
\\python\\python38-32\\libs']
        NOT AVAILABLE

      openblas_lapack_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries openblas not found in ['c:\\users\\gold\\appdata\\local\\progr
ams\\python\\python38-32\\lib', 'C:\\', 'c:\\users\\gold\\appdata\\local\\progra
ms\\python\\python38-32\\libs']
        NOT AVAILABLE

      openblas_clapack_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries openblas,lapack not found in ['c:\\users\\gold\\appdata\\local
\\programs\\python\\python38-32\\lib', 'C:\\', 'c:\\users\\gold\\appdata\\local\
\programs\\python\\python38-32\\libs']
        NOT AVAILABLE

      atlas_3_10_threads_info:
      Setting PTATLAS=ATLAS
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries tatlas,tatlas not found in c:\users\gold\appdata\local\program
s\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries tatlas,tatlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries tatlas,tatlas not found in c:\users\gold\appdata\local\program
s\python\python38-32\libs
      <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
        NOT AVAILABLE

      atlas_3_10_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries satlas,satlas not found in c:\users\gold\appdata\local\program
s\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries satlas,satlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries satlas,satlas not found in c:\users\gold\appdata\local\program
s\python\python38-32\libs
      <class 'numpy.distutils.system_info.atlas_3_10_info'>
        NOT AVAILABLE

      atlas_threads_info:
      Setting PTATLAS=ATLAS
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries ptf77blas,ptcblas,atlas not found in c:\users\gold\appdata\loc
al\programs\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries ptf77blas,ptcblas,atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries ptf77blas,ptcblas,atlas not found in c:\users\gold\appdata\loc
al\programs\python\python38-32\libs
      <class 'numpy.distutils.system_info.atlas_threads_info'>
        NOT AVAILABLE

      atlas_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries f77blas,cblas,atlas not found in c:\users\gold\appdata\local\p
rograms\python\python38-32\lib
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries f77blas,cblas,atlas not found in C:\
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack_atlas not found in c:\users\gold\appdata\local\programs
\python\python38-32\libs
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries f77blas,cblas,atlas not found in c:\users\gold\appdata\local\p
rograms\python\python38-32\libs
      <class 'numpy.distutils.system_info.atlas_info'>
        NOT AVAILABLE

      lapack_info:
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
 from distutils
      customize MSVCCompiler
        libraries lapack not found in ['c:\\users\\gold\\appdata\\local\\program
s\\python\\python38-32\\lib', 'C:\\', 'c:\\users\\gold\\appdata\\local\\programs
\\python\\python38-32\\libs']
        NOT AVAILABLE

      C:\Users\Gold\AppData\Local\Temp\pip-install-_zzx5dcf\numpy\numpy\distutil
s\system_info.py:625: 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.
        self.calc_info()
      lapack_src_info:
        NOT AVAILABLE

      C:\Users\Gold\AppData\Local\Temp\pip-install-_zzx5dcf\numpy\numpy\distutil
s\system_info.py:625: 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.
        self.calc_info()
        NOT AVAILABLE

      c:\users\gold\appdata\local\programs\python\python38-32\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 --compile
r options
      running config_fc
      unifing config_fc, config, build_clib, build_ext, build commands --fcompil
er 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: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visua
l C++ Build Tools": https://visualstudio.microsoft.com/downloads/
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'c:\users\gold\appdata\local\pr
ograms\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; s
ys.argv[0] = '"'"'C:\\Users\\Gold\\AppData\\Local\\Temp\\pip-install-_zzx5dcf\\n
umpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\Gold\\AppData\\Local\\Temp\\pip-in
stall-_zzx5dcf\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(_
_file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(comp
ile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Gold\AppData\Lo
cal\Temp\pip-record-bhhtu8dz\install-record.txt' --single-version-externally-man
aged --prefix 'C:\Users\Gold\AppData\Local\Temp\pip-build-env-i_uca1le\overlay'
--compile --install-headers 'C:\Users\Gold\AppData\Local\Temp\pip-build-env-i_uc
a1le\overlay\Include\numpy' Check the logs for full command output.
  WARNING: You are using pip version 20.2.3; however, version 20.2.4 is availabl
e.
  You should consider upgrading via the 'c:\users\gold\appdata\local\programs\py
thon\python38-32\python.exe -m pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\gold\appdata\local\prog
rams\python\python38-32\python.exe' 'c:\users\gold\appdata\local\programs\python
\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefi
x 'C:\Users\Gold\AppData\Local\Temp\pip-build-env-i_uca1le\overlay' --no-warn-sc
ript-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple
 -- 'cython >= 0.29' 'numpy==1.14.5; python_version<'"'"'3.7'"'"'' 'numpy==1.16.
0; python_version>='"'"'3.7'"'"'' setuptools setuptools_scm wheel Check the logs
 for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.

You should consider upgrading via the 'c:\users\gold\appdata\local\programs\pyth
on\python38-32\python.exe -m pip install --upgrade pip' command.

C:\Users\Gold>
  • 1399/08/25
  • ساعت 12:25

سلام 

یکی از دوستان در بخش نظرات پاسخ دادن 

امیدارم مشکلتون رفع شده باشه


  • 1399/08/25
  • ساعت 14:54

سلام

اگرمفهموم virtualenv  درست فهمیده باشم , در ازاء هر محیط مجازی که درست میکنیم باید کتابخانه های مورد نیاز رو در آن محیط مجازی دانلود کنیم فارق از اینکه آن کتابخانه ها در محیط اصلی و یا محیط های مجازی دیگه وجود داشته باشند (مثل کتابخانه های کاربردی مثل pandas , numpy, matploylib و غیره) خوب این کار  ( در صورت وجود محیط های مجازی متعدد) عملا باعث اشغال بیش از حد حافظه سیستم برای دانلود و نگهداری موارد مشابه میشه  .

آنطور که من متوجه شدم برای ایجاد یک پروژه خاص ( سفارش کارفرما) ایجاد محیط مجازی میتونه مناسب باشه تا پس از اتمام کار کل پوشه محیط مجازی در اختیار کارفرما قرار بگیرد .

در این حالت پس از اتمام کار می توان  این محیط مجازی را بدون دخل و تصرف در دیگر پروژه ها از سیستم پاک کرد و فقط متن برنامه را برای آرشیو خود نگهداری کرد  .

البته راهکار دیگه هم برای حل این مشکل ظاهرا وجود داره و آنهم نصب ++C , كه ان هم به نظرم جالب نیست.

در stackflow خوندم که ظاهرا numpy به طور کامل python3  را پشتیبانی نمیکنه .

ضمنا با روش اشاره شده توسط دوستمون یعنی virtualenv هم امتحان کردم نشد 

 دنبال يه روش اساسي براي حل اين مشكل هستم . ممنون میشم شما هم روش فکر کنید .تشکر


logo-enamadlogo-samandehi