728x90
반응형

 

 

파이썬에서 모듈을 실행한다는 뜻

 

보통 아래와 같이 pip 를 python3 또는 python2 에서 적절하게 실행하고자 할 때 사용함

 

python2 -m pip install pycrypto
python3 -m pip install pycrypto

 

 

 

참고자료 1 : 파이썬 모듈 설치하기 

https://docs.python.org/ko/3/installing/index.html

 

파이썬 모듈 설치하기 — Python 3.7.4 문서

파이썬 모듈 설치하기 이메일 distutils-sig@python.org 널리 사용되는 공개 소스 개발 프로젝트로서, 파이썬에는 적극적으로 지원하는 기여자와 사용자의 커뮤니티가 있어, 자신들의 소프트웨어를 공개 소스 라이센스 계약에 따라 다른 파이썬 개발자가 사용할 수 있도록 합니다. 이를 통해 파이썬 사용자는 효과적으로 공유하고 공동 작업할 수 있으며, 다른 사람들이 공통 (심지어 때로는 희귀한) 문제에 대해 이미 만든 솔루션의 이점을 누릴 수 있을 뿐

docs.python.org

 

 

 

 

참고자료 2

https://www.quora.com/What-does-python-m-and-i-mean-Also-what-are-the-default-command-line-arguments-in-python-2-7

 

What does python -m and -i mean? Also what are the "default" command line arguments in python 2.7

Answer: Python -m means run a module. You use this to run pip for example: [code]python -m pip install pycrypto [/code]Python -i means to keep the terminal running after the script finishes. You might use this to examine global variables for debugging. Exa

www.quora.com

 

728x90
반응형