git clone出现fatal: unable to access ‘https://github.com/xxx‘:Failed to connect to

今天装weditor的时候出错一直装不上
一开始的报错

C:\Users\12416>pip install weditor
Collecting weditor
  Using cached weditor-0.6.5.tar.gz (2.2 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      WARNING: The wheel package is not available.
      ERROR:root:Error parsing
      Traceback (most recent call last):
        File "c:\users\12416\appdata\local\temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\.eggs\pbr-5.8.1-py3.9.egg\pbr\core.py", line 111, in pbr
          attrs = util.cfg_to_args(path, dist.script_args)
        File "c:\users\12416\appdata\local\temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\.eggs\pbr-5.8.1-py3.9.egg\pbr\util.py", line 272, in cfg_to_args
          pbr.hooks.setup_hook(config)
        File "c:\users\12416\appdata\local\temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\.eggs\pbr-5.8.1-py3.9.egg\pbr\hooks\__init__.py", line 25, in setup_hook
          metadata_config.run()
        File "c:\users\12416\appdata\local\temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\.eggs\pbr-5.8.1-py3.9.egg\pbr\hooks\base.py", line 27, in run
          self.hook()
        File "c:\users\12416\appdata\local\temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\.eggs\pbr-5.8.1-py3.9.egg\pbr\hooks\metadata.py", line 25, in hook
          self.config['version'] = packaging.get_version(
        File "c:\users\12416\appdata\local\temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\.eggs\pbr-5.8.1-py3.9.egg\pbr\packaging.py", line 860, in get_version
          version = _get_version_from_pkg_metadata(package_name)
        File "c:\users\12416\appdata\local\temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\.eggs\pbr-5.8.1-py3.9.egg\pbr\packaging.py", line 828, in _get_version_from_pkg_metadata
          pkg_metadata = email.message_from_file(pkg_metadata_file)
        File "c:\users\12416\appdata\local\programs\python\python39\lib\email\__init__.py", line 54, in message_from_file
          return Parser(*args, **kws).parse(fp)
        File "c:\users\12416\appdata\local\programs\python\python39\lib\email\parser.py", line 53, in parse
          data = fp.read(8192)
      UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multibyte sequence
      error in setup command: Error parsing C:\Users\12416\AppData\Local\Temp\pip-install-qi2qgs7_\weditor_8b2a7063f070423392b1a9e3cc20fce9\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multibyte sequence
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
C:\Users\xxx>git clone https://github.com/openatx/weditor
Cloning into 'weditor'...
fatal: unable to access 'https://github.com/openatx/weditor/': Failed to connect to github.com port 443 after 21119 ms: Timed out

上面报错的解决方法:
去装个git(参考文档:https://blog.csdn.net/weixin_39553352/article/details/111162251),然后

git clone https://github.com/openatx/weditor

或者用这个

git clone git://github.com/openatx/weditor
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值