pip install django on go daddy显示错误

时间:2017-07-28 07:12:08

标签: django pip

当我运行命令pip install django时,在go daddy上它给了我以下错误:

我尝试将django软件包手动复制到go daddy的site-packages中。我从本地机器上复制了它。我删除了所有这些。(我不知道是否还有剩余的东西。但我已经再次检查过了)你能帮忙解决这个问题吗?

 DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
    Collecting django
      Using cached Django-1.11.3-py2.py3-none-any.whl
    Requirement already satisfied: pytz in /usr/lib/python2.6/site-packages (from django)
    Installing collected packages: django
    Exception:
    Traceback (most recent call last):
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/basecommand.py", line 215, in main
        status = self.run(options, args)
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/commands/install.py", line 342, in run
        prefix=options.prefix_path,
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/req/req_set.py", line 784, in install
        **kwargs
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/req/req_install.py", line 851, in install
        self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
        isolated=self.isolated,
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/wheel.py", line 345, in move_wheel_files
        clobber(source, lib_dir, True)
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/wheel.py", line 316, in clobber
        ensure_dir(destdir)
      File "/home/lmtech123/.local/lib/python2.6/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
        os.makedirs(path)
      File "/usr/lib64/python2.6/os.py", line 157, in makedirs
        mkdir(name, mode)
    OSError: [Errno 30] Read-only file system: '/usr/lib64/python2.6/site-packages/Django-1.11.3.dist-info'

1 个答案:

答案 0 :(得分:0)

简单的方法是更新到新版本的Python3

sudo apt-get install python3