私は数ヶ月間スクレイピーを使用しています。私はいくつかのマシンでそれを使用してきましたが、問題はありませんでした。Windows XP と 7 で使用しました。また、arch Linux でも使用しましたが、インストールに問題はありませんでした。ほとんどの場合、それは pip install Scrapy だけで完了しました。
現在、CentOS を使用している運用サーバーにセットアップしようとしています。CentOS にはデフォルトで python2.4 があるので、最初に python2.7 の並列インストールを行いました。また、python 2.7用のvirtualenvをインストールしましたが、その時点ですべてがうまくいかないように見えました。クリーンな環境とpipがありました。
しかし、 pip install Scrapy を試してみると、エラーが発生しました。
OpenSSL/ssl/connection.c: In function 'ssl_Connection_set_context':
OpenSSL/ssl/connection.c:289: warning: implicit declaration of function'SSL_set_SSL_CTX'
OpenSSL/ssl/connection.c: In function 'ssl_Connection_get_servername':
OpenSSL/ssl/connection.c:313: error: 'TLSEXT_NAMETYPE_host_name' undeclared (first use in this function)
OpenSSL/ssl/connection.c:313: error: (Each undeclared identifier is reported only once
OpenSSL/ssl/connection.c:313: error: for each function it appears in.)
OpenSSL/ssl/connection.c:320: warning: implicit declaration of function 'SSL_get_servername'
OpenSSL/ssl/connection.c:320: warning: assignment makes pointer from integer without a cast
OpenSSL/ssl/connection.c: In function 'ssl_Connection_set_tlsext_host_name':
OpenSSL/ssl/connection.c:346: warning: implicit declaration of function 'SSL_set_tlsext_host_name'
error: command 'gcc' failed with exit status 1
そして、これは pip ログ ファイルに保持されるエラーです。
パッケージ pyOpenSSL の setup.py egg_info の実行
running egg_info
writing pip-egg-info/pyOpenSSL.egg-info/PKG-INFO
writing top-level names to pip-egg-info/pyOpenSSL.egg-info/top_level.txt
writing dependency_links to pip-egg-info/pyOpenSSL.egg-info/dependency_link$
warning: manifest_maker: standard file '-c' not found
誰かがそれが何であるか考えている場合、またはこの問題を抱えている場合は助けてください。