"Python"의 두 판 사이의 차이
(→python3) |
(→python3) |
||
4번째 줄: | 4번째 줄: | ||
=python3= | =python3= | ||
+ | ==pip3 설치== | ||
+ | $ apt install python3-pip | ||
+ | |||
==패키지 설치== | ==패키지 설치== | ||
− | $ sudo | + | $ sudo pip3 install 패키지명 |
==에러== | ==에러== |
2019년 7월 16일 (화) 23:16 판
python2
패키지 설치
$ python -m pip install 패키지명
python3
pip3 설치
$ apt install python3-pip
패키지 설치
$ sudo pip3 install 패키지명
에러
에러메시지: TypeError: 'NoneType' object is not callable
/usr/lib/python3.5/weakref.py 파일수정해야한다.
공백과 탭은 구분되므로 공백으로 맞추어 수정해야 한다.
다음을
def remove(wr, selfref=ref(self)):
다음으로 수정한다.
def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):
다음을
_remove_dead_weakref(d, wr.key)
다음으로 수정한다.
_atomic_removal(d, wr.key)