python卸载不了怎么办说目录有错_错误:无法在安装目录中创建或删除文件
但是每當我運行這個命令時,就會出現以下錯誤wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
錯誤消息:--2014-04-19 17:29:52-- https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
Resolving bitbucket.org (bitbucket.org)... 131.103.20.167, 131.103.20.168
Connecting to bitbucket.org (bitbucket.org)|131.103.20.167|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10332 (10K) [text/plain]
Saving to: `STDOUT'
100%[======================================>] 10,332 --.-K/s in 0s
2014-04-19 17:29:53 (267 MB/s) - written to stdout [10332/10332]
Extracting in /tmp/tmpDXrlBn
Now working in /tmp/tmpDXrlBn/setuptools-3.4.4
Installing Setuptools
running install
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install- 19015.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.7/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
在瀏覽解決方案時,我發現
sudo easy_安裝
或者改變Python也可以。我需要一個相對詳細的解決方案,因為我都不能去工作。提前謝謝。
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的python卸载不了怎么办说目录有错_错误:无法在安装目录中创建或删除文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: gitlab 自动推送代码到gitee_
- 下一篇: python编程用户登陆c_django