我在我的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)
我找到了类似的链接,但没有帮助.
无法解决是什么错误。
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)
当我运行以下任何命令时,我一直在获取跟踪
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) 由于不推荐使用googleMap.setOnMyLocationChangeListener,因此,连续检查我当前位置的最佳方法是什么?
我找不到任何答案。
任何帮助,不胜感激。
我正在使用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)