尝试使用pipwin安装软件包时遇到问题

时间:2020-10-29 23:15:18

标签: python pip

我使用pipwin已有一段时间了,直到今天一切正常。我试图用pipwin下载软件包,这是我得到的错误:

C:\Users\barry>pipwin install orange3
Package `orange3` found in cache
Downloading package . . .
https://download.lfd.uci.edu/pythonlibs/x2tqcw5k/Orange3-3.27.0-cp38-cp38-win_amd64.whl
Orange3-3.27.0-cp38-cp38-win_amd64.whl
Traceback (most recent call last):
  File "c:\users\barry\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\barry\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\barry\AppData\Local\Programs\Python\Python38\Scripts\pipwin.exe\__main__.py", line 7, in <module>
  File "c:\users\barry\appdata\local\programs\python\python38\lib\site-packages\pipwin\command.py", line 98, in main
    cache.install(package)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\site-packages\pipwin\pipwin.py", line 300, in install
    wheel_file = self.download(requirement)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\site-packages\pipwin\pipwin.py", line 294, in download
    return self._download(requirement, dest)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\site-packages\pipwin\pipwin.py", line 290, in _download
    obj.start()
  File "c:\users\barry\appdata\local\programs\python\python38\lib\site-packages\pySmartDL\pySmartDL.py", line 267, in start
    urlObj = urllib.request.urlopen(req, timeout=self.timeout, context=self.context)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\urllib\request.py", line 640, in http_response
    response = self.parent.error(
  File "c:\users\barry\appdata\local\programs\python\python38\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "c:\users\barry\appdata\local\programs\python\python38\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

似乎与网址有关。有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

尝试“ pipwin刷新”。对于我来说,这解决了类似的问题。