在Windows上的GoogleScraper – 错误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

为了正确安装GoogleScraper,我在文件“setup.py”中删除了一个斜杠。

去24号线换衣服。

  packages=['GoogleScraper'], entry_points={'console_scripts': ['GoogleScraper = GoogleScraper.core:main']}, - package_dir={'examples': 'examples/'}, + package_dir={'examples': 'examples'}, install_requires=requirements )