我正在运行命令pip3 install psutil
,但遇到以下错误:
me$ pip3 install psutil
Collecting psutil
Using cached https://files.pythonhosted.org/packages/51/9e/0f8f5423ce28c9109807024f7bdde776ed0b1161de20b408875de7e030c3/psutil-5.4.6.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psutil.egg-info
writing pip-egg-info/psutil.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psutil.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psutil.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psutil.egg-info/SOURCES.txt'
error: [Errno 2] No such file or directory: '': ''
abort: no repository found in '/private/var/folders/n2/2rxj0k0d3bb73gbfstgcgzs40000gp/T/pip-install-y27z_s2w/psutil' (.hg not found)!
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/n2/2rxj0k0d3bb73gbfstgcgzs40000gp/T/pip-install-y27z_s2w/psutil/

我已尝试过所有内容但无法找到解决方案 - 使用pip install psutil
工作正常。
这不是发生此错误的唯一包。
任何帮助将不胜感激! 谢谢!
答案 0 :(得分:0)
卸载2.7和3,然后卸载mercurial然后brew安装了python @ 2和python @ 3。