无法将烧瓶应用程序推送到heroku,错误“无效URL'./wheelhouse':未提供架构。”

时间:2016-02-28 09:31:57

标签: python heroku flask pip

我正在尝试将一个烧瓶应用程序推到Heroku上,但我一直收到这个错误,我不知道如何修复:

remote:   Exception:
remote:   Traceback (most recent call last):
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/basecommand.py", line 246, in main
remote:       status = self.run(options, args)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/commands/install.py", line 342, in run
remote:       requirement_set.prepare_files(finder)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/req/req_set.py", line 345, in prepare_files
remote:       functools.partial(self._prepare_file, finder))
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/req/req_set.py", line 290, in _walk_req_to_install
remote:       more_reqs = handler(req_to_install)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/req/req_set.py", line 467, in _prepare_file
remote:       req_to_install.populate_link(finder, self.upgrade)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/req/req_install.py", line 251, in populate_link
remote:       self.link = finder.find_requirement(self, upgrade)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/index.py", line 425, in find_requirement
remote:       all_versions = self._find_all_versions(req.name)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/index.py", line 378, in _find_all_versions
remote:       for page in self._get_pages(locations, project_name):
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/index.py", line 579, in _get_pages
remote:       page = self._get_page(location)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/index.py", line 789, in _get_page
remote:       return HTMLPage.get_page(link, session=self.session)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/index.py", line 878, in get_page
remote:       "Cache-Control": "max-age=600",
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/_vendor/requests/sessions.py", line 476, in get
remote:       return self.request('GET', url, **kwargs)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/download.py", line 367, in request
remote:       return super(PipSession, self).request(method, url, *args, **kwargs)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/_vendor/requests/sessions.py", line 450, in request
remote:       prep = self.prepare_request(req)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/_vendor/requests/sessions.py", line 381, in prepare_request
remote:       hooks=merge_hooks(request.hooks, self.hooks),
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/_vendor/requests/models.py", line 304, in prepare
remote:       self.prepare_url(url, params)
remote:     File "/app/.heroku/python/lib/python3.4/site-packages/pip-6.1.1-py3.4.egg/pip/_vendor/requests/models.py", line 361, in prepare_url
remote:       "Perhaps you meant http://{0}?".format(url))
remote:   pip._vendor.requests.exceptions.MissingSchema: Invalid URL './wheelhouse': No schema supplied. Perhaps you meant http://./wheelhouse?

即使我多次尝试升级pip,我也明白了这一点:

  

您正在使用pip版本6.1.1,但版本8.0.3可用。

有关该怎么做的任何建议?

0 个答案:

没有答案