命令后我收到一些错误消息:
curl -sk https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger
这是我的终结告诉我,
Overwriting /Users/hokila/Library/PonyDebugger/lib/python2.7/orig-prefix.txt with new content
New python executable in /Users/hokila/Library/PonyDebugger/bin/python
Traceback (most recent call last):
File "<stdin>", line 2462, in <module>
File "<stdin>", line 944, in main
File "<stdin>", line 1045, in create_environment
File "<stdin>", line 1361, in install_python
File "<stdin>", line 435, in copyfile
File "<stdin>", line 412, in copyfileordir
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 128, in copy2
copyfile(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: '/Users/hokila/Library/PonyDebugger/.Python'
似乎python版本错误,所以我将我的python更新为2.7.3。 然后我仍然得到同样的错误。我怎么能解决这个问题?
答案 0 :(得分:0)
这个问题也发生在我身上,我几乎绝望了。我重新安装了Python 2.7.2并且工作正常。 我尝试在使用README_ponyd.rst中的说明之前手动解决此问题,并且我也获得了部分成功:
开发安装``````````````````````
如果你已经检查过PonyDebugger git repo,你可以设置 手动启动virtualenv并让你的ponyd安装指向 您现有的结账。为了演示,我们假设设置了
$VENV
到您的预期安装路径,$PONYDEBUGGER_PATH
设置为 你的PonyDebugger git checkout ::#如果你还没有安装virtualenv
sudo easy_install 的virtualenv
virtualenv&#34; $ VENV&#34;
来源&#34; $ VENV / bin / activate&#34;
pip install -e&#34; $ PONYDEBUGGER_PATH&#34;
#确保你的shell知道ponyd存在hash -r
要运行此ponyd,您可以
source "$VENV/bin/activate"
激活您的环境,ponyd
将添加到您的路径中。您 也可以直接通过$VENV/bin/ponyd
直接调用它 首先激活。
您应该先安装virtualenv。您可以尝试两个步骤的组合。希望它有所帮助...