2017-04-21 16 views
1
[email protected]:~$ sudo pip install quandl 
The directory '/home/eranga/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
The directory '/home/eranga/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
Collecting quandl 
    Downloading Quandl-3.1.0-py2.py3-none-any.whl 
Requirement already satisfied: pyasn1 in /usr/local/lib/python2.7/dist-packages (from quandl) 
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from quandl) 
. 
. 
. 
. 
    warning: manifest_maker: standard file '-c' not found 

    reading manifest file 'src/cryptography.egg-info/SOURCES.txt' 
    reading manifest template 'MANIFEST.in' 
    no previously-included directories found matching 'docs/_build' 
    warning: no previously-included files matching '*' found under directory 'vectors' 
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt' 
    running build_ext 
    generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c' 
    creating build/temp.linux-x86_64-2.7 
    generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c' 
    generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c' 
    building '_openssl' extension 
    creating build/temp.linux-x86_64-2.7/build 
    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7 
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o 
    build/temp.linux-x86_64-2.7/_openssl.c:12:24: fatal error: pyconfig.h: No such file or directory 
    compilation terminated. 
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 

    ---------------------------------------- 
Command "/usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-y31ZOD/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-G6XXj_-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-y31ZOD/cryptography/ 
[email protected]:~$ 

ターミナルに「sudo pip install cryptography」を手動でインストールしようとしました。それから私は、次のエラーを得た:私は "quandl"をインストールする必要があります。しかし、「sudo pip install quandl」と入力すると、次のようなエラーが表示されます。

[email protected]:~$ sudo pip install cryptography 
. 
. 
. 
    warning: manifest_maker: standard file '-c' not found 

    reading manifest file 'src/cryptography.egg-info/SOURCES.txt' 
    reading manifest template 'MANIFEST.in' 
    no previously-included directories found matching 'docs/_build' 
    warning: no previously-included files matching '*' found under directory 'vectors' 
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt' 
    running build_ext 
    generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c' 
    creating build/temp.linux-x86_64-2.7 
    generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c' 
    generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c' 
    building '_openssl' extension 
    creating build/temp.linux-x86_64-2.7/build 
    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7 
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o 
    build/temp.linux-x86_64-2.7/_openssl.c:12:24: fatal error: pyconfig.h: No such file or directory 
    compilation terminated. 
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 

    ---------------------------------------- 
Command "/usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-N2rfmu/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-woVGjj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-N2rfmu/cryptography/ 
[email protected]:~$ 

私は多くのサイトで見て、多くの記事を読んでも、このエラーを取り除くことができませんでした。私は「quandl」と機械学習の両方に新しいです。だから私は "quandl"をインストールするための詳細なアプローチを感謝します。

答えて

0

実行:

pip install quandl 

sudoのない作品。 Qandl documentationを参照してください。 sudo pipを実行することは、Pythonのコミュニティと悪い練習に反対しています。here Mikko Ohtamaa。 sudoを使用すると、Rootは通常のユーザーに書き込み許可のないパッケージデータを書き直すことになります。

+0

私にとってはうまくいきません。ここでは、 'pip install quandl'を実行したときの結果を示します。 '収集されたパッケージをインストールする:pytz、numpy、pandas、暗号化例外: トレースバック(最新の最後の呼び出し): ファイル" /usr/local/lib/python2.7/dist-packages/pip/basecommand.py "ライン215、メイン にあります。 OSError:[Errno 13]パーミッションが拒否されました: '/ usr/local/lib/python2.7/dist-packages/pytz-2017.2.dist-info'' –

関連する問題