gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 17:23:16 25 4
gpt4 key购买 nike

尝试安装 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com