Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/288.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 ValueError:信号量或锁释放次数过多?_Python_Matplotlib_Cygwin_Pip - Fatal编程技术网

Python ValueError:信号量或锁释放次数过多?

Python ValueError:信号量或锁释放次数过多?,python,matplotlib,cygwin,pip,Python,Matplotlib,Cygwin,Pip,当我尝试在Cygwin中执行pip install matplotlib时,我得到ValueError:semaphore或lock释放过多次。我该怎么办 更新: $ pip install matplotlib Downloading/unpacking matplotlib You are installing an externally hosted file. Future versions of pip will default to disallowing externally

当我尝试在Cygwin中执行
pip install matplotlib
时,我得到
ValueError:semaphore或lock释放过多次。我该怎么办

更新:

$ pip install matplotlib
Downloading/unpacking matplotlib
  You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files.
  You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.
  Downloading matplotlib-1.3.0.tar.gz (42.1MB): 42.1MB downloaded
  Running setup.py egg_info for package matplotlib
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [1.3.0]
                    python: yes [2.7.5 (default, Jul 30 2013, 14:34:22)  [GCC
                            4.8.1]]
                  platform: yes [cygwin]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.7.1]
                  dateutil: yes [using dateutil version 2.1]
                   tornado: yes [tornado was not found. It is required for the
                            WebAgg backend. pip/easy_install may attempt to
                            install it after matplotlib.]
                 pyparsing: yes [pyparsing was not found. It is required for
                            mathtext support. pip/easy_install may attempt to
                            install it after matplotlib.]
                     pycxx: yes [Couldn't import.  Using local copy.]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: yes [version 16.1.10]
                       png: yes [version 1.5.14]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: yes [nose 0.11.1 or later is required to run the
                            matplotlib test suite]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt4agg: no  [PyQt4 not found]
    Process PoolWorker-1:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
        self.run()
      File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
        self._target(*self._args, **self._kwargs)
      File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
        task = get()
      File "/usr/lib/python2.7/multiprocessing/queues.py", line 378, in get
        rrelease()
    ValueError: semaphore or lock released too many times

我不确定这是否是matplotlib最新(稳定)版本的问题,但我也遇到了同样的问题

我的解决方案是安装一个较旧的稳定版本(1.2.1

1.2.1tar文件,解压缩并安装安装时不要使用cygwin编译器选项。i、 e

   python setup.py build --compiler=cygwin
将失败(为我做的),而通常

   python setup.py build
会有用的。当然,你会想跟进

   python setup.py install
注: 我最近开了一家cygwin64。 我已经安装了所有依赖项。
我还尝试通过pip以及源代码安装1.3.0。两者都抛出了与您在此处描述的完全相同的错误。

尝试将“cygwin”包升级到1.7.26版本()。

您能复制执行
pip
的完整输出吗?@Bakuriu请查找更新我认为您不能在cygwin上安装matplotlib。检查如果您尝试从源代码安装mpl,是否也会发生这种情况?很高兴知道这是mpl/windows安装问题还是pip问题。@Chris Wesseling:64位Cygwin上不会出现这个问题。