尝试安装 virtualenvwrapper-powershell 但出现以下错误:
chown() missing 1 required positional argument: 'numeric_owner'
读完这篇文章后我明白了:
(实际上我在其中描述了一个问题) 名叫 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/