Notice
Recent Posts
Recent Comments
Link
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Tags
more
Archives
Today
Total
관리 메뉴

Zorba blog

[Error] module compiled against API version 0xe but this version of numpy is 0xd 에러 해결 본문

파이썬

[Error] module compiled against API version 0xe but this version of numpy is 0xd 에러 해결

Zorba blog 2022. 5. 13. 18:54
# 띄어쓰기 처리

sent = '김철수는 극중 두 인격의 사나이 이광수 역을 맡았다. 철수는 한국 유일의 태권도 전승자를 가리는 결전의 날을 앞두고 10년간 함께 훈련한 사형인 유연재(김광수 분)를 찾으러 속세로 내려온 인물이다.'
from pykospacing import Spacing
spacing = Spacing()
kospacing_sent = spacing(new_sent) 

print(sent)
print(kospacing_sent)

https://zorba-blog.tistory.com/14

 

[Error] NotImplementedError: Cannot convert a symbolic Tensor 해결 방법

# 띄어쓰기 처리 sent = '김철수는 극중 두 인격의 사나이 이광수 역을 맡았다. 철수는 한국 유일의 태권도 전승자를 가리는 결전의 날을 앞두고 10년간 함께 훈련한 사형인 유연재(김광수 분)를 찾

zorba-blog.tistory.com

이전 글에서 자연어 처리를 위해 pykospacing 를 사용하는 도중 에러가 발생하였고, numpy를 설치하여 해결.

다시 실행해보니 이번에는 module compiled 에러가 발생.

 

$ pip install numpy --upgrade 으로 해결이 된다는 사람이 많아서 실행해보니,

설치 과정에서 아래와 같은 에러 발생.

 

1. 에러 원인


ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pykospacing 0.5 requires tensorflow==2.5.3, but you have tensorflow 2.8.0 which is incompatible.
kobart 0.5.1 requires pytorch-lightning==1.2.1, but you have pytorch-lightning 1.3.8 which is incompatible.
kobart 0.5.1 requires torch==1.7.1, but you have torch 1.10.0 which is incompatible.
kobart 0.5.1 requires transformers==4.3.3, but you have transformers 4.8.2 which is incompatible.

 

pykospacing 0.5 버전에 맞지 않는 tensorflow 버전 사용.

 

2. 해결 방법


$ pip install tensorflow==2.8.0

실행으로 tensorflow 버전을 맞춰주니 해결.

 

3. 참고링크


없음.

 

'파이썬' 카테고리의 다른 글

[Error] E: Unable to locate package yum  (0) 2022.06.15
Comments