你能解决这个问题吗AttributeError:'tuple'对象没有属性'Command'

时间:2019-12-30 04:45:24

标签: php python django

我的错误:AttributeError: 'tuple' object has no attribute 'InstallComman

Traceback (most recent call last):
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python36-32\Scripts\django-admin.exe\__main__.py", line 9, in <module>
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 244, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 38, in load_command_class
    return module.Command()
AttributeError: 'tuple' object has no attribute 'Command'

C:\Users\LENOVO\PycharmProjects\Soil>workon demo
(demo) C:\Users\LENOVO\PycharmProjects\Soil>django-admin startproject App
Traceback (most recent call last):
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python36-32\Scripts\django-admin.exe\__main__.py", line 9, in <module>
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 244, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 38, in load_command_class
    return module.Command()
AttributeError: 'tuple' object has no attribute 'Command'

(demo) C:\Users\LENOVO\PycharmProjects\Soil>django-admin startproject App
Traceback (most recent call last):
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python36-32\Scripts\django-admin.exe\__main__.py", line 9, in <module>
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 244, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py", line 38, in load_command_class
    return module.Command()
AttributeError: 'tuple' object has no attribute 'Command'

(demo) C:\Users\LENOVO\PycharmProjects\Soil>worekon (my_vir_env)
'worekon' is not recognized as an internal or external command,
operable program or batch file.

(demo) C:\Users\LENOVO\PycharmProjects\Soil>worekon my_vir_env
'worekon' is not recognized as an internal or external command,
operable program or batch file.

(demo) C:\Users\LENOVO\PycharmProjects\Soil>pip install django
Traceback (most recent call last):
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python36-32\Scripts\pip.exe\__main__.py", line 9, in <module>
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\pip\_internal\main.py", line 45, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\pip\_internal\commands\__init__.py", line 97, in create_command
    command_class = getattr(module, class_name)
AttributeError: 'tuple' object has no attribute 'InstallComman

0 个答案:

没有答案