0
我試圖在0123上使用http://devcenter.heroku.com/articles/django在Heroku上部署Django應用程序。我恰好碰巧使用Windows,所以我一直在通過Cygwin工作(請不要評價我> <)。總之,一切都很好,直到我運行「virtualenv venv --distribute」。當我運行它時,無論我在哪裏運行它,我都會得到拒絕權限的錯誤。下面是輸出:在Heroku上通過Cygwin設置Django應用程序在安裝pip時給予權限被拒絕錯誤
$ virtualenv venv --distribute
New python executable in venv/bin/python2.6
Not overwriting existing python script venv/bin/python.exe (you must use venv/bi
n/python2.6.exe)
Installing distribute...........................................................
................................................................................
...................................................done.
Installing pip...
Error [Errno 13] Permission denied while executing command /cygdrive/c/Users/D
a...env/bin/easy_install /usr/lib/python2.6/s...pport/pip-1.1.tar.gz
...Installing pip...done.
Traceback (most recent call last):
File "/usr/bin/virtualenv", line 8, in <module>
load_entry_point('virtualenv==1.7.1.2', 'console_scripts', 'virtualenv')()
File "/usr/lib/python2.6/site-packages/virtualenv-1.7.1.2-py2.6.egg/virtualenv
.py", line 928, in main
never_download=options.never_download)
File "/usr/lib/python2.6/site-packages/virtualenv-1.7.1.2-py2.6.egg/virtualenv
.py", line 1042, in create_environment
install_pip(py_executable, search_dirs=search_dirs, never_download=never_dow
nload)
File "/usr/lib/python2.6/site-packages/virtualenv-1.7.1.2-py2.6.egg/virtualenv
.py", line 640, in install_pip
filter_stdout=_filter_setup)
File "/usr/lib/python2.6/site-packages/virtualenv-1.7.1.2-py2.6.egg/virtualenv
.py", line 966, in call_subprocess
cwd=cwd, env=env)
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
事情我已經嘗試:
- 運行Cygwin的作爲管理員(在Windows,相當於須藤)
- 搭配chmod 777'ed一切人類已知
- 猛撞我的頭牆
任何幫助將不勝感激! :)
這適用於Windows原生(謝謝你!),所以如果我通過命令行運行,它的工作原理,但不幸的是它不會影響Cygwin上的問題... Cygwin問題仍然存在。 – Taskle 2012-02-21 07:49:17