• 카테고리

    질문 & 답변
  • 세부 분야

    업무 자동화

  • 해결 여부

    해결됨

weditor 설치방법 궁금합니다

22.12.16 06:43 작성 22.12.16 06:51 수정 조회수 1.52k

1

weditor 설치방법에대해서
따로 언급이 없는거같은데

pip install -U weditor

이렇게해봤는데

  error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.

│ exit code: 1

╰─> [37 lines of output]

 

 

...

 

 

 

note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.

╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

 

라고 나오네요

답변 1

답변을 작성해보세요.

0

안녕하세요 da shin님 : )

 

pip install weditor

위의 명령어가 에러가 난다면

  1. 첫번째로 아래 명령어를 시도해주세요

pip3 install weditor

 

  1. 첫번째 명령어도 실패할 경우, 아래 명령어를 실행해주세요

pip install git+https://github.com/alibaba/web-editor.git

 

저도 weditor 설치 에러를 겪으면서 참고한 링크입니다
https://swlock.blogspot.com/2022/05/weditor-unicodedecodeerror-cp949.html

 

혹시, 1번째 2번째 명령어로도 설치가 안된다면 다시 질문을 달아주시면 빠르게 답변드리겠습니다

da shin님의 프로필

da shin

질문자

2022.12.16

[ 1,2번쨰 방법 에러입니다 ]

Collecting weditor

Using cached weditor-0.6.7.tar.gz (2.2 MB)

Preparing metadata (setup.py) ... error

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.

│ exit code: 1

╰─> [31 lines of output]

C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead

warnings.warn(

C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'home-page' will not be supported in future versions. Please use the underscore name 'home_page' instead

warnings.warn(

C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead

warnings.warn(

C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.

warnings.warn(

WARNING: The wheel package is not available.

Error parsing

Traceback (most recent call last):

File "c:\users\user\appdata\local\temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\.eggs\pbr-5.11.0-py3.10.egg\pbr\core.py", line 111, in pbr

attrs = util.cfg_to_args(path, dist.script_args)

File "c:\users\user\appdata\local\temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\.eggs\pbr-5.11.0-py3.10.egg\pbr\util.py", line 272, in cfg_to_args

pbr.hooks.setup_hook(config)

File "c:\users\user\appdata\local\temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\__init__.py", line 25, in setup_hook

metadata_config.run()

File "c:\users\user\appdata\local\temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\base.py", line 27, in run

self.hook()

File "c:\users\user\appdata\local\temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\metadata.py", line 25, in hook

self.config['version'] = packaging.get_version(

File "c:\users\user\appdata\local\temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\.eggs\pbr-5.11.0-py3.10.egg\pbr\packaging.py", line 862, in get_version

version = getversion_from_pkg_metadata(package_name)

File "c:\users\user\appdata\local\temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\.eggs\pbr-5.11.0-py3.10.egg\pbr\packaging.py", line 830, in getversion_from_pkg_metadata

pkg_metadata = email.message_from_file(pkg_metadata_file)

File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\email\__init__.py", line 54, in message_from_file

return Parser(*args, **kws).parse(fp)

File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\email\parser.py", line 53, in parse

data = fp.read(8192)

UnicodeDecodeError: 'cp949' codec can't decode byte 0xad in position 829: illegal multibyte sequence

error in setup command: Error parsing C:\Users\user\AppData\Local\Temp\pip-install-hhi_f0sf\weditor_bcc469b1a2154589b2087616ce035443\setup.cfg: UnicodeDecodeError: 'cp949' codec can't decode byte 0xad in position 829: illegal multibyte sequence

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.

╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

 

[ 3번쨰 방법 에러입니다 ]

PS C:\Users\user\Desktop\project> pip install git+https://github.com/alibaba/web-editor.git

Collecting git+https://github.com/alibaba/web-editor.git

Cloning https://github.com/alibaba/web-editor.git to c:\users\user\appdata\local\temp\pip-req-build-0s60x86_

ERROR: Error [WinError 2] 지정된 파일을 찾을 수 없습니다 while executing command git version

ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

 

 

알려주신 방법 다 안되네요ㅠ

 

 

pip install weditor==0.6.4

 

이걸로 해서 설치는 된거같은데

상관없을까요 ?



 

아래 사이트에서 git 을 다운로드해주시고
https://git-scm.com/downloads

아래 명령어를 실행시키면 잘 설치될거에요 !

pip install git+https://github.com/alibaba/web-editor.git