【问题标题】:Cannot install Django 1.9.6 on python anywhere无法在任何地方的 python 上安装 Django 1.9.6
【发布时间】:2020-11-10 23:54:01
【问题描述】:

我试图在任何地方的 python 上安装这个 Django 版本,但我得到了这个错误:

Looking in links: /usr/share/pip-wheels
Collecting Django==1.9.6
Using cached  
   
https://files.pythonhosted.org/packages/cb/97/081df31f2a3850988b92ad4464e95f9e4b257aa5a34e120bca89c260de96/Django-1.9.6-py2.py3-none-any.whl
ERROR: django-mptt 0.10.0 has requirement Django>=1.11, but you'll have django 1.9.6 which is incompatible.
ERROR: django-contrib-comments 1.9.1 has requirement Django>=1.11, but you'll have django 1.9.6 which is incompatible.
ERROR: django-classy-tags 0.9.0 has requirement Django>=1.11, but you'll have django 1.9.6 which is incompatible.
ERROR: django-sekizai 1.0.0 has requirement django>=1.11, but you'll have django 1.9.6 which is incompatible.
Installing collected packages: Django
  Found existing installation: Django 2.2.7
    Uninstalling Django-2.2.7:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/bin/__pycache__/django-admin.cpython-35.pyc'
Consider using the `--user` option or check the permissions.

我还想将所有已安装的 python 3.5 库迁移到 python 上的 python3.5 文件夹 lib 上的任何地方,以便我们的网站可以使用 .如果是这种情况,我不需要重新安装这个库,那么我认为我们不需要在任何地方使用 python 来迁移 20 多个 Django 网站。

【问题讨论】:

    标签: pythonanywhere


    【解决方案1】:

    解决方法在错误信息的最后提示:Consider using the --user option or check the permissions. Just go with --user option while install with pip (记得指定pip应该使用哪个Python版本,否则默认为2.7 ) 它应该可以正常工作。您可能还想阅读this PythonAnywhere help page

    【讨论】:

      猜你喜欢
      • 2016-11-09
      • 2020-01-07
      • 2021-12-04
      • 1970-01-01
      • 2021-03-19
      • 2018-11-02
      • 2013-11-06
      • 2018-09-20
      相关资源
      最近更新 更多