Mayavi: Installation problem using pip in Anaconda

Created on 27 Nov 2017  ·  1Comment  ·  Source: enthought/mayavi

I am trying to install mayavi within Anaconda by the following command:

pip install git+https://github.com/enthought/mayavi

and get the following error:

 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\USER\Anaconda3\envs\tracx\libs /LIBPATH:C:\Users\USER\Anaconda3\envs\tracx\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x64" /EXPORT:PyInit_ctraits build\temp.win-amd64-3.5\Release\traits/ctraits.obj /OUT:build\lib.win-amd64-3.5\traits\ctraits.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\traits\ctraits.cp35-win_amd64.lib
    ctraits.obj : warning LNK4197: export 'PyInit_ctraits' specified multiple times; using first specification
       Creating library build\temp.win-amd64-3.5\Release\traits\ctraits.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\traits\ctraits.cp35-win_amd64.exp
    Generating code
    Finished generating code
    LINK : fatal error LNK1158: cannot run 'rc.exe'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1158

    ----------------------------------------
Command "C:\Users\USER\Anaconda3\envs\tracx\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\USER\\AppData\\Local\\Temp\\pip-build-yk4daflv\\traits\\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\USER\AppData\Local\Temp\pip-6tm9qdu0-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\USER\AppData\Local\Temp\pip-build-yk4daflv\traits\ 

What is the problem? Is it in the traits package? Or something completely different?

Thanks in advance!

Most helpful comment

I ran into this same problem when installing traits on Windows10. The answer is at stackoverflow

What I did,

  1. Copy these files from C:\Program Files (x86)\Windows Kits\8.1\bin\x86 (may be different for you)
    rc.exe
    rcdll.dll
  2. To C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

Then did pip install -v --process-dependency-links traits
I think this should help resolve the fatal error LNK1158

>All comments

I ran into this same problem when installing traits on Windows10. The answer is at stackoverflow

What I did,

  1. Copy these files from C:\Program Files (x86)\Windows Kits\8.1\bin\x86 (may be different for you)
    rc.exe
    rcdll.dll
  2. To C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

Then did pip install -v --process-dependency-links traits
I think this should help resolve the fatal error LNK1158

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kekushke picture Kekushke  ·  9Comments

indranilsinharoy picture indranilsinharoy  ·  9Comments

relyativist picture relyativist  ·  16Comments

igamenovoer picture igamenovoer  ·  7Comments

stefanoborini picture stefanoborini  ·  11Comments