pymrmr icon indicating copy to clipboard operation
pymrmr copied to clipboard

Install error: [WinError 2]

Open courageface opened this issue 6 years ago • 7 comments

  • PymRMR version: 0.18
  • Python version: 3.5.4
  • Operating System: Windows 10

Description

When installing pymrmr, I downloaded project files and installed vc, mingw, cython but some errors occurs:

  1. Failed building wheel
  2. running build_ext error: [WinError 2] The system can not find the specified file.

What I Did

I run ' pip install pymrmr' in ./pymrmr-master/ and whole output is like:

 ----------------------------------------
  Failed building wheel for pymrmr
  Running setup.py clean for pymrmr
Failed to build pymrmr
Installing collected packages: pymrmr
  Running setup.py install for pymrmr ... error
    Complete output from command e:\anaconda3\envs\py35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-hgwwn9as\\pymrmr\\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\ADMINI~1\AppData\Local\Temp\pip-record-_oq9dut5\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    package init file 'pymrmr\__init__.py' not found (or not a regular file)
    running egg_info
    writing top-level names to pymrmr.egg-info\top_level.txt
    writing dependency_links to pymrmr.egg-info\dependency_links.txt
    writing requirements to pymrmr.egg-info\requires.txt
    writing pymrmr.egg-info\PKG-INFO
    reading manifest file 'pymrmr.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
    warning: no files found matching '*.jpg' under directory 'docs'
    warning: no files found matching '*.png' under directory 'docs'
    warning: no files found matching '*.gif' under directory 'docs'
    writing manifest file 'pymrmr.egg-info\SOURCES.txt'
    creating build
    creating build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\crank.cpp -> build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\mrmr.cpp -> build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\nrutil.cpp -> build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\nrutil.h -> build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\pbetai.cpp -> build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\pymrmr.cpp -> build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\pymrmr.pyx -> build\lib.win-amd64-3.5\pymrmr
    copying pymrmr\sort2.cpp -> build\lib.win-amd64-3.5\pymrmr
    running build_ext
    error: [WinError 2] The system can not find the specified file.

    ----------------------------------------
Command "e:\anaconda3\envs\py35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-hgwwn9as\\pymrmr\\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\ADMINI~1\AppData\Local\Temp\pip-record-_oq9dut5\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-hgwwn9as\pymrmr\

courageface avatar Sep 11 '18 09:09 courageface

Hi @courageface, what does it happen if you try to install it directly from pypi?

fbrundu avatar Sep 11 '18 15:09 fbrundu

Thanks for reply. I tried it and the same errors occurred.

courageface avatar Sep 11 '18 15:09 courageface

I'm sorry, I have not a windows machine at the moment to test it. The last time it was working correctly. Please let me know if you find a solution for it, I'll leave this issue open for now. I'll update you if I manage to find a windows box to install it. In the meantime, do you have gcc installed on your windows and added to your path?

Francesco

fbrundu avatar Sep 11 '18 15:09 fbrundu

Thank you, for gcc, I haven't install one yet, maybe it can solve the error?

courageface avatar Sep 11 '18 16:09 courageface

I am guessing it may help, but not having a windows machine to test I cannot be sure this is the underlying issue..

fbrundu avatar Sep 11 '18 16:09 fbrundu

OK, I'll have a try and update if it works. Thanks a lot !

courageface avatar Sep 11 '18 16:09 courageface

I am having the same issue but on mac. Any suggestions? OS: macOS Mojave Version 10.14.1 Python 2.7.15 and 3.7 Latest version of pymrmr

TeslaC-137 avatar Dec 21 '18 02:12 TeslaC-137