首页 > 解决方案 > 安装 Python Anywhere 帮助工具时出错

问题描述

我是 Django 的初学者,并遵循https://tutorial.djangogirls.org/en/deploy/的教程,但停留在这一点上。没有找到任何可以帮助我做同样事情的来源

pravin@pravin:~/djangogirls/mysite$ pip install --user pythonanywhere
    Collecting pythonanywhere
      Using cached https://files.pythonhosted.org/packages/91/72/ea7eb1d3dc072034a90e766eadd7fe98406c8ca0664b3eeef820b7d080fb/pythonanywhere-0.0.11.tar.gz
        Complete output from command python setup.py egg_info:
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-install-DbYlRG/pythonanywhere/setup.py", line 1, in <module>
            from pathlib import Path
        ImportError: No module named pathlib

        ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-DbYlRG/pythonanywhere/

操作系统:Debian 8 和默认 Python 版本:2.7

标签: pythondjangopythonanywhere

解决方案


您输入的命令不太正确——您缺少“3.6”。应该是这样的:

pip3.6 install --user pythonanywhere

推荐阅读