0
我已經安裝了pyxb模塊常規方式(蟒蛇的setup.py安裝),這裏是輸出:PyXB模塊無法識別
Found bundle in pyxb/bundles/common
Found bundle in pyxb/bundles/dc
Found bundle in pyxb/bundles/wssplat
Found bundle in pyxb/bundles/saml20
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/pyxbgen to 755
changing mode of /usr/local/bin/pyxbwsdl to 755
changing mode of /usr/local/bin/pyxbdump to 755
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/PyXB-1.2.4.egg-info
Writing /usr/local/lib/python2.7/dist-packages/PyXB-1.2.4.egg-info
不過,我不斷收到消息:
ImportError: No module named pyxb
運行時一個包含以下內容的腳本:
import pyxb
import pyxb.binding
import pyxb.binding.saxer
import StringIO
import pyxb.utils.utility
import pyxb.utils.domutils
有沒有人知道爲什麼會出現這種情況?
>>>須藤PIP安裝pyxb –
或>>> sudo易於得到安裝python-pyxb –
或下載模塊和開放的解釋蟒蛇,並通過這條線:>> > import sys; sys.path.insert(0,「path_of_module」) –