Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/335.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.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 为什么在Linux(NAS)上安装pandas时出错?_Python_Linux_Pandas_Nas_Synology - Fatal编程技术网

Python 为什么在Linux(NAS)上安装pandas时出错?

Python 为什么在Linux(NAS)上安装pandas时出错?,python,linux,pandas,nas,synology,Python,Linux,Pandas,Nas,Synology,我一直在尝试在Synology服务器上运行Python脚本。到目前为止,我设法安装了必要的库,如requests、bs4和cython。这很有效。但是我一直使用numpy和pandas,它们返回以下错误输出 它与pip无关(这在Stackoverflow的另一个问题中提出),因为我已经使用了最新的版本 有人能帮我吗 编辑:已安装Python 3.8 ERROR: Command errored out with exit status 1: command: /var/packages/p

我一直在尝试在Synology服务器上运行Python脚本。到目前为止,我设法安装了必要的库,如requests、bs4和cython。这很有效。但是我一直使用numpy和pandas,它们返回以下错误输出

它与pip无关(这在Stackoverflow的另一个问题中提出),因为我已经使用了最新的版本

有人能帮我吗

编辑:已安装Python 3.8

ERROR: Command errored out with exit status 1:
   command: /var/packages/py3k/target/usr/local/bin/python3 /var/packages/py3k/target/usr/local/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-cbb90c2z/overlay --no-warn-script
-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.15.4; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.15.4; python_ver
sion=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' 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'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"''

       cwd: None

  Complete output (87 lines):

  Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX"' don't match your environment

  Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment

  Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment

  Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment

  Ignoring numpy: markers 'python_version == "3.8" and platform_system == "AIX"' don't match your environment

  Ignoring numpy: markers 'python_version >= "3.9"' don't match your environment

  Collecting setuptools

    Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)

  Collecting wheel

    Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)

  Collecting Cython<3,>=0.29.21

    Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)

  Collecting numpy==1.17.3

    Using cached numpy-1.17.3.zip (6.4 MB)

  Building wheels for collected packages: numpy

    Building wheel for numpy (setup.py): started

    Building wheel for numpy (setup.py): finished with status 'error'

    ERROR: Command errored out with exit status 1:

     command: /var/packages/py3k/target/usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ltbznc4c/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ltbznc4c/numpy/setup.py'"'
"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-caq_alpn

         cwd: /tmp/pip-install-ltbznc4c/numpy/

    Complete output (14 lines):

    Running from numpy source directory.

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-ltbznc4c/numpy/setup.py", line 443, in <module>

        setup_package()

      File "/tmp/pip-install-ltbznc4c/numpy/setup.py", line 422, in setup_package

        from numpy.distutils.core import setup

      File "/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/core.py", line 26, in <module>

        from numpy.distutils.command import config, config_compiler, \

      File "/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/command/config.py", line 20, in <module>

        from numpy.distutils.mingw32ccompiler import generate_manifest

      File "/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/mingw32ccompiler.py", line 31, in <module>

        import distutils.cygwinccompiler

    ModuleNotFoundError: No module named 'distutils.cygwinccompiler'

    ----------------------------------------

    ERROR: Failed building wheel for numpy

    Running setup.py clean for numpy

    ERROR: Command errored out with exit status 1:

     command: /var/packages/py3k/target/usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ltbznc4c/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ltbznc4c/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: /tmp/pip-install-ltbznc4c/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).

    ----------------------------------------

    ERROR: Failed cleaning build dir for numpy

  Failed to build numpy

  Installing collected packages: setuptools, wheel, Cython, numpy

      Running setup.py install for numpy: started

      Running setup.py install for numpy: finished with status 'error'

      ERROR: Command errored out with exit status 1:

       command: /var/packages/py3k/target/usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ltbznc4c/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ltbznc4c/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 /tmp/pip-record-l0tp9bsn/install-record.txt
 --single-version-externally-managed --prefix /tmp/pip-build-env-cbb90c2z/overlay --compile --install-headers /tmp/pip-build-env-cbb90c2z/overlay/include/python3.8/numpy

           cwd: /tmp/pip-install-ltbznc4c/numpy/

      Complete output (23 lines):

      Running from numpy source directory.

      Note: if you need reliable uninstall behavior, then install

      with pip instead of using `setup.py install`:

        - `pip install .`       (from a git repo or downloaded source

                                 release)

        - `pip install numpy`   (last NumPy release on PyPi)

      Traceback (most recent call last):

        File "<string>", line 1, in <module>

        File "/tmp/pip-install-ltbznc4c/numpy/setup.py", line 443, in <module>

          setup_package()

        File "/tmp/pip-install-ltbznc4c/numpy/setup.py", line 422, in setup_package

          from numpy.distutils.core import setup

        File "/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/core.py", line 26, in <module>

          from numpy.distutils.command import config, config_compiler, \

        File "/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/command/config.py", line 20, in <module>

          from numpy.distutils.mingw32ccompiler import generate_manifest

        File "/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/mingw32ccompiler.py", line 31, in <module>

          import distutils.cygwinccompiler

      ModuleNotFoundError: No module named 'distutils.cygwinccompiler'

      ----------------------------------------

  ERROR: Command errored out with exit status 1: /var/packages/py3k/target/usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ltbznc4c/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip
-install-ltbznc4c/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 /tmp/pip-r
ecord-l0tp9bsn/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-cbb90c2z/overlay --compile --install-headers /tmp/pip-build-env-cbb90c2z/overlay/include/python3.8/numpy Check the logs for full
 command output.

  ----------------------------------------

