๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Lang/๐Ÿ Python

โœ… Solved * [Ubuntu] Crypto install Error and How to Install with Python

์•”ํ˜ธํ™”๋ฅผ ํ•ด๋ณด๊ธฐ์œ„ํ•ด Cryto๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ณค๋”๋‹ˆ ์ €๋Ÿฐ Error๋ฅผ ๋‚ด๋ฟœ์œผ์…จ๋‹ค..

$ pip install pycryto

 

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-LL3mve/pycrypto/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-Hz4VaT-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-LL3mve/pycrypto/

 

์•„.. ๋„ˆ๋ฌด ๋งŽ์•„์„œ ์ฝ๊ธฐ ์‹ซ.... hum hum..

๊ทธ๋ž˜์„œ ์ธํ„ฐ๋„ท์— ์ณ๋ดค๋”๋‹ˆ ๊ฐ™์€ ์—๋Ÿฌ๋Š” ์•„๋‹ˆ์ง€๋งŒ ์—๋Ÿฌ๊ฐ€ ์ข…์ข… ์žˆ๊ณ  ๊ทธ ์ด์œ  ์ค‘์— ํ•˜๋‚˜๋กœ cryto๊ฐ€ ๋” ์ด์ƒ ์—…๊ทธ๋ ˆ์ด๋“œ๋ฅผ ํ•˜์ง€ ์•Š์•„์„œ

python์—์„œ ์•ˆ ๋˜๋Š” ๊ฑฐ๋ผ๋Š” ๋ง๋„ ์žˆ๋˜๋ฐ... ์‚ฌ์‹ค์ธ์ง€ ํ™•์ธ ํ•˜์ง€๋Š” ์•Š์•˜๋‹ค.

 

์—ฌํŠผ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๋‹ค๋ฅธ ๋ช…๋ น์–ด๋ฅผ ์“ฐ๋ฉด ๋œ๋‹ค.

 

 


1. Cryto Install

$ apt-get install python-crypto

2. Done !

์ด๋ ‡๊ฒŒ ํ™”๋ฉด์ด ๋‚˜์˜ค๋ฉด ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋œ ๊ฒƒ์ด๋‹ค. 

 

๋งŒ์•ฝ ์„ค์น˜ ์ค‘์— ์•„๋ž˜์™€ ๊ฐ™์€ Error๊ฐ€ ์ƒ๊ธด๋‹ค๋ฉด root๋กœ ์ ‘์†ํ•˜์ง€ ์•Š์•„ ๊ถŒํ•œ์ด ์—†๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.

root ๊ณ„์ •์„ login ํ•˜์˜€๋Š”์ง€ ํ™•์‹คํžˆ ํ™•์ธํ•˜๊ณ  ์‹œ์ž‘ํ•œ๋‹ค. root ๊ณ„์ • ์ด๋ผ๋ฉด ์‚ฌ์šฉ์ž ์ด๋ฆ„ ์•ž์— root@๊ฐ€ ๋ถ™์„ ๊ฒƒ์ด๋‹ค!