python - 安装 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
解决方案
您输入的命令不太正确——您缺少“3.6”。应该是这样的:
pip3.6 install --user pythonanywhere
推荐阅读
- ajax - JSF2 - SelectOneMenu 在第一次 setter 调用后“挂起”
- arduino - Arduino 将值从 file.read() 转换为 const char*
- json - 如何通过命令行或手动将 json 文件数据加载到现有的 couchbase 存储桶中?
- angular - 如何从详细信息页面Angular 9中的单个对象(本地JSON)获取详细信息
- sql - 存储过程不适用于动态 where 子句
- css - 字体显示在桌面但不在移动设备上
- c++ - C++ Expat 仅打印标签中元素和数据的首字母
- windows-10 - 为什么在社交媒体上从我的网站共享链接时会显示本地 IP 地址?
- css - Ionic React 不能在 IonItem 中使用 flexbox 或加载外部 .css
- r - ggplot2中具有多个标签/信息的饼图