环境win7
D:\>python D:/splinter-0.5.4/setup.py install
Traceback (most recent call last):
File "D:/splinter-0.5.4/setup.py", line 11, in <module>
README = codecs.open('README.rst', encoding='utf-8').read()
File "C:\Python27\lib\codecs.py", line 881, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: 'README.rst'
从上面可看出我的splinter setup.py在D盘的splinter-0.5.4文件下
如果直接用 python D:/splinter-0.5.4/setup.py install 进行安装就会出上面的错误
解决方法:
通过命令进入D:/splinter-0.5.4/ 在执行命令python setup.py install即可