Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法在命令提示符下使用pip下载Streamlight_Python_Windows_Pip_Command Prompt_Streamlit - Fatal编程技术网

Python 无法在命令提示符下使用pip下载Streamlight

Python 无法在命令提示符下使用pip下载Streamlight,python,windows,pip,command-prompt,streamlit,Python,Windows,Pip,Command Prompt,Streamlit,我正在尝试使用pip在window10中安装Streamlight,但在它显示安装生成依赖项后,我收到以下错误: C:\Users\Admin\AppData\Local\Temp\pip-install-c7t4bt44\numpy\numpy\distutils\system_info.py:625: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories

我正在尝试使用pip在window10中安装Streamlight,但在它显示安装生成依赖项后,我收到以下错误:

C:\Users\Admin\AppData\Local\Temp\pip-install-c7t4bt44\numpy\numpy\distutils\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\Admin\AppData\Local\Temp\pip-install-c7t4bt44\numpy\numpy\distutils\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\admin\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 --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.win32-3.8
  creating build\src.win32-3.8\numpy
  creating build\src.win32-3.8\numpy\distutils
  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 "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
  ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-c7t4bt44\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-c7t4bt44\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-grjth94n\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\Admin\AppData\Local\Temp\pip-build-env-3avyqeva\overlay' --compile --install-headers 'C:\Users\Admin\AppData\Local\Temp\pip-build-env-3avyqeva\overlay\Include\numpy' Check the logs for full command output.
 ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' 'c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Admin\AppData\Local\Temp\pip-build-env-3avyqeva\overlay' --no-warn-script-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.
C:\Users\Admin\AppData\Local\Temp\pip-install-c7t4bt44\numpy\numpy\distutils\system\u info.py:625:UserWarning:
拉帕克(http://www.netlib.org/lapack/)找不到库。
可以在中指定要搜索库的目录
numpy/distutils/site.cfg文件(第[lapack]节)或通过设置
LAPACK环境变量。
self.calc_info()
lapack_src_信息:
无法使用的
C:\Users\Admin\AppData\Local\Temp\pip-install-c7t4bt44\numpy\numpy\distutils\system\u info.py:625:UserWarning:
拉帕克(http://www.netlib.org/lapack/)找不到来源。
可以在中指定要搜索源的目录
numpy/distutils/site.cfg文件(第[lapack\u src]节)或通过设置
LAPACK_SRC环境变量。
self.calc_info()
无法使用的
c:\users\admin\appdata\local\programs\python38-32\lib\distutils\dist.py:274:UserWarning:未知的分发选项:“define\u macros”
警告。警告(msg)
正在运行的安装
运行构建
正在运行配置\u cc
统一config\u cc、config、build\u clib、build\u ext、build命令--编译器选项
运行配置功能
统一config\u fc、config、build\u clib、build\u ext、build命令--fcompiler选项
运行build\u src
构建src
构建py_模块源
创建构建
正在创建build\src.win32-3.8
正在创建build\src.win32-3.8\numpy
正在创建build\src.win32-3.8\numpy\distutils
建立图书馆“npymath”资源
在numpy.distutils中没有名为“numpy.distutils.\u msvccompiler”的模块;从distutils开始尝试
错误:微软Visual C++ 14是必需的。使用“Visual Studio的构建工具”获取它:https://visualstudio.microsoft.com/downloads/
错误:命令出错,退出状态为1:'c:\users\admin\appdata\local\programs\python\python38-32\python.exe'-u-c'import sys,setuptools,tokenize;sys.argv[0]=“C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-c7t4bt44\\numpy\\setup.py”“”__文件“''''C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-c7t4bt44\\numpy\\setup.py''”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,文件,exec)'install--record'C:\Users\Admin\AppData\Local\Temp\pip-record-grjth94n\install record.txt'--外部管理的单一版本--前缀'C:\Users\Admin\AppData\Local\Temp\pip-build-env-3avyqeva\overlay'--编译--安装头'C:\Users\Admin\AppData\Local\Temp\pip-build-env-3avyqeva\overlay\Include\numpy'检查日志中的完整命令输出。
错误:命令出错,退出状态为1:'c:\users\admin\appdata\local\programs\python\python38-32\python.exe''c:\users\admin\appdata\local\programs\python\python38-32\lib\site packages\pip'install--忽略已安装--无用户--前缀'c:\users\admin\appdata\local\Temp\pip-build-env-3avyqeva\overlay'--无警告脚本位置--无二进制文件:none:--仅二进制文件:none:-ihttps://pypi.org/simple --“cython>=0.29”numpy==1.14.5;python_version=''''''''3.7'''''''''setuptools setuptools_scm控制盘检查日志以获取完整的命令输出。

这只是非常冗长的错误的一小部分。如何解决此问题?

由于您使用的是windows,请尝试安装或检查是否安装了以下两个visual studio dist软件包:

    < P> VisualC++构建工具安装程序:

    > p>转到此链接并下载安装程序并安装VisualStudioVisualStudio:VisualStudio:/P> C++
再次尝试安装所需的python包


否则,作为提示,请尝试创建一个虚拟环境并在那里继续安装。我可能还会检查python版本。我在尝试使用python3.8时遇到了这个问题,所以如果您现在正在使用python3.8,也许您可以使用3.7

由于您使用的是windows,请尝试安装或检查是否安装了以下两个visual studio dist软件包:

    < P> VisualC++构建工具安装程序:

    > p>转到此链接并下载安装程序并安装VisualStudioVisualStudio:VisualStudio:/P> C++
再次尝试安装所需的python包


否则,作为提示,请尝试创建一个虚拟环境并在那里继续安装。我可能还会检查python版本。我在尝试使用python3.8时遇到了这个问题,所以如果您现在正在使用python3.8,也许您可以使用3.7

我认为这是你的NumPy库的问题

你的numpy是如何安装的?如果你还没有,我建议你使用康达。Numpy有时在Windows上构建时会出现问题

我会给你一个康达安装的链接,你可以试试,如果这样的话。

我认为这个问题与您的NumPy库有关

你的numpy是如何安装的?如果你还没有,我建议你使用康达。Numpy有时在Windows上构建时会出现问题

我会给你一个康达安装的链接,你可以试试,如果这样的话。

您使用的是哪一版本的python?我使用的是3.8版。我在使用python 3.8时也遇到了这个问题,我的解决办法是改用python 3.7。尝试使用python 3.7创建virtualenv,然后重试。或者,降低numpy的级别对我来说很有效,您使用的是哪一个版本的python?我使用的是3.8版。当我使用python 3.8时,我也遇到了这个问题,我的解决办法是改用python 3.7。尝试使用python 3.7创建virtualenv,然后重试。或者降低numpy的等级对我来说很有效,我绝对不会尝试使用conda!你为什么这么说?你能解释一下吗?我绝对不会尝试使用康达!你为什么这么说?你能解释一下吗