如何从OS X卸载Carthage?

时间:2016-09-29 14:42:24

标签: macos carthage

不知何故,我的Carthage安装已损坏(好像我安装了两个版本),因为我使用Carthage.pkg文件安装了brew install carthage。我想完全删除迦太基,但无法找到方法。

3 个答案:

答案 0 :(得分:13)

为了删除安装的迦太基:

  1. Carthage.pkg

    AttributeErrorTraceback (most recent call last)
    C:\SPB_Data\setup.py in <module>()
          1 from setuptools import setup,Extension
    ----> 2 from Cython.Build import cythonize
          3 setup( name = 'increment app',ext_modules = cythonize("hello.pyx"))
    C:\Users\kalachand\AppData\Local\Enthought\Canopy32\edm\envs\User\lib\site-packages\Cython\Build\__init__.py in <module>()
    ----> 1 from .Dependencies import cythonize
          2 from .Distutils import build_ext
    C:\Users\kalachand\AppData\Local\Enthought\Canopy32\edm\envs\User\lib\site-packages\Cython\Build\Dependencies.py in <module>()
        176 
        177 
    --> 178 @cython.locals(start=cython.Py_ssize_t, end=cython.Py_ssize_t)
        179 def line_iter(source):
        180     if isinstance(source, basestring):
    AttributeError: 'module' object has no attribute 'locals' 
    
  2. 自制

    $ rm -rf /usr/local/bin/carthage
    $ sudo rm -rf /Library/Frameworks/CarthageKit.framework
    

答案 1 :(得分:9)

删除brew安装的迦太基:

brew uninstall carthage

删除brew安装的所有版本的carthage:

brew uninstall --force carthage

答案 2 :(得分:7)

要从 Homebrew 中删除它,您只需执行Alen Liang在answer上提供的内容:

如果您是通过Carthage.pkg安装的,可以使用终端

中的以下命令将其删除
$ cd /Users/{your_username} (You can find it using "$ id -un")
$ sudo rm -r /Library/Frameworks/CarthageKit.framework
$ unlink carthage

重新启动终端,carthage不再存在:)