ERROR: Command errored out with exit status 1: /var/packages/py3k/target/usr/local/bin/python3 /var/packages/py3k/target/usr/local/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-en
v-cbb90c2z/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.15.4; python_version=='"'"'3.6'"'"' and platform_system!='"'"'A
IX'"'"'' 'numpy==1.15.4; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and pla
tform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'
"'"'' Check the logs for full command output.
错误:命令出错,退出状态为1:
命令:/var/packages/py3k/target/usr/local/bin/python3/var/packages/py3k/target/usr/local/lib/python3.8/site-packages/pip安装--忽略安装--无用户--前缀/tmp/pip-build-env-cbb90c2z/overlay--无警告脚本
-位置--无二进制文件:无:--仅二进制文件:无:-ihttps://pypi.org/simple --setuptools控制盘“Cython>=0.29.21,=”“'3.9'”
cwd:没有
完整输出(87行):
忽略numpy:markers'python_version==“3.6”和platform_system!=“AIX”与您的环境不匹配
忽略numpy:markers'python_version==“3.7”和platform_system!=“AIX”与您的环境不匹配
忽略numpy:标记“python\u version==“3.6”和平台\u system==“AIX”与您的环境不匹配
忽略numpy:标记“python\u version==”3.7“和platform\u system==”AIX“与您的环境不匹配
忽略numpy:标记“python\u version==”3.8“和平台\u system==”AIX“与您的环境不匹配
忽略numpy:标记“python\u version>=“3.9”与您的环境不匹配
收集设置工具
使用缓存的setuptools-50.3.2-py3-none-any.whl(785 kB)
集电轮
使用缓存的wheel-0.35.1-py2.py3-none-any.whl(33 kB)
收集Cython=0.29.21
使用缓存的Cython-0.29.21-py2.py3-none-any.whl(974 kB)
收集numpy==1.17.3
使用缓存的numpy-1.17.3.zip(6.4 MB)
为收集的包构建轮子:numpy
为numpy构建控制盘(setup.py):已启动
为numpy(setup.py)构建控制盘:已完成,状态为“error”
错误:命令出错,退出状态为1:
命令:/var/packages/py3k/target/usr/local/bin/python3-u-c'import sys、setuptools、tokenize;sys.argv[0]=“”/tmp/pip-install-ltbznc4c/numpy/setup.py“”__文件“'/tmp/pip-install-ltbznc4c/numpy/setup.py''
"';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“文件”“exec”))“bdist\u wheel-d/tmp/pip-wheel-caq\u alpn
cwd:/tmp/pip-install-ltbznc4c/numpy/
完整输出(14行):
从numpy源目录运行。
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-install-ltbznc4c/numpy/setup.py”,第443行,在
安装程序包()
文件“/tmp/pip-install-ltbznc4c/numpy/setup.py”,第422行,安装程序包中
从numpy.distutils.core导入设置
文件“/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/core.py”,第26行,在
从numpy.distutils.command import config,config\u编译器\
文件“/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/command/config.py”,第20行,在
从numpy.distutils.mingw32c编译器导入生成\u清单
文件“/tmp/pip-install-ltbznc4c/numpy/numpy/distutils/mingw32cpiler.py”,第31行,在
导入distutils.cygwinccompiler
ModuleNotFoundError:没有名为'distutils.cygwinccompiler'的模块
----------------------------------------
错误:为numpy生成控制盘失败
正在为numpy运行setup.py clean
错误:命令出错,退出状态为1:
命令:/var/packages/py3k/target/usr/local/bin/python3-u-c'import sys、setuptools、tokenize;sys.argv[0]=“”/tmp/pip-install-ltbznc4c/numpy/setup.py“”__文件“'/tmp/pip-install-ltbznc4c/numpy/setup.py''
"';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,文件),exec),清除所有
cwd:/tmp/pip-install-ltbznc4c/numpy
完整输出(10行):
从numpy源目录运行。
`setup.py clean`不受支持,请改用以下选项之一:
-`git clean-xdf`(清除所有文件)
-`git clean-Xdf`(清除所有版本文件,不接触
未签入git repo的文件)
在命令中添加“--force”,以便在必要时使用它(不支持)。
----------------------------------------
错误:清理numpy的生成目录失败
无法生成numpy
安装收集的软件包:setuptools、wheel、Cython、numpy
为numpy运行setup.py安装:已启动
正在为numpy运行setup.py安装:已完成,状态为“错误”
错误:命令出错,退出状态为1:
命令:/var/packages/py3k/target/usr/local/bin/python3-u-c'import sys、setuptools、tokenize;sys.argv[0]=“”/tmp/pip-install-ltbznc4c/numpy/setup.py“”__文件\ \='''''/tmp/pip-install-ltbznc4c/numpy/setup.py'
"'"';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)'安装--record/tmp/pip-record-l0tp9bsn/install-record.txt
--外部管理的单一版本--前缀/tmp/pip-build-env-cbb90c2z/overlay--编译--安装头/tmp/pip-build-env-cbb90c2z/overlay/include/python3.8/numpy
cwd:/tmp/pip-install-ltbznc4c/numpy/
完整输出(23行):
从numpy源目录运行。
注意:如果需要可靠的卸载行为,请安装
使用pip而不是“setup.py安装”:
-`pip install.`(来自git repo或下载的源代码
发布)
-`pip安装numpy`(PyPi上的最后一个numpy版本)
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
easy_install -U pip
pip install pandas