pip3安装出现ERROR: Command errored out with exit status 1:

按照https://github.com/xybu/onedrived-dev一步步安装,
到了pip3 install --user git+https://github.com/xybu/onedrived-dev.git这一步就出现这个错误。
随后发现,所有的pip安装都会出现这个问题。试过更改python版本和更新pip3也解决不了。


```powershell
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xnhh9mk_/onedrivesdk/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xnhh9mk_/onedrivesdk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-xnhh9mk_/onedrivesdk/pip-egg-info
         cwd: /tmp/pip-install-xnhh9mk_/onedrivesdk/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "", line 1, in 
      File "/tmp/pip-install-xnhh9mk_/onedrivesdk/setup.py", line 9, in 
        with open(NOTICE, 'r', encoding='utf-8') as f:
    NotADirectoryError: [Errno 20] Not a directory: '/tmp/pip-install-xnhh9mk_/onedrivesdk/setup.py/../NOTICE.rst'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


你可能感兴趣的:(pip,python,linux)