Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python PIP3安装始终尝试从git lfs目录获取包_Python_Python 3.x_Git_Pip_Git Lfs - Fatal编程技术网

Python PIP3安装始终尝试从git lfs目录获取包

Python PIP3安装始终尝试从git lfs目录获取包,python,python-3.x,git,pip,git-lfs,Python,Python 3.x,Git,Pip,Git Lfs,每次我尝试使用pip3安装包时,它都试图从git lfs包存储库获取包,这当然会返回HTTP 404错误 我已经尝试卸载和安装pip3。例如,尝试安装bokeh时: pip3 install --default-timeout=1000 bokeh 我得到一个例外: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in mai

每次我尝试使用pip3安装包时,它都试图从git lfs包存储库获取包,这当然会返回HTTP 404错误

我已经尝试卸载和安装pip3。例如,尝试安装bokeh时:

pip3 install --default-timeout=1000 bokeh
我得到一个例外:

    Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 795, in get_page
    resp.raise_for_status()
  File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://packagecloud.io/github/git-lfs/pypi/simple/bokeh/
尝试从安装

请参阅以下两种解决方案:一种用于虚拟,另一种用于非虚拟:/

步骤:
第一步。使用
pip3 Install jupyter安装笔记本电脑

第二步。使用
pip3安装bokeh安装bokeh

第三步。使用jupyter笔记本启动笔记本
(在最后一步中,在不激活虚拟环境的情况下执行此过程)

在虚拟环境中运行:
第一步。激活您的虚拟环境
第二步。使用
python-m pip Install jupyter安装笔记本电脑

第三步。使用
python-m pip安装bokeh安装bokeh


第四步。使用jupyter笔记本启动笔记本电脑

我无法使用Pipse安装任何东西。我发布了新的答案,在那里我遇到了相同的挑战,这只是一个棘手的代理设置。