安装 Downpour bittorrent 客户端

安装 Downpour bittorrent 客户端

我正在尝试安装 Downpour (http://jongsma.org/downpour/#install) 在我的新 Macbook pro 上。我正在运行命令“pip install Downpour”,但收到错误:

Downloading/unpacking Twisted-Core>=8.2.0 (from Downpour)
  Could not find any downloads that satisfy the requirement Twisted-Core>=8.2.0 (from Downpour)
No distributions at all found for Twisted-Core>=8.2.0 (from Downpour)

因此,我尝试通过运行命令“ pip install Twisted”自行安装 Twisted,但出现以下错误:

Requirement already satisfied (use --upgrade to upgrade): setuptools in /sw/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg (from zope.interface->Twisted)
Installing collected packages: Twisted, zope.interface
  Running setup.py install for Twisted
    gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.6 -c conftest.c -o conftest.o
    gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.6 -c conftest.c -o conftest.o
    conftest.c:1:23: error: sys/epoll.h: No such file or directory
    building 'twisted.runner.portmap' extension
    gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.6 -c twisted/runner/portmap.c -o build/temp.macosx-10.6-x86_64-2.6/twisted/runner/portmap.o
    gcc -L/sw/lib -bundle -L/sw/lib/python2.6/config -lpython2.6 build/temp.macosx-10.6-x86_64-2.6/twisted/runner/portmap.o -o build/lib.macosx-10.6-x86_64-2.6/twisted/runner/portmap.so
    ld: warning: in /sw/lib/python2.6/config/libpython2.6.dylib, file was built for i386 which is not the architecture being linked (x86_64)
    Undefined symbols:
      "_Py_InitModule4_64", referenced from:
          _initportmap in portmap.o
      "_PyArg_ParseTuple", referenced from:
          _portmap_unset in portmap.o
          _portmap_set in portmap.o
      "__Py_NoneStruct", referenced from:
          _portmap_unset in portmap.o
          _portmap_set in portmap.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1
    Complete output from command /sw/bin/python2.6 -c "import setuptools;__file__='/Users/ccchen920/.pip/build/Twisted/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-5szycA-record/install-record.txt:
    running install

running build

running build_py

running egg_info

writing requirements to Twisted.egg-info/requires.txt

writing Twisted.egg-info/PKG-INFO

writing top-level names to Twisted.egg-info/top_level.txt

writing dependency_links to Twisted.egg-info/dependency_links.txt

warning: manifest_maker: standard file '-c' not found

reading manifest file 'Twisted.egg-info/SOURCES.txt'

writing manifest file 'Twisted.egg-info/SOURCES.txt'

running build_ext

gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.6 -c conftest.c -o conftest.o

gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.6 -c conftest.c -o conftest.o

conftest.c:1:23: error: sys/epoll.h: No such file or directory

building 'twisted.runner.portmap' extension

gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.6 -c twisted/runner/portmap.c -o build/temp.macosx-10.6-x86_64-2.6/twisted/runner/portmap.o

gcc -L/sw/lib -bundle -L/sw/lib/python2.6/config -lpython2.6 build/temp.macosx-10.6-x86_64-2.6/twisted/runner/portmap.o -o build/lib.macosx-10.6-x86_64-2.6/twisted/runner/portmap.so

ld: warning: in /sw/lib/python2.6/config/libp

答案1

您正在使用的 python 在 /sw 中,所以我假设它来自芬克如果是这样,你还应该从 Fink 安装 Twisted,它将是列出的一个或多个软件包这里

您看到的问题是 python 是作为 32 位应用程序构建的,而 setuptools 试图将其构建为 64 位。这表明它们不是从同一个位置安装的/

相关内容