python のバージョンは2.7です。環境はwindow 8.1です。
pkcs11 を pipからinstallしようとしたらエラーになりまして、なぜかわかりません。
ご存知の方よろしくお願いします。
###エラー内容
C:\Python27\Scripts>pip install python-pkcs11
Collecting python-pkcs11
Using cached python-pkcs11-0.4.0.tar.gz
Complete output from command python setup.py egg_info:
Compiling c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Plex\Sca1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Plex\Act
nners.py because it changed.
Compiling c:\users\tuangp
ions.py because it changed.
Compiling c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Compiler1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Compiler
\Pythran.py because it changed.
Compiling c:\users\tuangp
\Lexicon.py because it changed.
Compiling c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Compiler1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Compiler
\Scanning.py because it changed.
Compiling c:\users\tuangp
\Parsing.py because it changed.
Compiling c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Compiler1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Compiler
\Visitor.py because it changed.
Compiling c:\users\tuangp
\FlowControl.py because it changed.
Compiling c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Compiler1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Runtime
\Code.py because it changed.
Compiling c:\users\tuangp
refnanny.pyx because it changed.
Compiling c:\users\tuangp~1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cython\Tempita
tempita.py because it changed.
[ 1/11] Cythonizing c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho
n\Compiler\Code.py
[ 2/11] Cythonizing c:\users\tuangp
n\Compiler\FlowControl.py
[ 3/11] Cythonizing c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho
n\Compiler\Lexicon.py
[ 4/11] Cythonizing c:\users\tuangp
n\Compiler\Parsing.py
[ 5/11] Cythonizing c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho
n\Compiler\Pythran.py
[ 6/11] Cythonizing c:\users\tuangp
n\Compiler\Scanning.py
[ 7/11] Cythonizing c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho
n\Compiler\Visitor.py
[ 8/11] Cythonizing c:\users\tuangp
n\Plex\Actions.py
[ 9/11] Cythonizing c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho
n\Plex\Scanners.py
[10/11] Cythonizing c:\users\tuangp
n\Runtime\refnanny.pyx
[11/11] Cythonizing c:\users\tuangp1\appdata\local\temp\easy_install-ebiqis\Cython-0.27.1\Cytho1\appdata\local\temp\pip-build-b67fry\python-pkcs11\setup.py", line 65,
n\Tempita_tempita.py
Unable to find pgen, not compiling formal grammar.
warning: no files found matching '2to3-fixers.txt'
warning: no files found matching 'Doc*'
warning: no files found matching '.pyx' under directory 'Cython\Debugger\Tests'
warning: no files found matching '.pxd' under directory 'Cython\Debugger\Tests'
warning: no files found matching '*.pxd' under directory 'Cython\Utility'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\tuangp
in <module>
test_suite='tests',
File "c:\python27\lib\distutils\core.py", line 111, in setup
setup_distribution = dist = klass(attrs)
File "c:\python27\lib\site-packages\setuptools\dist.py", line 335, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "c:\python27\lib\site-packages\setuptools\dist.py", line 456, in fetch_build_eggs
replace_conflicting=True,
File "c:\python27\lib\site-packages\pkg_resources_init.py", line 863, in resolve
replace_conflicting=replace_conflicting
File "c:\python27\lib\site-packages\pkg_resources_init.py", line 1141, in best_match
return self.obtain(req, installer)
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 1153, in obtain
return installer(requirement)
File "c:\python27\lib\site-packages\setuptools\dist.py", line 522, in fetch_build_egg
return cmd.easy_install(req)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 672, in easy_ins
tall
return self.install_item(spec, dist.location, tmpdir, deps)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 698, in install_
item
dists = self.install_eggs(spec, download, tmpdir)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 879, in install_
eggs
return self.build_and_install(setup_script, setup_base)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 1118, in build_a
nd_install
self.run_setup(setup_script, setup_base, args)
File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 1106, in run_set
up
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Microsoft Visual C++ 9.0 is req
uired. Get it from http://aka.ms/vcpython27
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\tuangp~1\appdata\local\temp
pip-build-b67fry\python-pkcs11\
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/22 23:53