Anaconda Spyder中的pymzml安装错误

时间:2017-11-22 04:21:58

标签: pip install anaconda spyder

我使用Anaconda Spyder。 Python 3.6版本。

操作系统是Windows 7 64位

我在IPython控制台中写道。

!pip install pymzml

然后我收到此错误消息。

Collecting pymzml
  Using cached pymzml-2.0.0.zip
Building wheels for collected packages: pymzml
  Running setup.py bdist_wheel for pymzml: started
  Running setup.py bdist_wheel for pymzml: finished with status 'error'
  Complete output from command C:\ProgramData\Anaconda3\python.exe -u -c 
"import setuptools, 
 tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-build-8r_4srar\\pymzml\\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 
C:\Users\user\AppData\Local\Temp\tmpb89hzuklpip-wheel- --python-tag cp36:
  [ pymzML ] Warning: no plotly installed ...
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.6
  creating build\lib.win-amd64-3.6\pymzml
  copying pymzml\decoder.py -> build\lib.win-amd64-3.6\pymzml
  copying pymzml\file_interface.py -> build\lib.win-amd64-3.6\pymzml
  copying pymzml\ms_numpress.py -> build\lib.win-amd64-3.6\pymzml

...

  running build_ext
  cythoning C:\Users\user\AppData\Local\Temp\pip-build-8r_4srar\pymzml\Numpress\PyNumpress.pyx to C:\Users\user\AppData\Local\Temp\pip-build-8r_4srar\pymzml\Numpress\PyNumpress.cpp
  building 'PyNumpress' extension
  error: [WinError 3] The system cannot find the path specified.: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

如何在Anaconda Spyder环境中安装pymzml

1 个答案:

答案 0 :(得分:1)

Spyder维护者)有关您的问题需要注意两件重要事项:

  1. 您的命令失败,因为您的系统中未安装Microsoft Visual Studio 2013编译器。如果没有此编译器,将无法安装此软件包。
  2. 我们的IPython控制台用于运行Python代码,或使用!foo语法命令运行非常简单的外部命令。对于更复杂的任务(如安装包),您需要使用真实的终端(即cmd.exe)。