brunch

[파이썬] 버전별로 pip도 다른걸 써야 되더라

by 오준석

파이썬 2.x와 3.x가 다르다는 것은 알고 있었지만 파이썬 모듈 설치도 pip와 pip3로 나누어져 있다는 것을 몰라서 한참 삽질을 했다.


pip list로 확인해 보면 분명 numpy 가 설치되어 있는데 모듈을 찾을 수 없다는 에러가 나온다. 코딩은 (Python3 로.)


~> pip list

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

...

numpy (1.11.1)


결국 pip3로 numpy를 설치하며 해결되었다.

keyword
매거진의 이전글[Linux] 자꾸 까먹는 리눅스 명령