SOAPpy安装无法找到已安装的fpconst
我对Python完全是个新手,最近被要求迁移一个运行在Python 2.4.15上的旧应用程序,这个应用程序使用了SOAPpy模块和fpconst。
在我的机器上安装SOAPpy 0.12.4时,出现了一个错误,提示找不到fpconst,尽管它已经在服务器上安装了。
以下是我执行的步骤:
- 安装了Python 2.4.15
- 安装了setuptools-0.6c11.win32-py2.4.exe
- 安装了wstools-0.3
- 安装了fpconst-0.7.2
import fpconst fpconst.version '0.7.2'
- 尝试安装SOAPpy 0.12.4,但收到错误提示
安装路径为d:\python2.4\lib\site-packages\soappy-0.12.4-py2.4.egg 处理SOAPpy==0.12.4的依赖关系 正在搜索fpconst 读取 _http://pypi.python.org/simple/fpconst/ 下载错误: (11001, 'getaddrinfo failed') -- 找不到某些包!
找不到'fpconst'的索引页面(可能拼写错误?) 正在扫描所有包的索引(这可能需要一些时间) 读取 _http://pypi.python.org/simple/ 下载错误: (11001, 'getaddrinfo failed') -- 找不到某些包!
找不到fpconst的本地包或下载链接 最佳匹配: 无
追踪记录(最近的调用在最后):
文件 "setup.py",第68行,?
install_requires=[ 文件 "D:\Python2.4\lib\distutils\core.py",第149行,在setup中
dist.run_commands() 文件 "D:\Python2.4\lib\distutils\dist.py",第946行,在run_commands中
self.run_command(cmd) 文件 "D:\Python2.4\lib\distutils\dist.py",第966行,在run_command中
cmd_obj.run() 文件 "D:\Python2.4\Lib\site-packages\setuptools\command\install.py",第76行,在run中
self.do_egg_install() 文件 "D:\Python2.4\Lib\site-packages\setuptools\command\install.py",第104行,在do_egg_install中
cmd.run() 文件 "D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",第211行,在run中
self.easy_install(spec, not self.no_deps) 文件
"D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",第427行,在easy_install中
return self.install_item(None, spec, tmpdir, deps, True) 文件
"D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",第478行,在install_item中
self.process_distribution(spec, dist, deps) 文件
"D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",第518行,在process_distribution中
distros = WorkingSet([]).resolve( 文件
"D:\Python2.4\Lib\site-packages\pkg_resources.py",第563行,在resolve中
dist = best[req.key] = env.best_match(req, self, installer)
文件
"D:\Python2.4\Lib\site-packages\pkg_resources.py",第799行,在best_match中
return self.obtain(req, installer) # 尝试下载/安装 文件 "D:\Python2.4\Lib\site-packages\pkg_resources.py",第811行,在obtain中
return installer(requirement) 文件 "D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",第434行,在easy_install中
self.local_index 文件 "D:\Python2.4\Lib\site-packages\setuptools\package_index.py",第475行,在fetch_distribution中
return dist.clone(location=self.download(dist.location, tmpdir)) AttributeError: 'NoneType'
对象没有属性'clone'
1 个回答
错误: 没有找到本地包或下载链接
..
去 这个链接 -> 解压文件 -> 打开一个 命令提示符,然后用 cd dir 命令进入SOAPpy文件夹 -> 输入 python setup.py install 来运行安装。
然后打开你的开发环境,检查一下,输入 import SOAPpy。