安装virtualenvwrapper-powershell时出现参数错误

时间:2015-10-02 09:58:27

标签: python powershell virtualenv

尝试安装virtualenvwrapper-powershell但有以下错误:

chown() missing 1 required positional argument: 'numeric_owner' 

我读完这篇文章后得到了它:

  

https://bitbucket.org/guillermooo/virtualenvwrapper-powershell/issues/5/cant-install-package-with-python3-and-pip

(实际上我有一个问题描述) 名叫Alexander Zonov的家伙建议:

  

我们已经有了解决方案。下载virtualenvwrapper-powershell查找   file setup.py将问题字符串更改为此TOKEN_READ =   0x00020000 | 0x0008使用“python setup.py install”命令进行安装   virtualenvwrapper-的powershell

在我完成后我得到了我的错误:

Traceback (most recent call last):
  File "C:\Python35\virtualenvwrapper-powershell-12.7.8\distribute_setup.py", line 143, in use_setuptools
    raise ImportError
ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    distribute_setup.use_setuptools()
  File "C:\Python35\virtualenvwrapper-powershell-12.7.8\distribute_setup.py", line 145, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "C:\Python35\virtualenvwrapper-powershell-12.7.8\distribute_setup.py", line 125, in _do_download

    _build_egg(egg, tarball, to_dir)
  File "C:\Python35\virtualenvwrapper-powershell-12.7.8\distribute_setup.py", line 99, in _build_egg
    _extractall(tar)
  File "C:\Python35\virtualenvwrapper-powershell-12.7.8\distribute_setup.py", line 459, in _extractall
    self.chown(tarinfo, dirpath)
TypeError: chown() missing 1 required positional argument: 'numeric_owner'

任何提示我如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

转到第459行&#34; distribute_setup.py&#34;并尝试添加一个空参数,如下所示:chown(tarinfo,dirpath,&#39;&#39;);

为我工作。

我确定这不是一个完美的解决方案,但它有点像quickfix。虽然帮了我。