使用Pip在IronPython 2.7.7中安装软件包时出现异常

时间:2017-03-18 15:47:23

标签: c# python nltk ironpython

我正在尝试安装多个软件包,以便通过IronPython在C#应用程序中使用它。但是,当我从Windows控制台运行ipy -X:Frames -m pip install package_name时出现以下错误:

Exception:
Traceback (most recent call last):
  File "c:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\basecommand.py", line 209, in main
    status = self.run(options, args)
  File "c:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\commands\install.py", line 299, in run
    requirement_set.prepare_files(finder)
  File "c:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\req\req_set.py", line 356, in prepare_files
    discovered_reqs.extend(self._prepare_file(
  File "c:\Program Files (x86)\IronPython 2.7\Lib\contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\utils\logging.py", line 36, in indent_log
    yield
ValueError: too many values to unpack

更新:在异常之前我看到两个警告。也许他们与这个问题有关。

C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:1: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  from __future__ import absolute_import
C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py:1: SubjectAltNameWarning: Certificate for pypi.python.org has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  from __future__ import absolute_import

我可以在单独的python安装中通过pip安装NLTK。我试图通过sys.path.append()引用这些软件包,但它也不起作用。但是,我认为无论如何这都不是一个好的解决方案。

0 个答案:

没有答案
相关问题