我尝试运行 pip 命令,例如:pip install tweepy
。我收到以下错误:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'idnadata.py'
Consider using the `--user` option or check the permissions.
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
有人知道如何解决这个问题吗?
答案1
你应该使用 sudo 和 pip install,因此
pip install foo
它成为了
sudo pip install foo