我正在尝试通过SSH安装漂亮的汤,并且正在运行
pip install BeautifulSoup4
它给了我这个错误:
error: could not create '/usr/local/lib/python2.7/dist-packages/bs4': Permission denied
Command /usr/bin/python -c "import
setuptools;__file__='/home/spefon/build/BeautifulSoup4/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-cyQHO1-record/install-record.txt failed with error code 1
为什么会这样?我可以用pip安装lxml就好了,所以它是关于美丽的汤吗?
由于