Windows 7 64 비트 시스템이 있고 python 패키지 mgrs를 설치하려고합니다. easy_install과 python setup.py를 mgrs 디렉토리에 설치하여 실행 해 보았습니다. Easy_install은 아래 오류를 제공합니다. setuptools에이 확장python setuptools : ImportError : 이름을 가져올 수 없습니다. 라이브러리
으로 문제의 원인이 무엇에 어떤 도움을 라이브러리를 가져올에서 setup.py의
C:\Users\farrell>easy_install mgrs
Searching for mgrs
Reading https://pypi.python.org/simple/mgrs/
Best match: mgrs 1.1.0
Downloading https://pypi.python.org/packages/source/m/mgrs/mgrs-1.1.0.tar.gz#md5
=96e0c00f16d86a3f8b84c2c46cb68b8e
Processing mgrs-1.1.0.tar.gz
Writing c:\users\farrell\appdata\local\temp\easy_install-lzqjsi\mgrs-1.1.0\setup
.cfg
Running mgrs-1.1.0\setup.py -q bdist_egg --dist-dir c:\users\farrell\appdata\loc
al\temp\easy_install-lzqjsi\mgrs-1.1.0\egg-dist-tmp-sxkdib
Traceback (most recent call last):
File "C:\Python27\Anaconda\Scripts\easy_install-script.py", line 9, in <module
>
load_entry_point('setuptools==5.4.1', 'console_scripts', 'easy_install')()
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 2147
, in main
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 2133
, in with_ei_usage
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 2150
, in <lambda>
File "C:\Python27\Anaconda\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\Anaconda\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\Anaconda\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 370,
in run
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 613,
in easy_install
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 643,
in install_item
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 833,
in install_eggs
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 1055
, in build_and_install
File "build\bdist.win-amd64\egg\setuptools\command\easy_install.py", line 1040
, in run_setup
File "build\bdist.win-amd64\egg\setuptools\sandbox.py", line 63, in run_setup
File "build\bdist.win-amd64\egg\setuptools\sandbox.py", line 109, in run
File "build\bdist.win-amd64\egg\setuptools\sandbox.py", line 62, in runner
File "build\bdist.win-amd64\egg\setuptools\sandbox.py", line 38, in _execfile
File "c:\users\farrell\appdata\local\temp\easy_install-lzqjsi\mgrs-1.1.0\setup
.py", line 8, in <module>
ImportError: cannot import name Library
라인 8 입니까?
난 당신'setuptools' 모듈에는'Library'가 없습니다 내기를. 오래된 버전 일 수도 있습니다. 내'distribute-0.6.35'는 그것을 가지고 있습니다. –