一直被拒绝一些许可

2024-06-16 04:15:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我总是收到一些拒绝许可的错误,那是什么?在

每次我尝试安装任何东西时,在python和nltk工具中都会收到相同的permission denied错误消息

error: could not create '/usr/local/lib/python2.7/dist-packages/nameparser': Permission denied ---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_vandana/nameparser/setup.py';exec(compile(getatt‌​r(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-4Rd7GE-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_vandana/nameparser Storing debug log for failure in /home/vandana/.pip/pip.log


Tags: pipbuildusr错误erroropenrecordtmp
1条回答
网友
1楼 · 发布于 2024-06-16 04:15:48

您可能正在执行python setup.py install somethingpip install something,并尝试将其安装到全局Python包位置,而您的用户无权访问该位置。您需要使用virtual environments。在

相关问题 更多 >