1
Mac을 최신 OS X 업데이트와 함께 사용하고 있습니다. 터미널에 PyCrypto를 설치하려고했지만 아래 이미지에 오류가 표시됩니다. 내가 사용한 명령은 sudo pip install pycrypto
입니다. 이 문제로 저를 도울 수 있습니까? 어떻게 해결할 수 있습니까? 귀하의 답변에 감사드립니다.PyCrypto를 설치하는 중 오류가 발생했습니다.
macfive:Desktop admin$ sudo pip install pycrypto
The directory '/Users/admin/Library/Caches/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 '/Users/admin/Library/Caches/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 pycrypto
Downloading pycrypto-2.6.1.tar.gz (446kB)
100% |████████████████████████████████| 450kB 2.4MB/s
Installing collected packages: pycrypto
Running setup.py install for pycrypto ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-CYttJL/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mWAGUD-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
.
.
.
src/hash_template.c:291: warning: return from incompatible pointer type
src/hash_template.c: At top level:
src/hash_template.c:306: error: initializer element is not constant
src/hash_template.c:306: error: (near initialization for ‘ALG_functions[1].ml_name’)
src/hash_template.c:306: error: initializer element is not constant
src/hash_template.c:306: error: (near initialization for ‘ALG_functions[1].ml_meth’)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't figure out the architecture type of: /var/tmp//ccCeO0Zf.out
error: command 'gcc-4.2' failed with exit status 1
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-CYttJL/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mWAGUD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-CYttJL/pycrypto/
오류가 모든 것을 복사하는 큰하는 것입니다 : 여기
는 오류입니다. 그래서 나는 처음과 끝을 복사했습니다.
아래이 다음 위의 중 하나. – Railslide
질문을 업데이트하고 오류 텍스트를 추가했습니다. – MattCodes
다음 링크 https://pypi.python.org/pypi/pycrypto에서 다운로드하여 python setup.py install로 설치해보십시오. 자세한 내용은 Readme 파일을 사용하십시오. – abhijeetmote