我总是收到一些拒绝许可的错误,那是什么?在
每次我尝试安装任何东西时,在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(getattr(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
您可能正在执行
python setup.py install something
或pip install something
,并尝试将其安装到全局Python包位置,而您的用户无权访问该位置。您需要使用virtual environments。在相关问题 更多 >
编程相关推荐