在 Windows 10 x64 上安装 Python 3.5.1 后,cpplint
安装 frompip
会产生错误:failed to create process
. 似乎有一个可能与pip
路径中有空格相关的问题,这存在于我的用例中。它似乎与如何创建exe有关。如何纠正这个错误?重新安装 Python 并cpplint
没有解决问题。
C:\Users>python -V
Python 3.5.1
C:\Users>pip list
pip (7.1.2)
setuptools (18.2)
C:\Users>pip -V
pip 7.1.2 from c:\users\john hagen\appdata\local\programs\python\python35\lib\site-packages (python 3.5)
C:\Users>pip install cpplint
Collecting cpplint
Using cached cpplint-0.0.6.tar.gz
Installing collected packages: cpplint
Running setup.py install for cpplint
Successfully installed cpplint-0.0.6
C:\Users>where.exe cpplint
C:\Users\John Hagen\AppData\Local\Programs\Python\Python35\Scripts\cpplint.exe
C:\Users>cpplint
failed to create process.