Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem using pip in Anaconda #570

Open
felix-tracxpoint opened this issue Nov 27, 2017 · 1 comment
Open

Installation problem using pip in Anaconda #570

felix-tracxpoint opened this issue Nov 27, 2017 · 1 comment

Comments

@felix-tracxpoint
Copy link

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!

@davidskun
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants