Pip error: Microsoft Visual C++ 14.0 is required

后端 未结 8 1815
离开以前
离开以前 2020-11-22 09:58

I just ran the following command:

pip install -U steem

and the installation worked well until it failed to install pycrypto. Aft

8条回答
  •  囚心锁ツ
    2020-11-22 10:43

    I faced the same problem. Found the fix here. https://github.com/statsmodels/statsmodels/issues/4160

    Basically just install

    http://go.microsoft.com/fwlink/?LinkId=691126&fixForIE=.exe

    shasum output:

    3e0de8af516c15547602977db939d8c2e44fcc0b visualcppbuildtools_full.exe md5sum output:

    MD5 (visualcppbuildtools_full.exe) = 8d4afd3b226babecaa4effb10d69eb2e

    Run your pip installation command again. If everything works fine, its good. Or you might face the following error like me:

    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
    

    Found the fix for the above problem here: Visual Studio can't build due to rc.exe

    That basically says

    Add this to your PATH environment variables:
    
    C:\Program Files (x86)\Windows Kits\8.1\bin\x86
    
    Copy these files:
    
    rc.exe
    rcdll.dll
    
    From
    
    C:\Program Files (x86)\Windows Kits\8.1\bin\x86
    
    To
    
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin
    

    It works like a charm

提交回复
热议问题