简体   繁体   English

pycharm manage.py tasks ImportError:没有名为manage的模块

[英]pycharm manage.py tasks ImportError: No module named manage

When trying to execute "run manage.py Task..." in pycharm with a remote environment I'm getting the following error: 当尝试在pycharm中使用远程环境执行“run manage.py Task ...”时,我收到以下错误:

ssh://vagrant@127.0.0.1:2222/home/vagrant/.virtualenvs/telmo/bin/python3.4 -u /home/vagrant/.pycharm_helpers/pycharm/django_manage.py migrate /home/alberick/Documents/tixif-projects/telmo-api/api
bash: line 0: cd: /home/alberick/Documents/tixif-projects/telmo-api/api: No such file or directory
Traceback (most recent call last):
  File "/home/vagrant/.pycharm_helpers/pycharm/django_manage.py", line 23, in <module>
    run_module(manage_file, None, '__main__', True)
  File "/usr/lib/python3.4/runpy.py", line 178, in run_module
    mod_name, mod_spec, code = _get_module_details(mod_name)
  File "/usr/lib/python3.4/runpy.py", line 112, in _get_module_details
    raise ImportError("No module named %s" % mod_name)
ImportError: No module named manage

Process finished with exit code 1 

I was having the same issue for "Run Django Console..." but I got it working using "No module named manage" in PyCharm . 我在“Run Django Console ...”中遇到了同样的问题,但我在PyCharm中使用“No module命名为manage”工作

I fixed this issue by first adding a new deployment server to pycharm. 我通过首先向pycharm添加新的部署服务器来解决此问题。

Just go into Tools / Deployment. 只需进入工具/部署。

Click the Plus sign and configure a new SFTP connection. 单击加号并配置新的SFTP连接。 Then click Mappings and configure your local path and deployment server path. 然后单击Mappings并配置本地路径和部署服务器路径。

Then add the remote interpreter to pycharm using "deployment configuration" 然后使用“部署配置”将远程解释器添加到pycharm

After this "run django console" and "run manage.py Task" started to work on remote for me. 在此之后“运行django控制台”和“运行manage.py任务”开始为我工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 manage.py - 导入错误:没有名为 django 的模块 - manage.py - ImportError: No module named django ImportError:使用manage.py来运行服务器时,没有名为TestModel的模块 - ImportError: No module named TestModel when use manage.py to runserver Python manage.py ImportError:没有名为django的模块 - Python manage.py ImportError: No module named django manage.py 上没有名为“portfoliodjango”的模块错误 - No module named 'portfoliodjango' error on manage.py manage.py runserver importerror - manage.py runserver importerror python celery - ImportError:没有名为_curses的模块 - 在尝试运行manage.py celeryev时 - python celery - ImportError: No module named _curses - while attempting to run manage.py celeryev ImportError:没有名为toneapp.settings的模块-当我运行python manage.py makemigrations时 - ImportError: No module named toneapp.settings - when i am running python manage.py makemigrations 当我运行./manage.py运行服务器时,我得到错误ImportError:没有名为celery的模块 - When I run ./manage.py run server I get the error ImportError: No module named celery 给出ImportError的python manage.py build_solr_schema:没有名为markup的模块 - python manage.py build_solr_schema giving ImportError: No module named markup 出现ImportError:执行python manage.py syncdb时没有名为azure.storage.blob的模块 - Getting ImportError: No module named azure.storage.blob when doing python manage.py syncdb
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM