我昨天安装了python,并做了一些实验,但是当我想使用“ pip”安装一些软件包时,首先没有安装它,而当我使用python.org页面上的命令安装它时,带有几个错误(请参阅下文),即使在目录的搜索结果中我什至都没有尝试过很多尝试。
如您所见,我需要一些帮助,因为我不能独自做到这一点:)。
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1z/_9_qzjrd7gn6g4cnxq4w3n180000gq/T/pip-install-YWT87E/aiohttp/
The directory '/Users/NAME/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.
OSError: [Errno 2] No such file or directory: '/Library/Python/2.7/site-packages/setuptools-40.0.0-py2.7.egg'
答案 0 :(得分:1)
尝试sudo python setup.py egg_info