[英]GoogleScraper on Windows - Error setup.py egg_info
我在使用python安装GoogleScraper时遇到问题。 我搞不清楚了。 看看我的问题: 捕获
File "C:\Python34\lib\distutils\command\build_py.py", line 55, in finalize_options
self.package_dir[name] = convert_path(path)
File "C:\Python34\lib\distutils\util.py", line 127, in convert_path
raise ValueError("path '%s' cannot end with '/'" % pathname)
ValueError: path 'examples/' cannot end with '/'
----------------------------------------
Cleaning up...
Removing temporary dir C:\Users\Billy\AppData\Local\Temp\pip_build_Billy...
Command python setup.py egg_info failed with error code 1 in C:\Users\Billy\AppData\Local\Temp\pip_build_Billy\GoogleScraper
Exception information:
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "C:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python34\lib\site-packages\pip\req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "C:\Python34\lib\site-packages\pip\req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "C:\Python34\lib\site-packages\pip\util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in C:\Users\Billy\AppData\Local\Temp\pip_build_Billy\GoogleScraper
我已经尝试了很多方法来解决这个问题,比如GoogleScraper的文档中所说的https://github.com/NikolaiT/GoogleScraper#on-windows
我也尝试过运行命令
python ez_setup.py
但它不适合我。
请帮我。
我用这个解决方案解决了我的问题 - > Github
我在文件“setup.py”中删除了一个斜杠,以便正确安装GoogleScraper。
转到第24行进行更改。
packages=['GoogleScraper'],
entry_points={'console_scripts': ['GoogleScraper = GoogleScraper.core:main']},
- package_dir={'examples': 'examples/'},
+ package_dir={'examples': 'examples'},
install_requires=requirements
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.