安装 pyttsx 时出现权限被拒绝错误
pip install pyttsx
error: could not create '/usr/local/lib/python2.7/dist-packages/pyttsx': Permission denied
答案1
您必须是 root 或使用 sudo 才能越过该屏幕。
sudo pip install pyttsx
在我的系统上:
parto@parto:~$ sudo pip install pyttsx
[sudo] password for parto:
Downloading/unpacking pyttsx
Downloading pyttsx-1.1.tar.gz
Running setup.py (path:/tmp/pip_build_root/pyttsx/setup.py) egg_info for package pyttsx
Installing collected packages: pyttsx
Running setup.py install for pyttsx
Successfully installed pyttsx
Cleaning up...
parto@parto:~$