web-dev-qa-db-ja.com

python簡単インストールの問題

Matplotlib-vennのeasy_installの使用に問題があります。私はpython2.7を使用しているWindowsコンピューターを使用しています。パスが正しくないと思われますが、問題の修正方法がわかりません。誰か助けてもらえますか? CMDプロンプターでeasy_installコマンドを実行しようとしたときの出力を添付しています。

C:\Python27\Scripts>easy_install matplotlib-venn
Searching for matplotlib-venn
Reading https://pypi.python.org/simple/matplotlib-venn/
Download error on https://pypi.python.org/simple/matplotlib-venn/: [Errno 11004]
 getaddrinfo failed -- Some packages may not be found!
Couldn't find index page for 'matplotlib-venn' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 11004] getaddrinfo fai
led -- Some packages may not be found!
No local packages or download links found for matplotlib-venn
error: Could not find suitable distribution for Requirement.parse('matplotlib-ve
nn')
install for matplotlib-venn package

Pipインストールの提案を試行した結果の出力:

C:\Python27\Scripts>easy_install pip
Searching for pip
Best match: pip 1.4.1
Adding pip 1.4.1 to easy-install.pth file
Installing pip-script.py script to C:\Python27\Scripts
Installing pip.exe script to C:\Python27\Scripts
Installing pip.exe.manifest script to C:\Python27\Scripts
Installing pip-2.7-script.py script to C:\Python27\Scripts
Installing pip-2.7.exe script to C:\Python27\Scripts
Installing pip-2.7.exe.manifest script to C:\Python27\Scripts
Using c:\python27\lib\site-packages
Processing dependencies for pip
Finished processing dependencies for pip
C:\Python27\Scripts>pip install matplotlib-venn
Downloading/unpacking matplotlib-venn
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement matplotlib-venn
Cleaning up...
No distributions at all found for matplotlib-venn
Storing complete log in C:\Users\jherman8\pip\pip.log
7
jonas

に基づく

Download error on https://pypi.python.org/simple/matplotlib-venn/: [Errno 11004] getaddrinfo failed 

そして

Cannot fetch index base URL https://pypi.python.org/simple/ 

ネットワークに問題があるようです。ファイアウォールまたはプロキシの背後でマシンを実行していますか?

easy_installをプロキシの背後で動作させるには、必要な環境をセットアップする必要があります。たとえば、

set http_proxy="user:password@server:port"
set https_proxy="user:password@server:port"

Pipの場合は、-proxy引数を使用できます。プロキシの背後でのpip使用の詳細については、このスレッドを参照してください。 認証プロキシの背後でWindowsでpipを使用する方法

18
alko

これがあなたの解決策だと思います

easy_install pip
pip install matplotlib-venn

モジュールなしmatplotlib-venn easy_install

そして将来的には、pipを使用してpython用のパッケージをインストールします。

2
itdxer

あなたがしようとしている場合、clouderaボックスの場合、これはbugzileで提起されたように動作します。 https://bugzilla.redhat.com/show_bug.cgi?id=1510444 これは、Clouderaのvmで動作し、指示に従ってください。easy_installでisntallを試してください。

#easy_install -i https://pypi.python.org/simple stitchesステッチの検索読み取り https://pypi.python.org/simple/stitches/ ベストマッチ:ステッチ0.11ダウンロード https://pypi.python.org/packages/9d/73/681005f0f0fb9483f0d94547a35059c776144fc998780b9ef00167a50f3d/stitches-0.11.tar.gz#md5=0ac0b6e418767e6ec5cf684460d1972f Running stitches-0.1setup.q.get_0.1setup.0.1.es.gg.get_0.1setup.0.1.es.gg1.es.gg1.gif --dist-dir /tmp/easy_install-ZMIU8w/stitches-0.11/Egg-dist-tmp-82ctsZ Zip_safeフラグが設定されていません。アーカイブの内容を分析しています... stitchs.connection:モジュール参照file

インストール済み/usr/lib/python2.6/site-packages/stitches-0.11-py2.6.Eggステッチの依存関係を処理中... ... pynacl> = 1.0.1を検索中 https:// pypi。 python.org/simple/pynacl/ ベストマッチ:PyNaCl 1.2.0ダウンロード https://pypi.python.org/packages/fa/38/0f35ec4beb6562f1abfa07914db1cea978e93da409ba6293f810d9e677d6/PyNaCl-1.2.0.tar.gz#md5= 7a31e95f5f457184b1660b71d6808b19 PyNaCl-1.2.0.tar.gzを処理していますPyNaCl-1.2.0/setup.py -q bdist_Egg --dist-dir /tmp/easy_install-a0vNJS/PyNaCl-1.2.0/Egg-dist-tmp-を実行していますQYvAk9で.pthファイルのサポートを確認しています。/usr/bin/python -E -c pass cffiの検索> = 1.4.1読み取り http://pypi.python.org/simple/cffi/ 'cffi'のインデックスページが見つからなかった(たぶんスペルが間違っていますか?)すべてのパッケージのインデックスをスキャンしています(これには時間がかかる場合があります)読み取り http://pypi.python.org/simple/ cffi> = 1.4.1エラーのローカルパッケージまたはダウンロードリンクが見つかりません:エラーRequirement.parse( 'cffi> = 1.4.1')に適したディストリビューションを見つける

したがって、唯一の解決策はソースコードをハッキングすることです:

sed -i s、 http://pypi.python.org,https://pypi.python.org 、/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py

須藤

0
Abhilash Ranjan
student@student-WIV68105-0080:~$ **Sudo apt-cache search rtree**
libcneartree-dev - Library and headers for solving the Nearest Neighbor Problem
libcneartree5 - Library for solving the Nearest Neighbor Problem
student@student-WIV68105-0080:~$ **Sudo apt-get install libcneartree-dev libcneartree5**
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libcvector2
The following NEW packages will be installed:
  libcneartree-dev libcneartree5 libcvector2

私にとって同じエラーがrtreeパッケージで発生し、キャッシュ検索を実行してライブラリをインストールしました

0
Shameema