Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
pip在运行中安装django显示错误_Django_Pip - Fatal编程技术网

pip在运行中安装django显示错误

pip在运行中安装django显示错误,django,pip,Django,Pip,当我运行命令pip install django时,会出现以下错误: 我试图将django包手动复制到go daddy的站点包中。我从本地机器上复制的。我把它们都拿走了。(我不知道是否还有剩余的东西。但我已经再次检查过了)你能帮我吗 DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will dro

当我运行命令pip install django时,会出现以下错误:

我试图将django包手动复制到go daddy的站点包中。我从本地机器上复制的。我把它们都拿走了。(我不知道是否还有剩余的东西。但我已经再次检查过了)你能帮我吗

 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'

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


sudo apt get install python3

最简单的方法是更新到python3的新版本


sudo apt get install python3

您需要更新python版本。看看他们的文档。import django Traceback(最近一次调用last):文件“”,第1行,在ImportError中:没有名为django 1.11.x的模块不能与python 2一起工作。6@The_Cthulhu_Kid你有什么办法把它做完吗?我已经经历了一个艰难的过程。他们只提供2.6.6我不使用像godaddy这样的东西来托管,对不起。看看Digital Ocean。你需要更新你的python版本。看看他们的文档。import django Traceback(最近一次调用last):文件“”,第1行,在ImportError中:没有名为django 1.11.x的模块不能与python 2一起工作。6@The_Cthulhu_Kid你有什么办法把它做完吗?我已经经历了一个艰难的过程。他们只提供2.6.6我不使用像godaddy这样的东西来托管,对不起。看看数字海洋。对不起,兄弟,我没有根访问权限。我几乎没能安装pip,但它仍然不起作用,因为greatDjango 1.11需要2.7、3.4、3.5或3.6 Python版本:我非常感谢你,对不起,兄弟,但我没有根访问权限。我几乎没能安装pip,但它仍然不能正常工作。django 1.11需要2.7、3.4、3.5或3.6 Python版本:我非常感谢你