小编Arn*_*ram的帖子

找不到"pip == 7.1.0"分布,并且是应用程序所必需的

我在我的ubuntu 16上有最新版本的pip 8.1.1.但我无法通过pip安装任何模块,因为我一直收到此错误.

File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 635, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is required by the application
Run Code Online (Sandbox Code Playgroud)

我找到了类似的链接,但没有帮助.

python ubuntu pip python-2.7

35
推荐指数
5
解决办法
5万
查看次数

Android Profile GPU渲染中红色和黄色水平条意味着什么

我正在尝试为我的应用程序分析 GPU 渲染。官方文档仅提到垂直条,我无法获得有关黄色和红色水平条的任何参考。

我从官方文档中了解到,水平绿线代表 16 毫秒,要实现每秒 60 帧,每帧的垂直条需要保持在这条线下方。但如下图所示,我的应用程序中找不到任何有关黄色和红色水平条的信息。

在此输入图像描述

performance android android-studio

8
推荐指数
1
解决办法
892
查看次数

django.db.utils.OperationalError: 服务器意外关闭了连接

无法解决是什么错误。

django.db.utils.OperationalError: server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.
Run Code Online (Sandbox Code Playgroud)

当我运行以下任何命令时,我一直在获取跟踪

  1. python manage.py makemigrations
  2. python manage.py runserver
Unhandled exception in thread started by <function wrapper at     0x0000000003DAC4A8>
Traceback (most recent call last): File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper fn(*args, **kwargs)
    File "C:\Python27\lib\site packages\django\core\management\commands\runserver.py", line 124, in inner_run
    self.check_migrations()
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 437, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
    File "C:\Python27\lib\site-packages\django\db\migrations\executor.py", line 20, in __init__
    self.loader = MigrationLoader(self.connection)
    File "C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 52, …
Run Code Online (Sandbox Code Playgroud)

python django postgresql

7
推荐指数
1
解决办法
8887
查看次数

自不推荐使用后,可替代googleMap.setOnMyLocationChangeListener

由于不推荐使用googleMap.setOnMyLocationChangeListener,因此,连续检查我当前位置的最佳方法是什么?

我找不到任何答案。

任何帮助,不胜感激。

android google-maps-android-api-2

5
推荐指数
1
解决办法
4708
查看次数

django-rest-auth facebook NoReverseMatch:未找到带有参数“()”和关键字参数“{}”的“socialaccount_signup”的反向。0 个图案

我正在使用django_rest_auth进行 Facebook 登录。

当我尝试通过 facebook api 登录时,我总是收到此错误

/rest_auth/facebook/

我尝试了这篇文章,没有帮助。

[04/Dec/2016 12:55:42] "POST /rest-auth/facebook/ HTTP/1.1" 500 126046
Internal Server Error: /rest-auth/facebook/
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django\views\decorators\csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\views\generic\base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\rest_framework\views.py", line 474, in dispatch
    response = self.handle_exception(exc)
  File "C:\Python27\lib\site-packages\rest_framework\views.py", …
Run Code Online (Sandbox Code Playgroud)

django-allauth django-rest-auth

4
推荐指数
1
解决办法
4249
查看次数