烟雨浩天 2021-03-03 10:02 采纳率: 50%
浏览 943
已采纳

pip install robotframework-ride 报错如何解决?

Running setup.py install for wxPython ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\38341\\AppData\\Local\\Temp\\pip-install-qqf9n4vq\\wxpython_5ba3f1a8f8694734893cf1d6da4f6873\\setup.py'"'"'; __file__='"'"'C:\\Users\\38341\\AppData\\Local\\Temp\\pip-install-qqf9n4vq\\wxpython_5ba3f1a8f8694734893cf1d6da4f6873\\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\38341\AppData\Local\Temp\pip-record-0wft1od5\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\python\Include\wxPython'
         cwd: C:\Users\38341\AppData\Local\Temp\pip-install-qqf9n4vq\wxpython_5ba3f1a8f8694734893cf1d6da4f6873\
    Complete output (27 lines):
    running install
    running build
    Will build using: "d:\python\python.exe"
    3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]
    Python's architecture is 64bit
    cfg.VERSION: 4.0.7.post2

    Running command: build
    Running command: build_wx
    Command '"d:\python\python.exe" -c "import distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "d:\python\lib\distutils\msvc9compiler.py", line 371, in initialize
        vc_env = query_vcvarsall(VERSION, plat_spec)
      File "d:\python\lib\distutils\msvc9compiler.py", line 260, in query_vcvarsall
        raise DistutilsPlatformError("Unable to find vcvarsall.bat")
    distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
    Finished command: build_wx (0.82s)
    Finished command: build (0.82s)
    WARNING: Building this way assumes that all generated files have been
    generated already.  If that is not the case then use build.py directly
    to generate the source and perform the build stage.  You can use
    --skip-build with the bdist_* or install commands to avoid this
    message and the wxWidgets and Phoenix build steps in the future.

    "d:\python\python.exe" -u build.py build
    Command '"d:\python\python.exe" -u build.py build' failed with exit code 1.
    ----------------------------------------
  Rolling back uninstall of wxpython
  Moving to d:\python\lib\site-packages\wx\
   from D:\python\Lib\site-packages\~x
  Moving to d:\python\lib\site-packages\wxpython-4.1.1.dist-info\
   from D:\python\Lib\site-packages\~xpython-4.1.1.dist-info
  Moving to d:\python\scripts\helpviewer.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\helpviewer.exe
  Moving to d:\python\scripts\img2png.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\img2png.exe
  Moving to d:\python\scripts\img2py.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\img2py.exe
  Moving to d:\python\scripts\img2xpm.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\img2xpm.exe
  Moving to d:\python\scripts\pycrust.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\pycrust.exe
  Moving to d:\python\scripts\pyshell.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\pyshell.exe
  Moving to d:\python\scripts\pyslices.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\pyslices.exe
  Moving to d:\python\scripts\pyslicesshell.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\pyslicesshell.exe
  Moving to d:\python\scripts\pywxrc.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\pywxrc.exe
  Moving to d:\python\scripts\wxdemo.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\wxdemo.exe
  Moving to d:\python\scripts\wxdocs.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\wxdocs.exe
  Moving to d:\python\scripts\wxget.exe
   from C:\Users\38341\AppData\Local\Temp\pip-uninstall-5pfe90y6\wxget.exe
ERROR: Command errored out with exit status 1: 'd:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\38341\\AppData\\Local\\Temp\\pip-install-qqf9n4vq\\wxpython_5ba3f1a8f8694734893cf1d6da4f6873\\setup.py'"'"'; __file__='"'"'C:\\Users\\38341\\AppData\\Local\\Temp\\pip-install-qqf9n4vq\\wxpython_5ba3f1a8f8694734893cf1d6da4f6873\\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\38341\AppData\Local\Temp\pip-record-0wft1od5\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\python\Include\wxPython' Check the logs for full command output.

 

展开全部

  • 写回答

2条回答 默认 最新

  • 给你骨质唱疏松 2021-03-05 02:24
    关注

    更换下载源:

    豆瓣源 : http://pypi.douban.com/simple/

    清华源: https://pypi.tuna.tsinghua.edu.cn/simple

    使用方法 : pip install -i https://pypi.tuna.tsinghua.edu.cn/simple robotframework-ride

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
    烟雨浩天 2021-03-08 07:07

    感谢

    回复
    qq_46159441 回复 烟雨浩天 2021-11-23 07:16

    老哥 我的也是这是错,但是按照上边更换下载源还是不行 怎么办?

    1
    回复
    qq_45959672 回复 qq_46159441 2021-12-21 15:18

    解决了哥,我也遇到了

    回复
    展开全部4条评论
查看更多回答(1条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部