Linux 설치 Python libsvm - 관련 문제

6524 단어 기계 학습
최근 프로젝트 수요 libsvm 를 사용 해 야 하 는데 설치 가 실 패 했 고 시스템 인 코딩 OK 를 바 꿨 습 니 다.
1. 설치 방법:
pip install libsvm

2 、 설치 실패:
Looking in indexes: http://mirrors.jd.com/pypi/simple
Collecting libsvm==3.23.0
  Downloading http://mirrors.jd.com/pypi/packages/ff/01/5506c690789f1d76105815d826f213ce724960851be45799d7023ed1aee7/libsvm-3.23.0.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /usr/local/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gn88vgyg/libsvm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gn88vgyg/libsvm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r
'
"'"', '"'"'
'
"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-gn88vgyg/libsvm/pip-egg-info cwd: /tmp/pip-install-gn88vgyg/libsvm/ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-gn88vgyg/libsvm/setup.py", line 17, in LONG_DESCRIPTION = readme.read() File "/usr/local/anaconda3/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2235: ordinal not in range(128) ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

3. 해결 방법:
vim   ~/.bashrc
export LANG="en_US.UTF-8"
source  ~/.bashrc

4. 문제 해결
성명: 총 결 학습, 문제 가 있 거나 부당 한 점 은 지적 할 수 있 습 니 다. 감사합니다.

좋은 웹페이지 즐겨찾기