Luk*_*lic 7 python django django-manage.py pycharm
在我的一个项目中,我无法打开管理任务控制台.它适用于其他项目,但不适用于此项目.它之前有效,但最近停止了.我尝试使用旧版本的项目,但它仍然破碎.我收到此错误:
Failed to get real commands on module "Visdjango": python process died with code 1: Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 4.5.1\helpers\pycharm\manage_tasks_provider.py", line 22, in <module>
parser.report_data(dumper)
File "C:\Program Files (x86)\JetBrains\PyCharm 4.5.1\helpers\pycharm\django_manage_commands_provider\_parser\parser.py", line 40, in report_data
module_to_use.process_command(dumper, command, command.create_parser("", command_name))
File "C:\Program Files (x86)\JetBrains\PyCharm 4.5.1\helpers\pycharm\django_manage_commands_provider\_parser\_optparse.py", line 23, in process_command
dumper.set_arguments(command.args)
File "C:\Program Files (x86)\JetBrains\PyCharm 4.5.1\helpers\pycharm\django_manage_commands_provider\_xml.py", line 95, in set_arguments
self.__command_element.setAttribute("args", VersionAgnosticUtils().to_unicode(command_args_text))
File "C:\Program Files (x86)\JetBrains\PyCharm 4.5.1\helpers\pycharm\utils.py", line 36, in to_unicode
return unicode(obj.decode("utf-8"))
AttributeError: 'list' object has no attribute 'decode'
Run Code Online (Sandbox Code Playgroud)
如果您使用的是虚拟环境,请确保您的项目解释器(设置 > 项目:... > 项目解释器)指向其中的 python 可执行文件(例如,my_virtual_env/bin/python3.4)。
如果你使用的是虚拟机,你还需要让你的项目解释器设置指向你的虚拟机下的虚拟环境下的python版本。如果您使用 Vagrant,这很容易,因为当您尝试添加新的解释器时,PyCharm 可以让您选择 Vagrant,然后浏览 VM 文件系统以指向您需要的文件。
| 归档时间: |
|
| 查看次数: |
4598 次 |
| 最近记录: |