美文网首页
2018-01-04

2018-01-04

作者: 自由快挂 | 来源:发表于2018-01-04 14:28 被阅读7次
    Exception:
    Traceback (most recent call last):
      File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
        status = self.run(options, args)
      File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
        prefix=options.prefix_path,
      File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 784, in install
        **kwargs
      File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 851, in install
        self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
      File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
        isolated=self.isolated,
      File "/Library/Python/2.7/site-packages/pip/wheel.py", line 377, in move_wheel_files
        clobber(source, dest, False, fixer=fixer, filter=filter)
      File "/Library/Python/2.7/site-packages/pip/wheel.py", line 287, in clobber
        ensure_dir(dest)  # common for the 'include' path
      File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
        os.makedirs(path)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
        mkdir(name, mode)
    OSError: [Errno 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pygame'
    

    解决:

    pip install xx --user -U
    

    相关文章

      网友评论

          本文标题:2018-01-04

          本文链接:https://www.haomeiwen.com/subject/jwernxtx.html