【问题标题】:Error wihle installing pwd module on windows在 Windows 上安装 pwd 模块时出错
【发布时间】:2015-10-06 10:52:33
【问题描述】:

我正在尝试在 Windows 上使用 easy_install 安装“pwd”模块并遇到以下错误,谁能帮助解决此错误?

C:\Dropbox\scripts>easy_install pwd
Searching for pwd
Reading http://pypi.python.org/simple/pwd/
Couldn't find index page for 'pwd' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pwd
Best match: None
Traceback (most recent call last):
  File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1712, in main
    with_ei_usage(lambda:
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1700, in with_ei_usage
    return f()
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1716, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "C:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 434, in easy_install
    self.local_index
  File "C:\Python27\lib\site-packages\setuptools\package_index.py", line 475, in fetch_distribution
    return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'

【问题讨论】:

标签: python pwd


【解决方案1】:

pwd 是 unix like only os 的内置模块(附带 python 安装) - 你不能在 windows 上使用它,试试 winpwd

【讨论】:

  • 我在尝试安装 winpwd 时遇到同样的错误...如何安装 winpwd
  • 对不起,我查了一下,没有winpwd python包....你想做什么?
  • 任何我尝试使用easy_install安装的包我都遇到了同样的错误,如何在windows中安装一个包,比如说MySQLdb
  • 我跟着它并且已经有了easy_install,当我安装任何模块时遇到上面的错误
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-03-29
  • 1970-01-01
  • 1970-01-01
  • 2012-07-22
  • 2011-05-17
  • 2011-01-23
  • 1970-01-01
相关资源
最近更新 更多