Python Pyajam 설치 패키지를 만들려고 합니다.
pip 설치를 시도했지만 4Suite-XML 패키지 오류가 발생했습니다.
$ pip install Pyajam
Installing collected packages: pyajam, 4Suite-XML
Running setup.py install for pyajam
Running setup.py install for 4Suite-XML
Usage:
-c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
-c --help [cmd1 cmd2 ...]
-c cmd --help
-c --help-commands
-c --help-packages
error: option --single-version-externally-managed not recognized
Complete output from command /usr/bin/python -c "import
XML/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file_'exec'))" install --single-version-externally-managed --record /tmp/pip-YlpamB- record/install- record.txt:
Usage:
-c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
-c --help [cmd1 cmd2 ...]
-c cmd --help
-c --help-commands
-c --help-packages
error: option --single-version-externally-managed not recognized
pyajam에 의존하는 4Suite-XML 패키지를 설치할 때 오류가 발생했습니다.
4Suite-XML만 설치해 보았습니다.
pip install 4Suite-XML
같은 오류를 반환합니다
마지막으로 apt를 사용하여 설치를 시도했습니다.
apt-get install python-pyajam
apt-get install python-4Suite-XML
python-pyajam 또는 python-4Suite-XML 패키지를 찾을 수 없습니다.
답변1
이 문제를 해결했습니다. 패키지 컴파일
$ wget http://pypi.python.org/packages/source/4/4Suite-XML/4Suite-XML-1.0.2.tar.bz2
$ tar -xvvf 4Suite-XML-1.0.2.tar.bz2
$ cd 4Suite-XML-1.0.2
$ ./setup.py install
------------------------------------------------------------------------
4Suite-XML version 1.0.2 has been successfully installed!
Python modules (including C extensions)
/usr/local/lib/python2.7/dist-packages
Executable scripts (for PATH environment variable)
/usr/local/bin
Examples, demos and other miscellaneous data files
/usr/local/share/4Suite
Developer files (regression tests)
/usr/local/lib/4Suite
Text documentation
/usr/local/share/doc/4Suite
HTML documentation
/usr/local/share/doc/4Suite/html
모두 감사합니다 =]