python - 安装 virtualenvwrapper-powershell 时参数错误

标签 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 的人建议:

We have solution already. Download virtualenvwrapper-powershell Find file setup.py Change problem string to this one TOKEN_READ = 0x00020000 | 0x0008 Use "python setup.py install" command to 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'

有什么提示我可以如何解决这个问题吗?

最佳答案

转到“distribute_setup.py”中的第 459 行并尝试添加一个空参数,如下所示:chown(tarinfo, dirpath, '');

为我工作。

我确信这不是一个完美的解决方案,但它有点像快速修复。不过对我有帮助。

关于python - 安装 virtualenvwrapper-powershell 时参数错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32904823/

相关文章:

python - 从Dataframe对象过滤字符串和整数值-python

powershell - 为什么PS脚本可在ISE中工作但不能在SQL Server 2012中工作

powershell 更新时解析日志文件

powershell - 如何使用powershell复制文件并保留原始时间戳

python - 从 Node 脚本激活 Python virtualenv

python-3.x - 我无法在 Apple Silicon 上安装 python 模块

python - 正常和拉普拉斯的 KL 散度未在 TensorFlow Probability 和 PyTorch 中实现

python - 如何将英语单词与 Python 中的渐进式结合?

python - 如何安装 django-utils?

Python pandas 查找开始/结束行和舍入数