这里是菜鸟的错误。 我在我的Mac上安装了Homebrew和pip,但安装过程中出现了一些复杂情况。 例如,对于pip,我获得了权限被拒绝。我去Google找到了“sudo-H”解决方案。但是关于停车轮和日志有一些消息,我意外退出了终端。pip在安装包时抛出异常
是否有任何命令pip和Homebrew获取状态报告,就像一切正常或删除并重新安装是最好的方式?
编辑: 尝试在画中画和自制软件安装包,所建议的,W/O须藤-h得到这个:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/bellite.pyc'
但似乎涉及到的Python 2.7,这我都不感兴趣。所有。
当我用sudo的-h,我得到:
The directory '/Users/SimonOsipov/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/SimonOsipov/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
自制安装包0问题
您可以尝试通过自制软件/ pip安装软件包以查看它是否正在工作... – Lix
您可以尝试brew重新安装命令。 – Pauloscorps
尝试安装任何软件包。如果'pip'引发文件权限错误,则表示无法正常工作。 – jdno