簡體   English   中英

Windows上的GoogleScraper - 錯誤setup.py egg_info

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM